Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux Distribution => Distribution Specific => Topic started by: nivedhitha on October 02, 2006, 04:57:19 PM

Title: SUID bit in file permissions
Post by: nivedhitha on October 02, 2006, 04:57:19 PM
hi all,

this is regarding the SUID and SGID bits in permissions of files in linux.
some files have the SUID set in the 'x' part of the first 'rwx' (that is, the user's permission field).

i have read that setting the SUID bit enables the file to be executed with the owner permission and not with the permission of the user executing it.

now, what is the difference between setting the SUID bit and giving execute permission to 'others'? do they not both achieve the same purpose of enabling 'others' to execute the file?
i think this is a silly question...but still, wanted to know...
Title: SUID bit in file permissions
Post by: Ricky on October 05, 2006, 06:27:45 PM
Because of server security problem, our server is not allowing few words to be posted end user on the forum hence Gaurav Bajaj was trying to give answer to your query, as was problem so I am posting on his behalf as image.
(http://www.imagetor.com/out.php/i5141_SUIDpostasapicture.jpg) (http://www.imagetor.com/show.php/5141_SUIDpostasapicture.jpg)
Title: SUID bit in file permissions
Post by: nivedhitha on October 05, 2006, 07:10:36 PM
Thanks Ricky and Gaurav. yes i think i got it. i will go and check in my linux system tomorrow and reply back if i have more queries. thanks again  :)