LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Thread Tools
Old 11-16-2009, 04:42 AM   #1
kinamedebo
LQ Newbie
 
Registered: Nov 2009
Posts: 1
Thanked: 0
Problem with SUID, SGID and Sticky Bit


[Log in to get rid of this advertisement]
Can anybody describe about SUID, SGID and Sticky Bit's function and how they work with files and directories. These things make me so confused . So if someone help me, that will be highly appritiated. And finally i am totally a in linux world ( My operating system is RHel5).
windows_xp_2003 kinamedebo is offline     Reply With Quote
Old 11-16-2009, 08:20 AM   #2
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 124
Thanked: 12
I believe "man chmod" or "info chmod" describes all that. If there are specific things you don't understand after reading that, I'm sure we can help clear them up.
macos pcunix is offline     Reply With Quote
Old 11-16-2009, 08:56 AM   #3
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 192
Thanked: 20
Let me attempt to answer this one.

SUID is used mainly on executable files when you want whoever executes this file to have the permissions of the file owner (usually root). This is somewhat of a security risk & should be used with caution.

SGID is usually used on directories shared by GroupID. Where users join a group and share access to a directory using the GID of the directory. SGID is then used to ensure that all files created in that directory also belong to the same GID, allowing all group members access.

The Sticky bit is used on world writable directories to maintain ownership control. When a directory is world writtable, any file in it can be deleted by anyone. By setting the sticky bit on the directory, it will enforce ownership of the files & ensure that only the file's owners and root can delete the files. You can see an example of this in the /tmp directory.

Last edited by ongte; 11-16-2009 at 09:00 AM..
linux ongte is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SGID and SUID Paris Heng Linux - General 2 11-08-2008 10:45 PM
SUID and SGID ? Why don't they work ? tungvs Linux - Newbie 17 09-01-2008 07:36 PM
sgid and sticky bit levis_inferno Linux - Networking 5 06-01-2006 02:00 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 2 04-10-2006 06:19 PM
Significance/reason of using SUID, SGIDand Sticky bit ? tofee Linux - Newbie 1 03-23-2006 05:47 AM


All times are GMT -5. The time now is 05:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration