Linux Distribution > Distribution Specific

SUID bit in file permissions

(1/1)

nivedhitha:
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...

Ricky:
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.

nivedhitha:
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  :)

Navigation

[0] Message Index

Go to full version