Click to See Complete Forum and Search --> : RH 7.2 in su mode


i_like_peanut_butter
11-09-2001, 12:25 PM
I've come across something weird with RH 7.2, just wondering if anyone else has seen it...

When I am logged in my user account, but in su mode I don't have full root powers. For example, the command ifconfig doesn't work. It says bash does not recognize the command. However, if I log out and log back in as root everything is groovy. I have been able to install software as su but as I said some commands, most noticiably ifconfig, don't work. Is there a setting I should change or am I out of luck?

Thanks

Jomboni
11-09-2001, 12:44 PM
I've had this problem, too. I couldn't use insmod as su. I believe (meaning don't hold me to this!) that it doesn't let you run programs in /usr/sbin as su, only as root.

EyesWideOpen
11-09-2001, 02:44 PM
You probably need to add a dash after the su command to make it a login shell.

Try typing su -

i_like_peanut_butter
11-09-2001, 02:48 PM
I'll try that. Just odd, I've been using Mandrake 8 on my other machine and the plain su command got me where I needed to go.

Thanks

David Dorward
11-09-2001, 03:23 PM
su gives you root permissions
su - gives you root permissions and runs all of roots log on scripts.

You can run ifconfig and all the other commands after a simple "su", but they won't be in your path. They reside in /sbin and /usr/sbin, which are directories used to house programs that normal users should never need to run. When you run "su" you don't get this directory added to your path so you need to use the full path to programs in it: /sbin/ifconfig for example.

i_like_peanut_butter
11-09-2001, 03:36 PM
*light clicks on*

Ah!