Hi Applecore,
I would guess the previous advice did not work for you because that
version of redhat doesn't include /usr/sbin on the standard path.
I have two redhat systems, and that is where "useradd" is on both of them.
One thing that might be important, depending on your default settings,
is to use the -s switch to specify the shell that the user will be
using (/bin/bash being the most common, in my experience).
Also, the -p switch allows you to set the password in the command
line, which is probably what you want.
So, to recap, you should do something like this:
/usr/sbin/useradd -s /bin/bash -p password username
If "useradd" is not in /usr/sbin, try typing:
whereis useradd
In general, the "whereis" command is quite helpful in circumstances like this.
Hope this solves your problem.
Take care,
Passive |
Request for Answer Clarification by
applecore-ga
on
12 Jun 2004 19:19 PDT
I created the account (I think I created it, there were no errors). I
then su to that account, and it doesn't ask for a password. I try the
passwd command to see what's up, and when it asks
'(current) UNIX password',
any password I enter gives
'passwd: Authentication token manipulation error'
Long story short, I can't get it to work. On the RedHat 8.0 box.
Kernel 2.4.18-14 on an i686.
Any suggestions? Thank you.
|
Clarification of Answer by
passive-ga
on
13 Jun 2004 14:20 PDT
Hi Applecore,
I think I know what the problem is.
I had forgotten that when you give a password to the "useradd"
command, it expects it to be already encrypted.
To get around this, you can try creating the account without a
password, (omit the "-p password" part), and then type "passwd
username", and it will allow you to set the password. This must be
done as root.
Let me know if this works for you,
Passive
|