Not Able to add users

Posted on 2006-03-21
Last Modified: 2013-12-16
First, I have done some "tweaking"
I am on FC3 -- partly because I could not get 4 or Centos 3 or 4 to load on my hardware, basically Intell D915plwd motherboard

I have since loaded (and gotten working by the tweaks)
PHP 5x
ColdFusion 5
BlueDragon 6.2.1 JX
It was mostly the older ColdFusion 5 that probably mucked up the works

When I try to add a user I get the following
[root@falcon etc]# /usr/sbin/adduser -d /www/horizon/ horizon
adduser: cannot rewrite shadow password file

Could use some help here

thanks in advance
Question by:Len45
    LVL 34

    Expert Comment

    by:Duncan Roe
    You could try useradd - another similar command.
    Do you have shadow passwords anyway? (Does /etc/shadow exist?)
    If you don't have shadow passwords enabled, you can add users by editing /etc/passwd. Set their password up from root afterwards by "passwd <new_user_name>".
    LVL 43

    Expert Comment

    > adduser: cannot rewrite shadow password file
    You run it as root?
    Your disk is not full?

    Author Comment

    duncan roe:
    Both adduser and useradd actually write the user to the passwd file and create the /home/userdirectory
     I then get... adduser: cannot rewrite shadow password file
    Yes shadow and -shadow are there shadow did have a r-------- I chmod'd it to 600, with the result above
    When I try to set the password with /usr/bin/passwd...
    Changing password for user test_user.
    passwd: Authentication token manipulation error

    Yes I am running as root
    /dev/hda5             4.9G  1.6G  3.1G  34% /

    Author Comment

    I have been Googling... with no luck y'all are the hope of my future, uping the ante

    Author Comment

    Well, you futz long enough and it heals, eh?
    there must have been some inconsistency between files -- I manually cleaned up passwd, shadow and group
    did a pwunconv pwconf grpunconv grpconv
    now she works...

    Thanks for the tip, now I need to know how to close this question
    LVL 25

    Expert Comment

    Good work solving your own problem.  EE would much appreciate it I'm sure if you could post in the Community Support area to PAQ the question and refund your points.

    Accepted Solution

    Closed, 500 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now