$ls -l /
drwxr-xr-x 2 root root 4096 9月 19 11:24 bin
drwxr-xr-x 3 root root 4096 8月 24 18:27 boot
lrwxrwxrwx 1 root root 11 7月 3 13:06 cdrom -> media/cdrom
drwxr-xr-x 15 root root 4120 9月 19 11:56 dev
drwxr-xr-x 116 root root 12288 9月 19 11:56 etc
drwxr-xr-x 4 root root 4096 8月 17 14:36 home
lrwxrwxrwx 1 root root 28 8月 24 17:53 initrd.img -> boot/initrd.img-2.6.30-1-686
drwxr-xr-x 2 root root 4096 7月 4 10:29 install
drwxr-xr-x 13 root root 12288 9月 19 11:31 lib
drwx------ 2 root root 16384 7月 3 13:06 lost+found
drwxr-xr-x 4 root root 4096 9月 19 11:56 media
drwxr-xr-x 3 root root 4096 7月 3 14:03 mnt
drwxr-xr-x 3 root root 4096 7月 11 08:31 opt
dr-xr-xr-x 109 root root 0 9月 19 11:55 proc
drwxr-xr-x 19 root root 4096 8月 28 12:56 root
drwxr-xr-x 2 root root 4096 9月 19 11:24 sbin
drwxr-xr-x 2 root root 4096 9月 16 2008 selinux
drwxr-xr-x 3 root root 4096 8月 23 20:40 srv
drwxr-xr-x 12 root root 0 9月 19 11:55 sys
drwxrwxrwt 9 root root 4096 9月 19 11:57 tmp
drwxr-xr-x 11 root root 4096 9月 11 20:27 usr
drwxr-xr-x 15 root root 4096 8月 23 20:33 var
lrwxrwxrwx 1 root root 25 8月 24 17:53 vmlinuz -> boot/vmlinuz-2.6.30-1-686
照我机子的改吧 动根目录一定要谨慎,加个-R你就惨了:
代码: 全选
chmod 755 /*
chmod 1777 /tmp
chmod 700 /lost+found
chmod 555 /proc
应该够了