LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2017, 11:59 AM   #1
elbek
LQ Newbie
 
Registered: Feb 2017
Location: Uzbekistan
Distribution: Mint, Fedora
Posts: 7

Rep: Reputation: Disabled
rhel visudo Read-only file system


Hi guys, I am trying to add a new user as a sudoer using visudo and system is complaining about file system read only.

Code:
visudo
visudo: /usr/local/packages/sudo_remote/1.6.7p5/etc/sudoers: Read-only file system
this is not making drive read write:
Code:
mount -o remount,rw /
How to make sudoers file read-write so visudo works?

Thanks.
 
Old 03-03-2017, 12:22 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,242
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
OK, dumb question: Are you running visudo as root?
 
Old 03-03-2017, 12:27 PM   #3
elbek
LQ Newbie
 
Registered: Feb 2017
Location: Uzbekistan
Distribution: Mint, Fedora
Posts: 7

Original Poster
Rep: Reputation: Disabled
yes, I am.
 
Old 03-03-2017, 01:15 PM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,242
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
OK you believe this FS is mounted ro you can check that with:

Code:
grep "\sro[\s,]" /proc/mounts
If that doesn't work for you then simple
Code:
cat /proc/mounts
and look to see how the FS was mounted.

If it's ro then remount with
Code:
mount -o rw,remount /
If this doesn't make the FS read/write then you might have ab FS issue and should run a check against it once you have unmounted it.
 
  


Reply

Tags
rhel


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
Read Only Root File System in RHEL 7 sacauskis Red Hat 9 01-08-2016 04:39 AM
Read Only File System in "RHEL 5" nishith Linux - Hardware 2 06-03-2014 11:30 AM
Grant read-only access to users using visudo? BCC Linux - Newbie 3 04-10-2013 05:30 PM
[SOLVED] Make the root file system read-only on RHEL 5.3 ursusca Linux - Security 17 11-28-2009 05:18 PM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 08:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration