Skip to main content
Corrected grammar.
Source Link
cas
  • 84.7k
  • 9
  • 138
  • 206

Have a quick question. Please seecompare the line belowfollowing two lines:

ls -al -rws---r-x 1 root root 21872 2009-10-13 21:06 prg1 

and, compared it to this

  -rwx---r-x 1 root root 21872 2009-10-13 21:06 prg2 

That first line implies that anyone could getDoes the elevated rights and do asetuid bit on Sudo prg1 means, along with the read and execute bits for 'other' mean that an arbitraryany user could get the same program execution rights as thecan run it with root on prg1privileges? The prg2 also has read and execute for 'other', but does not prg2 ? I mean withhave the s "flag"setuid bit set on the first program.

Sorry if not explained properly, so does that mean it can still be run by any user but am new to the Unix environment.without root privileges?

Have a quick question. Please see the line below

ls -al -rws---r-x 1 root root 21872 2009-10-13 21:06 prg1 

and, compared it to this

-rwx---r-x 1 root root 21872 2009-10-13 21:06 prg2 

That first line implies that anyone could get the elevated rights and do a Sudo prg1 means that an arbitrary user could get the same program execution rights as the root on prg1 and not prg2 ? I mean with the s "flag" set on the first program.

Sorry if not explained properly but am new to the Unix environment.

Please compare the following two lines:

-rws---r-x 1 root root 21872 2009-10-13 21:06 prg1   -rwx---r-x 1 root root 21872 2009-10-13 21:06 prg2 

Does the setuid bit on prg1, along with the read and execute bits for 'other' mean that any user can run it with root privileges? The prg2 also has read and execute for 'other', but does not have the setuid bit set, so does that mean it can still be run by any user but without root privileges?

What meansdoes the s's' attribute in ls file permissions mean?

Have a quick question. Please see the below line below

ls -al -rws---r-x 1 root root 21872 2009-10-13 21:06 prg1 

Comparedand, compared it to this

-rwx---r-x 1 root root 21872 2009-10-13 21:06 prg2 

That first line appliesimplies that any oneanyone could get the elevated rights and do a Sudo prg1 means that an arbitrary user could get the same program execution rights as the root on prg1 and not prg2  ? I I mean with the s "flag" set on the first program.

Sorry if not explained properly but am new to the Unix enviromentenvironment.

What means the s in ls file permissions?

Have a quick question. Please see the below line

ls -al -rws---r-x 1 root root 21872 2009-10-13 21:06 prg1 

Compared to this

-rwx---r-x 1 root root 21872 2009-10-13 21:06 prg2 

That first line applies that any one could get the elevated rights and do a Sudo prg1 means that an arbitrary user could get the same program execution rights as the root on prg1 and not prg2? I mean with the s "flag" set on the first program.

Sorry if not explained properly but am new to the Unix enviroment.

What does the 's' attribute in file permissions mean?

Have a quick question. Please see the line below

ls -al -rws---r-x 1 root root 21872 2009-10-13 21:06 prg1 

and, compared it to this

-rwx---r-x 1 root root 21872 2009-10-13 21:06 prg2 

That first line implies that anyone could get the elevated rights and do a Sudo prg1 means that an arbitrary user could get the same program execution rights as the root on prg1 and not prg2  ? I mean with the s "flag" set on the first program.

Sorry if not explained properly but am new to the Unix environment.

Post Closed as "Duplicate" by Michael Mrozek
Post Reopened by Michael Mrozek
Post Closed as "Duplicate" by slm, Stéphane Chazelas, terdon, Anthon, Braiam
edited tags; edited title
Link
Braiam
  • 36.9k
  • 29
  • 114
  • 176

Regarding Unix commands What means the s in ls file permissions?

Source Link
anders
  • 1.4k
  • 2
  • 8
  • 4
Loading