November 23, 2024, 04:36:57 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: SUID bit in file permissions  (Read 7580 times)

Offline nivedhitha

  • New Member
  • Posts: 2
SUID bit in file permissions
« 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...

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
SUID bit in file permissions
« Reply #1 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.

Offline nivedhitha

  • New Member
  • Posts: 2
SUID bit in file permissions
« Reply #2 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  :)