Linux - Newbie This Linux 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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-17-2002, 03:14 PM
|
#1
|
|
Member
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344
Rep:
|
How do I check the SUID bit?
set/unset it?
Last edited by WeNdeL; 12-17-2002 at 03:25 PM.
|
|
|
|
12-17-2002, 03:33 PM
|
#2
|
|
Moderator
Registered: May 2001
Posts: 24,779
|
To find 'em: "find / -perm -4000", then "chmod -s <filename>".
Don't wrap it up like "find / -perm -4000 | xargs chmod -s" because some binaries (like passwd) actually need the bit.
|
|
|
|
12-18-2002, 08:22 AM
|
#3
|
|
Member
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344
Original Poster
Rep:
|
so what does that extra most significant digit do?
I messed around with chmod last night and this is what I got:
chmod 4000 somefile
gave me ---S------
chmod 2000 somefile
gave gave me -----S------
chmod 1000 somefile
gave me ---------T
what is this?
what exactly does setting the SUID bit do?
I am using Rh 7.2 and 8.0 and the man page for chmod doesn't include the "-s" flag...
can someone further explain this?
|
|
|
|
12-18-2002, 02:37 PM
|
#4
|
|
Member
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344
Original Poster
Rep:
|
*bump*
Last edited by WeNdeL; 12-19-2002 at 10:42 AM.
|
|
|
|
12-20-2002, 01:02 AM
|
#5
|
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
man chmod, the description's in the first few paragraphs.
The syntax for chmod looks a bit different from your typical UNIX
command, but isn't really that different. the "-s" "flag" is really a
mode, not an option (or flag).
The set (U/G)ID bit (S) is different from the sticky bit (T), and both
are explained in the first paragraphs on the man page.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:44 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|