bash: command not found
Hey,
I was using the command line in order to add some users (my friends) to my computer so that they could log into RH9 on my PC. I gave myself an account and one friend. Then I rebooted (a couple of hours later) and when I came to start back at it again, I get an error when I do it. Screen like this: [root@localhost root]# useradd sam bash: useradd: command not found [root@localhost root]# What am I doing wrong? I did the EXACT same thing this morning and now it isn't working. Please help. I have tried the same for adding groups, but I get the same error. Can anyone think of problem? All suggestions are helpful, even if they are irrelivent, I like learning!!! thanks Hamish |
i know it is a command but try typing the other method ::
adduser ? or maybe /usr/sbin is not in your path...so try the full path if adduser doesn't work... |
How did you get to becoem root?
If you typed: su And not: su - Then you will only have your user PATH variable set which does not include /usr/sbin. If you use "su -" it will create a new shell for root. So wither run: su - useradd or: /usr/sbin/useradd |
Hey,
thanks a lot guys, that is great. I have it all working now. this forum is SO good for n00bs like me. Very helpful. With any luck, I will, one day, be able to help out other users. cheers Hamish |
Hey,
one last thing for tonight, Although I really want to do everything with command line, I would also like to learn about administering accounts with the GUI. I know that RH8 had the linuxconf thing, but that no longer appears in RH and that it has been split into more specific GUIs. Which ones are these and where can I find them? thanks loads Hamish |
Try running:
redhat-config-users There is a menu item for it - under system tools I think. |
the solution
just switch to the root account then vi .bash_profile
change it should look like this PATH=$PATH:/usr/sbin:/sbin:$HOME/bin then save it (by esc then shift : then type wq)(then type source .bash_profile) this will make that the root will also look in the sbin folder |
Quote:
|
All times are GMT -5. The time now is 02:33 PM. |