Click to See Complete Forum and Search --> : Problems adding users
Ok here's the setup: Redhat 7.1, I'm using SSH to remotely administer. I'm trying to add a user but nothing seems to work (I believe I've done it successfully before using gnome-linuxconf)
# adduser username
bash: adduser: command not found
# useradd username
bash: useradd: command not found
# whereis useradd
useradd: /usr/sbin/useradd /usr/share/man/man8/useradd.8.gz
what does this mean? what am I doing wrong?
thanks,
dbc
RedGren
09-12-2001, 02:45 PM
Are you root?
If you ssh in, you probably logged in as a user, and need to "su" to become root authority.
I tried that earlier, but here is some output anyway:
[root@localhost dbc]# whoami
root
[root@localhost dbc]# adduser username
bash: adduser: command not found
[root@localhost dbc]# useradd username
bash: useradd: command not found
Do I need to get these programs from an RPM or something?
still confused,
-dbc
Taizong
09-12-2001, 04:58 PM
Agreed. I seriously dought you are root.
Taizong
09-12-2001, 05:04 PM
Wierd. Is this your box or a virtual web hoster?
Try adding bin and sbin to path, just to test (although I can't see why they wouldn't be there).
Try manually adding them the old fashioned way, editing your passwd and groups files.
element-x
09-12-2001, 05:18 PM
Instead of typing just "su" at the command line, try using "su -" it may give you better results.
Craig McPherson
09-12-2001, 10:34 PM
You just don't have /sbin and /usr/sbin in your path.
Either add them to your path, or use the full path to the commands, as in /usr/sbin/useradd.
error27
09-13-2001, 12:28 AM
Craig is right.
You can tell he is root because he says he is root and his prompt ends in '#' which generally standard for root.
I seem to remember helping my friends install a certain namless distro (not debian) where the root $path was screwed up.