You are not logged in.

#1 2006-10-03 04:59:18

miguelmmg
Member
Registered: 2006-03-15
Posts: 4

SUID on directories

Recently I read a Samba book where explained the use of SUID/SGID applied on directories, so, any file/directory created under that, takes same ownership of parent directory. I did some tests and SGID works well, any file or directory takes group of parent directory, but doesn't take user. What's wrong?

[ /home/testing ] $ ls -la
total 0
drwsrwsrwx 2 anyuser nobody  48 2006-10-02 23:56 .
drwxr-xr-x 7 root    root   152 2006-10-02 23:54 ..
[ /home/testing ] $ touch somefile
[ /home/testing ] $ mkdir somedir
[ /home/testing ] $ ls -la
total 0
drwsrwsrwx 3 anyuser nobody  96 2006-10-02 23:57 .
drwxr-xr-x 7 root    root   152 2006-10-02 23:54 ..
drwxr-sr-x 2 miguel  nobody  48 2006-10-02 23:57 somedir
-rw-r--r-- 1 miguel  nobody   0 2006-10-02 23:57 somefile

Offline

#2 2006-10-03 18:50:50

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: SUID on directories

suid has no use on linux(on directories ofc) according to a wikipedia entry.


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

Board footer

Powered by FluxBB