LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-02-2002, 04:28 AM   #1
barkers
Member
 
Registered: Apr 2002
Distribution: Debian
Posts: 50

Rep: Reputation: 15
how do i create a new user


im not sure what im doin wrong with this.

im using suse linux 7.0, how do i add a new user. please dont say use adduser because there is no command adduser.

it doesnt seem to work properly i can never login as the user i have created

thanx
barkers
 
Old 05-02-2002, 04:55 AM   #2
yai68
LQ Newbie
 
Registered: Apr 2002
Location: Manchester, UK
Distribution: SuSE
Posts: 3

Rep: Reputation: 0
Try useradd (as root)
man 8 useradd explains all.
 
Old 05-02-2002, 05:01 AM   #3
barkers
Member
 
Registered: Apr 2002
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 15
sorry should have siad, i have already been using tried useradd.

it creates a home directory and everything, but i cant login as that user.

is there something else i need to do

ive been doing it like this

useradd -p mypasswd boogieman

is this wrong
 
Old 05-02-2002, 05:23 AM   #4
yai68
LQ Newbie
 
Registered: Apr 2002
Location: Manchester, UK
Distribution: SuSE
Posts: 3

Rep: Reputation: 0
When you specify the -p option you are setting the encrypted password.
Look in /etc/shadow and you'll see

Try doing:-
# useradd boogieman
# passwd boogieman

Then check out /etc/shadow again
 
Old 05-02-2002, 05:36 AM   #5
barkers
Member
 
Registered: Apr 2002
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 15
thanks
 
Old 05-08-2002, 04:07 PM   #6
Druaga
Member
 
Registered: May 2002
Location: Canada
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
how do i delete a user??
it doesnt tell me in the man page.
 
Old 05-08-2002, 04:14 PM   #7
Themonk
LQ Newbie
 
Registered: Apr 2002
Location: Houston, TX
Distribution: Mandrake
Posts: 22

Rep: Reputation: 15
Try linuxconf from there you can add new users, delete users change group settings along with afew other things.
 
Old 05-08-2002, 04:14 PM   #8
Shrike
LQ Newbie
 
Registered: May 2002
Location: oregon
Distribution: Slackware (normally)
Posts: 21

Rep: Reputation: 15
to remove a user without removing his/her home directory "userdel (username)

to remove a user and his/her directory "userdel -r (username)"

to find and remove the users files thrughout the system:

note the user ID from the password file before deleting.

"find / -type f -uid (the users ID) -print -exec rm {} \;"

Last edited by Shrike; 05-08-2002 at 04:19 PM.
 
Old 05-09-2002, 12:25 AM   #9
growler
Member
 
Registered: Apr 2002
Posts: 84

Rep: Reputation: 15
also, check out userdel and usermod.
 
Old 05-09-2002, 03:07 AM   #10
barkers
Member
 
Registered: Apr 2002
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 15
when i do
passwd (username)

as root it says

passwd:Module unknown

or something like that, and doesnt let me change the password.

i cant figure out why, is something not installed properly, or am i bein stupid
 
  


Reply



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
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
how to create linux user novaprime Linux - Security 3 08-15-2005 03:31 PM
create a new user via ssh cccc Debian 4 08-01-2005 01:41 PM
how to create user phoenix_fei Programming 1 11-26-2004 05:02 AM
Create First User krite Linux - Newbie 2 04-03-2004 01:38 AM

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

All times are GMT -5. The time now is 04:46 PM.

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
Open Source Consulting | Domain Registration