Click to See Complete Forum and Search --> : User problem
Hi
I've just installed Redhat v9 and created a new user under the default group.
When i SU, I cannot run the commands, iptables, ifconfig, etc etc, says they are not found. Also does this if I dont SU. Any ideas?
Satanic Atheist
10-13-2003, 07:39 AM
These utilities are in the /sbin directory and are intended for the Superuser only.
To run these utils as a normal user, either add /sbin to your path, make the user a superuser (UID & GID of 0) or type /sbin/<utility> to run them.
That last option is the preferred one, but no guarantees you'll get results. Users aren't normally required to perform system administration!
James
BaVinic
10-13-2003, 09:18 AM
If you are going to work in SU mode, you should add the "-" to the command like this
su -
this way, you will have access to the root path as well, you will be able to do anything that root would be able to do, including running the apps you listed.
BaVinic
funnyjedi
10-13-2003, 09:41 AM
By default the PATH in which redhat searches for files is /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:~/bin
so thats one reason why it never finds utilities in /sbin or /usr/sbin. You can add this to your default path.