Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#5848 closed bug (invalid)

Directories without read and execute permissions are incorrectly handled

Reported by: mjw Owned by: nobody
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I am porting quilt to haiku, and I have come across the following problem. If you execute the following 3 lines in a bash prompt: mkdir directory chmod a-rx directory cd directory

then "cd directory" succeeds. I believe it should fail with a permission errror.

Change History (2)

comment:1 by anevilyak, 14 years ago

Resolution: invalid
Status: newclosed

This is expected behavior, for the simple reason that, Haiku being single-user, you are always root and thus always have permission. Execute the above commands as root on linux or FreeBSD and you'll see the exact same result.

comment:2 by axeld, 14 years ago

Component: - GeneralSystem/Kernel

Alternatively, you can create another non-root user in Haiku (using the "useradd" command), log in as that user, and it should return the expected results.

Note: See TracTickets for help on using tickets.