Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-31-2012, 08:14 AM   #1
Senior Member
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,452

Rep: Reputation: 85
Sticky bit

In the screenshot, the guy gives the command

chmod 1770 RandR

That gave the RandR directory permissions


I noticed that /tmp has a lowercase t. What is the difference?

Also, since that T is taking the place of write permission for all other users, how would a user know that others do not have the write permission? The chmod 1770 RandR means it does not, but if a user only saw the file permissions, how would you know whether others had write permissions or not?
Attached Thumbnails
Click image for larger version

Name:	bigTlittleTstickybit.JPG
Views:	31
Size:	128.4 KB
ID:	11116  

Last edited by fakie_flip; 10-31-2012 at 08:24 AM.
Old 10-31-2012, 09:44 AM   #2
LQ Newbie
Registered: Oct 2003
Posts: 2

Rep: Reputation: 2
mars:tmp $ chmod 755 test
mars:tmp $ ls -ald test
drwxr-xr-x 2 pim staff 68 31 okt 15:17 test

mars:tmp $ chmod 1755 test
mars:tmp $ ls -ald test
drwxr-xr-t 2 pim staff 68 31 okt 15:17 test

mars:tmp $ chmod 1750 test
mars:tmp $ ls -ald test
drwxr-x--T 2 pim staff 68 31 okt 15:17 test

Capital T is to indicate the x-bit is missing. See?
2 members found this post helpful.
Old 10-31-2012, 09:48 AM   #3
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,328

Rep: Reputation: 254Reputation: 254Reputation: 254
NB: In a similar way you can get an uppercase S for suid and sgid bits in case x is missing.
2 members found this post helpful.
Old 10-31-2012, 09:55 AM   #4
LQ Newbie
Registered: Oct 2003
Posts: 2

Rep: Reputation: 2
BTW: the last bit is the other's-'x'. This is not the "write", but the execute bit. For files it means you may execute it (scripts and executables). For directories it means you may traverse into the directory. If you may see contents of the directory depends on the 'r' (read) bit.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sticky situation bcos of sticky bit Voyager7 Linux - Newbie 4 02-28-2011 11:29 PM
sticky bit lipun4u Linux - Newbie 8 02-28-2010 04:17 PM
About Sticky bit... masudur_iiu General 4 09-13-2006 10:23 AM
Sticky Bit tarballed Linux - General 4 07-03-2002 03:54 PM
sticky bit motiram Linux - General 1 08-01-2001 12:34 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration