I understand this, but cannot understand what does the read permission on a folder implies. Can you explain this to me? =) (Or give me the posix definition you were reading, which is definitely faster) Thanks!
On Fri, Mar 5, 2010 at 02:26, Andy Whitcroft <a...@canonical.com> wrote: > @Claudio -- the execute permission bit on a directory is the 'traversal' > bit, without this bit a user is not permitted to pass through this > directory to open a file even if the file is readable. That applied to > chdir() and getdents() equally, preventing a cd into the directory. > This behaviour seems as expected from the posix definition to my > reading. > > ** Changed in: linux (Ubuntu) > Status: New => Invalid > > ** Changed in: linux (Ubuntu) > Assignee: (unassigned) => Andy Whitcroft (apw) > > -- > Linux 2.6.32-15-generic does not correctly handle permissions > https://bugs.launchpad.net/bugs/531265 > You received this bug notification because you are a direct subscriber > of the bug. > > Status in “linux” package in Ubuntu: Invalid > > Bug description: > I cannot cd to a folder not owned by me, without having set the execute > permission on a folder, even if there is the "universe read" one. > I can however edit files that don't have the x permission. > Steps to reproduce: > > 1) Create a folder > 2) chown that folder to another user > 3) chmod it to drwx--x--x (run as root: chmod a-rwx foldername && chmod a+r > foldername) > 4) try to cd into it > > r...@jarvis:~# mkdir test > r...@jarvis:~# chmod a-rwx test && chmod a+r test > r...@jarvis:~# ls -l |grep test > dr--r--r-- 2 root root 4096 2010-03-03 12:10 test > > clau...@jarvis:~$ cd test/ > bash: cd: test/: Permesso negato > > ================================================================= > clau...@jarvis:~$ uname -a > Linux Jarvis 2.6.32-15-generic #22-Ubuntu SMP Tue Mar 2 02:23:29 UTC 2010 > x86_64 GNU/Linux > clau...@jarvis:~$ cat /proc/version_signature > Ubuntu 2.6.32-15.22-generic > > ProblemType: Bug > AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21. > Architecture: amd64 > ArecordDevices: > **** List of CAPTURE Hardware Devices **** > card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > AudioDevicesInUse: > USER PID ACCESS COMMAND > /dev/snd/controlC0: claudio 1889 F.... pulseaudio > CRDA: > country 98: > (2402 - 2482 @ 40), (N/A, 20) > Card0.Amixer.info: > Card hw:0 'Intel'/'HDA Intel at 0xfebfc000 irq 21' > Mixer name : 'SigmaTel STAC9205' > Components : 'HDA:838476a0,10280228,00100204 > HDA:14f12c06,14f1000f,00100000' > Controls : 19 > Simple ctrls : 11 > Date: Wed Mar 3 12:03:07 2010 > DistroRelease: Ubuntu 10.04 > HibernationDevice: RESUME=UUID=3be917d1-4bb8-4d17-846b-88461c8a74b3 > MachineType: Dell Inc. Vostro 1500 > NonfreeKernelModules: nvidia > Package: linux-image-2.6.32-15-generic 2.6.32-15.22 > ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.32-15-generic > root=/dev/mapper/sda6_crypt ro quiet > ProcEnviron: > LANG=it_IT.utf8 > SHELL=/bin/bash > ProcVersionSignature: Ubuntu 2.6.32-15.22-generic > Regression: No > RelatedPackageVersions: linux-firmware 1.31 > Reproducible: Yes > SourcePackage: linux > TestedUpstream: No > Uname: Linux 2.6.32-15-generic x86_64 > dmi.bios.date: 04/21/2008 > dmi.bios.vendor: Dell Inc. > dmi.bios.version: A06 > dmi.board.name: 0WY040 > dmi.board.vendor: Dell Inc. > dmi.chassis.type: 8 > dmi.chassis.vendor: Dell Inc. > dmi.modalias: > dmi:bvnDellInc.:bvrA06:bd04/21/2008:svnDellInc.:pnVostro1500:pvr:rvnDellInc.:rn0WY040:rvr:cvnDellInc.:ct8:cvr: > dmi.product.name: Vostro 1500 > dmi.sys.vendor: Dell Inc. > > To unsubscribe from this bug, go to: > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/531265/+subscribe > -- Linux 2.6.32-15-generic does not correctly handle permissions https://bugs.launchpad.net/bugs/531265 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs