You are not logged in.
Pages: 1
is there a package that has to be installed for setuid and setgid?
Offline
SUID: chmod u+s file
SGID: chmod g+s file
Last edited by Ramses de Norre (2007-04-16 21:40:46)
Offline
The file must have the execute bit set as well!
chmod u+x file
or
chmod g+x file
For example:
[dan@cylon ~]$ ls -l tmp
-rw-r--r-- 1 dan dan 0 2007-04-16 18:57 tmpMake the file setuid:
[dan@cylon ~]$ chmod u+s tmpA listing shows that the setuid bit is set, but the uppercase 'S' indicates the execute permission is missing:
[dan@cylon ~]$ ls -l tmp
-rwSr--r-- 1 dan dan 0 2007-04-16 18:57 tmpSo,
[dan@cylon ~]$ chmod u+x tmpNow the lowercase 's' is what you want.
[dan@cylon ~]$ ls -l tmp
-rwsr--r-- 1 dan dan 0 2007-04-16 18:57 tmpOffline
thanks for that clarification
Offline
Pages: 1