• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 389
  • Last Modified:

SUID permissions?

SUID allows you to apply an "s" bit to a file. Which means anyone executing it, is executing it with superuser privileges. Is this correct?

Say I have /bin/ping

How do I set this with the "s" bit?
Thanks
0
dissolved
Asked:
dissolved
  • 2
2 Solutions
 
danny_ebbersCommented:
Hi dissolved,

Not entirely it's executing with the permissions of the owner of the file not necessary superuser privileges

see: http://wiki.linuxquestions.org/wiki/Suid
(Will also demonstrate how to set it)

Best regards,
Danny Ebbers
0
 
David PiniellaCommented:
#chmod +s /bin/ping
will enable it and
#chmod -s /bin/ping
will disable it.

ls -l will show you the "s" bit in place of the "x" (execute) bit if a file is suid'd.
0
 
dissolvedAuthor Commented:
thanks. I understand there is a GUID too? I will post a separate question and link it in here.
Thanks
0
 
dissolvedAuthor Commented:
Here is the new link.
Thanks for any help you two can give

http://www.experts-exchange.com/Operating_Systems/Linux/Q_21386237.html
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now