Solved

add user help

Posted on 1997-08-26
1
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
jkillen earned 100 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

630 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