bug of feature - file perrmissiin

viki

Verified User
Joined
Mar 25, 2006
Messages
23
Location
Poland
user can rename direory by DA panel in his home dir althow this is directory with is created by root.root permisiopns. User cannot remove it but can change name. File had 000 ora 700 attr.


I've logged to my server via SSH as root.
Then I've created directory "dupa" in resseler's (r1u1) home dir. /home/r1u1

Of course directory "dupa" got root.root owner:

[root@da1 r1u1]# pwd
/home/r1u1
[root@da1 r1u1]# mkdir dupa
[root@da1 r1u1]# chmod 000 dupa

[root@da1 r1u1]# ls -l
total 24
drwx------ 2 r1u1 r1u1 4096 Mar 24 12:50 backups
-rwxr-xr-x 1 r1u1 r1u1 192 Mar 24 11:36 bugs.txt.bak
drwx--x--x 3 r1u1 r1u1 4096 Mar 24 10:58 domains
d--------- 2 root root 4096 Mar 24 11:29 dupa
drwx------ 3 r1u1 r1u1 4096 Mar 24 11:38 imap
drwx------ 2 r1u1 r1u1 4096 Mar 25 10:06 mail

Then I've log into DirectAdmin resseller account as a r1u1. I clik to "File Manager".

I can't delete "dupa" directory, but I can rename it.

In my opinion this is a bug. Resseler shoulnd't be abble to rename it.

regards,
 
If it's a bug then it's a bug in the original Posix design (Linux and Unix are implmentations of the Posix design for operating systems).

The name of the file has nothing to do wtih the contents of the file. It's only the way it's listed in the directory.

If the user has rights to make changes to the directory the user can rename the file.

Jefft
 
Back
Top