Re: Understanding permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




On 16 avr. 09, at 22:47, slubman wrote:


On 16 avr. 09, at 22:21, ludovic coues wrote:

I'm pretty sure that +x is not set for everybody in home.
Just cause you don't want that anybody can see what folder you have.
If you want have have a pokemon subfolder of anime, nobody else need
to now this. So, for me, +x have not to be set.

With the +x right on a folder you only give the right to pass through this directory, not to see the content of this directory

$ mkdir foo
$ touch foo/test1
$ touch foo/test2

$ ls foo
test1  test2

$ chmod a-r foo

$ ls foo
ls: cannot open directory foo: Permission denied

$ echo "Hello" > foo/test1
$ cat foo/test1
Hello

I sent the mail before I finished.

$ chmod a-x foo

$ cat foo/test1
cat: foo/test1: Permission denied

$ chmod u+r foo

$ ls foo
ls: cannot access foo/test2: Permission denied
ls: cannot access foo/test1: Permission denied
test1  test2



But doesn't seem to be the case for my home directory...
Hopefully, it's my laptop, not a shared computer.


--
slubman
site: http://www.slubman.info/


--
slubman
site: http://www.slubman.info/



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux