Mac OS X 10.5上/ dev的默认权限。*

时间:2009-08-24 10:23:10

标签: macos unix

简单的问题。在一些'chmod'诡计之后,我已经将/ dev中所有伪ttys的权限设置为+ rw,这有点开放。既然我已经解决了我遇到的问题,我想将我的权限恢复为正确的值。

因此,正确的权限是什么。执行:sudo ls -la / dev / tty *应该提供我追求的结果。

1 个答案:

答案 0 :(得分:2)

$ uname -a
Darwin rhea 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ sudo ls -la /dev/tty* | head -n 30
crw-rw-rw-  1 root   wheel    2,   0 Aug 24 12:25 /dev/tty
crw-rw-rw-  1 root   wheel   10,   2 Aug 18 20:00 /dev/tty.Bluetooth-Modem
crw-rw-rw-  1 root   wheel   10,   0 Aug 18 20:00 /dev/tty.Bluetooth-PDA-Sync
crw-rw-rw-  1 root   wheel    4,   0 Aug 18 20:00 /dev/ttyp0
crw-rw-rw-  1 root   wheel    4,   1 Aug 18 20:00 /dev/ttyp1
crw-rw-rw-  1 root   wheel    4,   2 Aug 18 20:00 /dev/ttyp2
crw-rw-rw-  1 root   wheel    4,   3 Aug 18 20:00 /dev/ttyp3
crw-rw-rw-  1 root   wheel    4,   4 Aug 18 20:00 /dev/ttyp4
crw-rw-rw-  1 root   wheel    4,   5 Aug 18 20:00 /dev/ttyp5
crw-rw-rw-  1 root   wheel    4,   6 Aug 18 20:00 /dev/ttyp6
crw-rw-rw-  1 root   wheel    4,   7 Aug 18 20:00 /dev/ttyp7
crw-rw-rw-  1 root   wheel    4,   8 Aug 18 20:00 /dev/ttyp8
crw-rw-rw-  1 root   wheel    4,   9 Aug 18 20:00 /dev/ttyp9
crw-rw-rw-  1 root   wheel    4,  10 Aug 18 20:00 /dev/ttypa
crw-rw-rw-  1 root   wheel    4,  11 Aug 18 20:00 /dev/ttypb
crw-rw-rw-  1 root   wheel    4,  12 Aug 18 20:00 /dev/ttypc
crw-rw-rw-  1 root   wheel    4,  13 Aug 18 20:00 /dev/ttypd
crw-rw-rw-  1 root   wheel    4,  14 Aug 18 20:00 /dev/ttype
crw-rw-rw-  1 root   wheel    4,  15 Aug 18 20:00 /dev/ttypf
crw-rw-rw-  1 root   wheel    4,  16 Aug 18 20:00 /dev/ttyq0
crw-rw-rw-  1 root   wheel    4,  17 Aug 18 20:00 /dev/ttyq1
crw-rw-rw-  1 root   wheel    4,  18 Aug 18 20:00 /dev/ttyq2
crw-rw-rw-  1 root   wheel    4,  19 Aug 18 20:00 /dev/ttyq3
crw-rw-rw-  1 root   wheel    4,  20 Aug 18 20:00 /dev/ttyq4
crw-rw-rw-  1 root   wheel    4,  21 Aug 18 20:00 /dev/ttyq5
crw-rw-rw-  1 root   wheel    4,  22 Aug 18 20:00 /dev/ttyq6
crw-rw-rw-  1 root   wheel    4,  23 Aug 18 20:00 /dev/ttyq7
crw-rw-rw-  1 root   wheel    4,  24 Aug 18 20:00 /dev/ttyq8
crw-rw-rw-  1 root   wheel    4,  25 Aug 18 20:00 /dev/ttyq9
crw-rw-rw-  1 root   wheel    4,  26 Aug 18 20:00 /dev/ttyqa