Help - Search - Members - Calendar
Full Version: Chmos +s --help
Linuxhelp > Support > Technical Support
What does the s flag at the end of chmod do? The man page dose not seem to talk about it.
The +s sets the "sticky bit" on a file. You can find this in the manpage under "sticky file" and "sticky directories".

I want mplayer to run with root permissions so that it can access the real-time clock (/dev/rtc), so I set the sticky bit on the mplayer binary so it can run with root permissions:

chmod +s /usr/bin/mplayer

This is somewhat of a security risk, so most people (systems administrators) usually keep a tight check on what files are sticky (or SetUID) for security purposes.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.