[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

restarting bash_profile for root user.

Posted on 2007-04-03
3
Medium Priority
?
524 Views
Last Modified: 2013-12-26
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
0
Comment
Question by:dplinnane
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 18845026
Try

su - root

instead of just

su root

to initialize the profile.
0
 

Author Comment

by:dplinnane
ID: 18845669
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
0
 
LVL 86

Accepted Solution

by:
jkr earned 2000 total points
ID: 18845701
'-' implies '-l' which creates a login shell, which automatically causes the profiles to be read. Without that, just the user and group IDs are substituted and the 'old' shell environment remains.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question