0

If I run
ll /usr/bin/crontab

it gives me this output:
-rwsr-sr-x 1 root root 315432 Nov 10 2007 /usr/bin/crontab

What does 's' means in the permission mask?

Why do they need to use that?

Thanks, Dan

2 Answers2

5

The s means setuid (or setgid). In this case the crontab program will run with root permissions (because root is the owner) when ran by other users.

theotherreceive
  • 8,365
  • 1
  • 31
  • 44
1

These are permissions as listed with the ls command.

r=read

w=write

x=executeable

s=setuid

Rajat
  • 3,349
  • 22
  • 29