LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-10-2018, 06:28 AM   #1
SriRamaSan
LQ Newbie
 
Registered: Sep 2018
Posts: 11

Rep: Reputation: Disabled
Unset sticky bit /tmp


Hi,

In my server I could see the sticky bit permission is set for the /tmp folder

Code:
drwxrwxrwt  10 root root  4096 Oct  9 00:59 tmp

getfacl: Removing leading '/' from absolute path names
# file: tmp
# owner: root
# group: root
# flags: --t
user::rwx
group::rwx
other::rwx
however when trying to remove the sticky bit, its failing
Code:
root@p8-110-neo:~# chmod -t /tmp/
chmod: changing permissions of '/tmp/': Read-only file system
root@p8-110-neo:~#
please help to reset.
 
Old 10-10-2018, 07:52 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by SriRamaSan View Post
Hi,
In my server I could see the sticky bit permission is set for the /tmp folder
Code:
drwxrwxrwt  10 root root  4096 Oct  9 00:59 tmp

getfacl: Removing leading '/' from absolute path names
# file: tmp
# owner: root
# group: root
# flags: --t
user::rwx
group::rwx
other::rwx
however when trying to remove the sticky bit, its failing
Code:
root@p8-110-neo:~# chmod -t /tmp/
chmod: changing permissions of '/tmp/': Read-only file system
root@p8-110-neo:~#
please help to reset.
Best question to ask here is "Why???" What are you trying to accomplish by doing this? /tmp is set the same way on ALL my systems, and I have zero problems. Further, you don't give us any details (version/distro of Linux, what problem(s) this sticky bit is causing, goals, etc.), so we can't even begin to guess. Short answer: you could remount /tmp as read/write, or boot to single user mode and do this...but there is NO POINT at all.
 
1 members found this post helpful.
Old 10-12-2018, 07:13 AM   #3
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Sticky bit is set for a reason on /tmp (it is like that on all UNIX OSes).
See: https://docs.oracle.com/cd/E19683-01...-69/index.html
As TB0ne asked, why are you trying to change this?
 
1 members found this post helpful.
Old 10-13-2018, 11:42 PM   #4
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,780

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Still there is the question why there is "Read-only file system". I guess then any write attempt to /tmp will fail, like "touch /tmp"?
If yes, ensure that /tmp is correct in /etc/fstab, and reboot the system.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: What is Linux sticky bit and how to set Linux sticky bit. LXer Syndicated Linux News 0 01-25-2018 01:12 AM
Sticky bit fakie_flip Linux - Software 3 10-31-2012 09:55 AM
[SOLVED] The suid bit was unset on /bin/su chrisandclem Linux - Security 11 04-06-2012 03:15 PM
Sticky situation bcos of sticky bit Voyager7 Linux - Newbie 4 02-28-2011 11:29 PM
About Sticky bit... masudur_iiu General 4 09-13-2006 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:47 AM.

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