|
原帖由 inthirties2 于 2010-3-12 10:44 发表 ![]()
试试。
chown root install /dev/rdsk/ocr
chown oracle install /dev/rdsk/vote
已经做过N次了,这是个链接,执行chown后,链接的OWNER是不会变化的,他对应的物理设备的OWERN已经是root install oracle install了
-bash-3.00# ls -l ocr vote
lrwxrwxrwx 1 root root 8 3月 12日 08:27 ocr -> c1t1d0s6
lrwxrwxrwx 1 root root 8 3月 12日 08:27 vote -> c1t2d0s6
-bash-3.00# ls -l c1t1d0s6 c1t2d0s6
lrwxrwxrwx 1 root root 50 3月 5日 17:04 c1t1d0s6 -> ../../devices/pci@0,0/pci15ad,1976@10/sd@1,0:g,raw
lrwxrwxrwx 1 root root 50 3月 5日 17:04 c1t2d0s6 -> ../../devices/pci@0,0/pci15ad,1976@10/sd@2,0:g,raw
-bash-3.00# ls -l ../../devices/pci@0,0/pci15ad,1976@10/sd@1,0:g,raw ../../devices/pci@0,0/pci15ad,1976@10/sd@2,0:g,raw
crw-r----- 1 root oinstall 31, 134 3月 12日 10:03 ../../devices/pci@0,0/pci15ad,1976@10/sd@1,0:g,raw
crw-r--r-- 1 oracle oinstall 31, 198 3月 12日 10:49 ../../devices/pci@0,0/pci15ad,1976@10/sd@2,0:g,raw
-bash-3.00# chown root install ocr;chown oracle install vote
-bash-3.00# ls -l ocr vote
lrwxrwxrwx 1 root root 8 3月 12日 08:27 ocr -> c1t1d0s6
lrwxrwxrwx 1 root root 8 3月 12日 08:27 vote -> c1t2d0s6
-bash-3.00# ls -l ../../devices/pci@0,0/pci15ad,1976@10/sd@1,0:g,raw ../../devices/pci@0,0/pci15ad,1976@10/sd@2,0:g,raw
crw-r----- 1 root oinstall 31, 134 3月 12日 10:03 ../../devices/pci@0,0/pci15ad,1976@10/sd@1,0:g,raw
crw-r--r-- 1 oracle oinstall 31, 198 3月 12日 10:51 ../../devices/pci@0,0/pci15ad,1976@10/sd@2,0:g,raw
-bash-3.00#
[ 本帖最后由 remen 于 2010-3-12 10:51 编辑 ] |
|