You are not logged in.
Pages: 1
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
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
Pages: 1