Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

add user help

Posted on 1997-08-26
1
Medium Priority
?
217 Views
Last Modified: 2013-12-15
I have just installed slackware (not sure what version or the kernel),  when I attempt to add a user to the system I get a segmentation fault error after it asks if the info i gave it is correct.  The only account on there so far is root.  Im new to the Linux world and couldnt really find to much documentation on troubleshooting.  Hope someone can help!   Thanks

Zillion
0
Comment
Question by:zillion
1 Comment
 

Accepted Solution

by:
jkillen earned 200 total points
ID: 1629329
You can do one of two things at this point.  1) reinstall adduser and maybe everything   2) add a user by hand.  This is done by
editing /etc/passwd   the format is this  
username:password:UID:GID:finger info (4 ,'s works fine):home directory:shell
If you open up /etc/passwd and copy the entry for root to the next line then change the username, UID, GID, and home directory then you will have a new user.  

Note:
  UID should be the highest UID in the file +1 the highest UID should be the last one in the file but you never know.
  GID needs to be a valid group id.  You can leave it as root's GID for now but you should probally change it later when adduser is back up.
  home dir. you will have to add the user to /etc/passwd and then
go create a home dir. where ever you said it would be (under /home I suspect) and make it owned by that user.  
    chown newuser.GID home_dir.  the GID for root should be 0 so
you can use that if you left the newuser GID the same as roots.

If I haven't forgoten anything you should now have a user named
username with a password the same as roots.  Now you can login
and change the password of your newuser.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

971 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