Skip to main content
2 of 4
edited tags; edited title
Braiam
  • 36.9k
  • 29
  • 114
  • 176

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.

anders
  • 1.4k
  • 2
  • 8
  • 4