Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A very basic question, bout File-access-rules

Status
Not open for further replies.

ratbs75

IS-IT--Management
Mar 8, 2001
147
BE
Still with this stupid question: how to remove "su" access for all users but root and 2 others.

(i work on "su_old", a copy of "su", preventing making errors...)
when I do:
# ls -ll su*
-r-sr-xr-x 1 root bin 20480 Jun 10 1996 su
-r-sr-xr-- 1 root sys 20480 Dec 4 16:39 su_old

so first for any reason as i copied "su" to "su_old" (which i work with at the moment for test purposes), it chaged the group from "bin" to "sys"... i dunno why.
THEN,
I made a "#chmod o-x su_old", thinking nobody else but users belonging to group "sys" would be able to use "su_old". But now with my user belonging to the group "sys", I'm have no more permissions to execute "su_old".

Sorry, but I'm a bit lost... as "su_old" has a group permission from read & execute, why does my user belonging to group "sys" have no rights to execute???

I'm sure it's sooo stupid easy, but I don't understand.....

thnx again
 
btw, what stands the 's' in the access of

-r-sr-xr-x 1 root bin 20480 Jun 10 1996 su
-r-sr-xr-- 1 root sys 20480 Dec 4 16:39 su_old


the 's'... normaly there is an 'x' instead...?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top