nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

SUID and SGID

This is a discussion on SUID and SGID within the Getting started tutorials forums, part of the Linux Getting Started category; Please help me in understanding the SUID and SGID. Any assistance using examples is useful for me...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 09-10-2007, 09:02 PM
Junior Member
User
 
Join Date: Jul 2007
Location: Hyderabad
My distro: Redhat RHEL, Solaris
Posts: 29
Rep Power: 0
vaibhav.kanchan is on a distinguished road
Default SUID and SGID

Please help me in understanding the SUID and SGID. Any assistance using examples is useful for me
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-11-2007, 11:33 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

setuid (SUID) and setgid (SGID) are Unix / Linux terms, which are short for "Set User ID" and "Set Group ID", respectively. setuid (also sometimes referred to as "suid") and setgid are access right flags that can be assigned to files and directories is a Unix system. They are mostly used to allow users on a computer system to execute binary executables with temporarily elevated privileges in order to perform a specific task.

setuid and setgid are needed for tasks that require higher privileges than those which a common user has, such as changing his or her login password. Some of the tasks that require elevated privilege may not immediately be obvious, though — such as the ping command, which must send and listen for control packets on a network interface.

setuid and setgid flags on a directory have an entirely different meaning.
Directories with the setgid permission will force all files and sub-directories created in them to be owned by the directory group and not the group of the user creating the file. The setgid flag is inherited by newly created subdirectories.



Linux > More on USER ID, Password, and Group management

How Linux file permissions work
__________________
May the force with you!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to find out all SUID,SGID and world writable directories chiku All about FreeBSD/OpenBSD/NetBSD 2 06-05-2005 01:16 PM


All times are GMT +5.5. The time now is 02:53 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36