On Thu, 26 May 2011 15:39:10 +0200, Wojtek Zabolotny wrote: > I've just accidentally discovered, that as a plain user I'm able to > create directories in root directory of my Dabian/testing system. > Investigating the problem, I've found, that I can also rename > directories, which is even worse (just imagine creating "/etc.new" with > special contents and then renaming "mv /etc /etc.old ; mv /etc.new > /etc"). > Looking for possible causes, I've found, that stat gives the following > status: > > stat / > File: `/' > Size: 608 Blocks: 1 IO Block: 4096 katalog > Device: 803h/2051d Inode: 2 Links: 25 Access: > (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root) Access: > 2011-05-26 15:27:31.000000000 +0200 Modify: 2011-05-26 > 15:27:31.000000000 +0200 Change: 2011-05-26 15:27:31.000000000 +0200 > > Why "Access" is 0777??? > In /etc/fstab root is mounted as: > > /dev/sda3 / reiserfs notail,relatime 0 > 1 > > I have to check my other machines, but the problem is definitely strange > and annoying! Has anyone found similar phenomenon in his/her system?
This is what I get: test@debian:~$ cat /etc/debian_version wheezy/sid test@debian:/$ stat / File: `/' Size: 592 Blocks: 1 IO Block: 4096 directory Device: 802h/2050d Inode: 2 Links: 23 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2011-05-26 17:10:49.000000000 +0200 Modify: 2011-05-26 17:10:49.000000000 +0200 Change: 2011-05-26 17:10:49.000000000 +0200 test@debian:/$ cat /etc/fstab | grep reiser UUID=c623724b-fab2-4930-a2d5-f673cfa84b63 / reiserfs notail 0 1 And no directory under "/" can be created by plain users: test@debian:~$ cd / test@debian:/$ mkdir data mkdir: cannot create directory `data': Permission denied Review your last commands (history), just in case... :-? Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2011.05.26.15.20...@gmail.com