Results 1 to 3 of 3
Hello Linux enthusiasts,
Checking permissions on a file on my server shows this:
-rwxrws---
What is the "s" in the second triad?
Best wishes,
Methodical...
- 11-22-2003 #1Just Joined!
- Join Date
- Dec 2002
- Posts
- 11
Permissions question
Hello Linux enthusiasts,
Checking permissions on a file on my server shows this:
-rwxrws---
What is the "s" in the second triad?
Best wishes,
Methodical
- 11-25-2003 #2Linux Engineer
- Join Date
- Dec 2002
- Location
- New Zealand
- Posts
- 766
im pretty sure its suid. which pretty much means it is accessible by all users
- 11-25-2003 #3Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
SUID means it will run as whoever the owner of the file. Say you have a file owned by root with +s and you are logged in with bobthebuilder, when you run the file, it will execute with root permissions instead of bobthebuilder permissions. Files which are owned by root and +s are very dangerous if poorly coded since they can be exploited to gain root access to your server.
That will list all files that are +s on your machine. Some files require +s like su and passwd.Code:find / -perm -u+s -type f -exec ls -ld {} \;


Reply With Quote
