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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-12-2014, 03:24 AM
|
#1
|
LQ Newbie
Registered: Sep 2013
Posts: 13
Rep:
|
useradd: cannot rewrite password file
Hello All,
I am trying to add user as root and I keep getting the error as shown above.
useradd: cannot rewrite password file
I know i have SElinux in enforcing mode but not sure what t do to resolve this
Code:
[Machine]# getenforce
Enforcing
[Machine]#
Please, can anyone help
|
|
|
08-12-2014, 03:47 AM
|
#2
|
Senior Member
Registered: Sep 2012
Posts: 1,385
|
It sounds as a very old bug. What's the distro you are running?
Try to disable SELinux.
|
|
|
08-12-2014, 10:18 AM
|
#3
|
LQ Newbie
Registered: Sep 2013
Posts: 13
Original Poster
Rep:
|
Thanks Kooru,
I am on REDHAT Release 4.
|
|
|
08-12-2014, 12:57 PM
|
#4
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,985
|
FYI, if I were using SELinux, I probably wouldn't be using "password files" anyhow. This would probably be part of a larger system network which I would manage using Kerberos or LDAP (ActiveDirectory).
|
|
|
08-12-2014, 02:20 PM
|
#5
|
LQ Newbie
Registered: Sep 2013
Posts: 13
Original Poster
Rep:
|
Thanks sundialsvcs,
We do not have that in place for our linux servers hence we are restricted to using Password file.
|
|
|
08-12-2014, 02:44 PM
|
#6
|
Senior Member
Registered: Sep 2012
Posts: 1,385
|
But RHEL 4.0 or 4.x?
We're talking about a system released in 2005 and its supports will end between 6 months. Just for information.
have you tried disabling SELinux?
also check for *.lock files in /etc (in according with this)
Last edited by kooru; 08-12-2014 at 02:59 PM.
Reason: add link
|
|
|
08-12-2014, 03:05 PM
|
#7
|
Member
Registered: Oct 2009
Distribution: Slackware
Posts: 534
|
Hmm... Do an first and see if there aren't any flags that block any modifications to the file (like the 'i' flag)
|
|
|
All times are GMT -5. The time now is 08:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|