Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Chmos +s --help, what does the s flag do?
ctrunk514
post Oct 7 2003, 09:04 AM
Post #1


./configure
***

Group: Members
Posts: 93
Joined: 29-May 03
From: Denver, CO, USA
Member No.: 902



What does the s flag at the end of chmod do? The man page dose not seem to talk about it.
Go to the top of the page
 
+Quote Post
Corey
post Oct 7 2003, 11:13 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3



The +s sets the "sticky bit" on a file. You can find this in the manpage under "sticky file" and "sticky directories".

eg.
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.


--------------------
Corey Quilliam
(former) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

--
Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th October 2017 - 05:27 PM