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 |
usermod and useradd both accept an already encrypted password for their -p options.
The best way is to use the passwd command. Lyle |
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 |
Quote:
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 |
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. |