LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   usermod and useradd problem (https://www.linuxquestions.org/questions/linux-newbie-8/usermod-and-useradd-problem-292649/)

kenji 02-20-2005 12:50 PM

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

lyle_s 02-20-2005 12:58 PM

usermod and useradd both accept an already encrypted password for their -p options.

The best way is to use the passwd command.

Lyle

kenji 02-22-2005 12:48 PM

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

lyle_s 02-22-2005 05:54 PM

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

kenji 02-23-2005 11:10 AM

thanks for the help i tried that and it worked
phew i thought it is a bug gee thanks! £Ä3


All times are GMT -5. The time now is 09:13 PM.