LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-20-2005, 01:50 PM   #1
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

Rep: Reputation: 16
usermod and useradd problem


im using redhat 9 and im trying to edit and add users
in the shell prompt but as i try to log in as a new user
it promts that the password is incorrect but if i edit and
add a user in the redhat-config-users i can log in as the
new user maybe this is because of the password encryption
i tried editing the /etc/shadow and /etc/passwd please i
want to create and modify users using the shell prompt
thanks for the help! 3
 
Old 02-20-2005, 01:58 PM   #2
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 389

Rep: Reputation: 52
usermod and useradd both accept an already encrypted password for their -p options.

The best way is to use the passwd command.

Lyle
 
Old 02-22-2005, 01:48 PM   #3
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

Original Poster
Rep: Reputation: 16
thanks for the help i tried passwd and
it worked for me i can edit password now
thanks i think i should not include the
password in usermod and useradd i think
it is much secure. i have another question
i logged in as a different user and i typed
su and typed the password and i type
usermod and useradd in the shell prompt
and gave me a message command not
found! 3

Last edited by kenji; 02-22-2005 at 01:56 PM.
 
Old 02-22-2005, 06:54 PM   #4
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 389

Rep: Reputation: 52
Quote:
i have another question i logged in as a different user and i typed su and typed the password and i type usermod and useradd in the shell prompt and gave me a message command not found!
Use:

su -

(the su command with "-" as an argument.) This will give you the same environment you'd have if you logged in directly as root. In turn, your path will contain usermod and useradd.

Lyle
 
Old 02-23-2005, 12:10 PM   #5
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

Original Poster
Rep: Reputation: 16
thanks for the help i tried that and it worked
phew i thought it is a bug gee thanks! 3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem with usermod in linux sillyman Linux - Security 1 11-29-2004 09:03 PM
useradd problem efanning Linux - Newbie 1 07-29-2004 08:24 PM
usermod / useradd ? bibilit Linux - Software 1 12-19-2003 03:16 AM
/etc/shadow and useradd -p usermod -p granny Linux - Security 3 08-29-2003 01:24 AM
useradd problem scatcat Linux - Newbie 3 06-21-2002 04:33 AM


All times are GMT -5. The time now is 05:16 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration