在ubuntu机器上需要“ls -al /”的结果(理想的10.4)

时间:2010-12-27 20:52:19

标签: linux file permissions ubuntu-10.04

我不小心执行了“chown www-data.www-data / *”这不是递归的,所以我猜我的屁股已经保存了。有人可以给我一个通过“ls -al /”打印的根文件夹中的权限列表,所以我会改回来吗?谢谢

3 个答案:

答案 0 :(得分:2)

正如您所期望的那样root.root: - )

答案 1 :(得分:1)

Ubuntu 10.04桌面(32位):

(buzzle:bmc) ~ $ ls -la /
total 112
drwxr-xr-x  22 root root  4096 Dec 10 07:58 ./
drwxr-xr-x  22 root root  4096 Dec 10 07:58 ../
drwxr-xr-x   2 root root  4096 Nov 26 09:18 bin/
drwxr-xr-x   3 root root  4096 Dec 10 07:58 boot/
drwxr-xr-x   2 root root  4096 Oct 24 13:28 cdrom/
drwxr-xr-x  17 root root  3640 Dec 26 09:33 dev/
drwxr-xr-x 139 root root 12288 Dec 26 09:34 etc/
drwxr-xr-x   3 root root  4096 Oct 24 13:29 home/
lrwxrwxrwx   1 root root    33 Dec 10 07:58 initrd.img -> boot/initrd.img-2.6.32-27-generic
lrwxrwxrwx   1 root root    33 Nov  9 08:04 initrd.img.old -> boot/initrd.img-2.6.32-26-generic
drwxr-xr-x  20 root root 12288 Dec  8 09:04 lib/
drwx------   2 root root 16384 Oct 24 13:26 lost+found/
drwxr-xr-x   3 root root  4096 Dec 26 09:34 media/
drwxr-xr-x   3 root root  4096 Nov  9 08:14 mnt/
drwxr-xr-x   3 root root  4096 Dec 10 08:00 opt/
dr-xr-xr-x 186 root root     0 Dec 26 09:33 proc/
drwx------  10 root root  4096 Oct 28 07:56 root/
drwxr-xr-x   2 root root  4096 Dec 10 08:01 sbin/
drwxr-xr-x   2 root root  4096 Dec  5  2009 selinux/
drwxr-xr-x   2 root root  4096 Aug 16 05:32 srv/
drwxr-xr-x  12 root root     0 Dec 26 09:33 sys/
drwxrwxrwt  14 root root 12288 Dec 27 09:36 tmp/
drwxr-xr-x  10 root root  4096 Aug 16 05:32 usr/
drwxr-xr-x  15 root root  4096 Aug 16 05:48 var/
lrwxrwxrwx   1 root root    30 Dec 10 07:58 vmlinuz -> boot/vmlinuz-2.6.32-27-generic
lrwxrwxrwx   1 root root    30 Nov  9 08:04 vmlinuz.old -> boot/vmlinuz-2.6.32-26-generic
(buzzle:bmc) ~ $ uname -a
Linux buzzle 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC 2010 i686 GNU/Linux

我也有64位服务器(Ubuntu 10.04)可用,如果有帮助的话。

答案 2 :(得分:0)

 sudo ls -al /

你必须得到更多的许可。