Link to home
Start Free TrialLog in
Avatar of dplinnane
dplinnaneFlag for United States of America

asked on

restarting bash_profile for root user.

I am on a windows machine and I am using tight vnc to login to a linux machine.  You cannot login as root using tight vnc so I created a statndard user called admin.
Once I login as admin I open up a vi editor and su root.
Once in root I run the command ifconfig. It does not work.
I know this works when I login in directly to the linux machine as root.
I'm guessing I have to relaod or restart the bash_profile for root. How do I do this or is it even possible.
Thanks
Avatar of jkr
jkr
Flag of Germany image

Try

su - root

instead of just

su root

to initialize the profile.
Avatar of dplinnane

ASKER

Thanks I actually got it working beofre you posted. I'll give you the points if you can tell me what the diffeence between su - root is and su root
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial