Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Profiles

Status
Not open for further replies.

nashcom

MIS
Apr 12, 2002
91
GB
Hi

I've got a beginner's question. I'd like to modify the PATH for the root user on an OpenUnix 8 system, so that I can run samba commands from anywhere. I've tried typing in

PATH=$PATH:/usr/lib/samba/bin
export PATH

This works, but I'd like to automate it. However, I'm not sure where the .profile file is for the root user. As I understand it, there is a /etc/profile file that is executed first for all users, then each individual user will run their /home/<user>/.profile script. However, there isn't a /home/root directory on my system. I read that the root user's path is set explicitly, and that you can't just modify the /etc/profile.

Thanks in advance.
 
Should be simple to figure out where root's profile is hiding.

1.- login as root
2.- type cd and enter
3.- type pwd and enter
This is root's home directory (should be / but i'm not sure with openunix 8)
4.- vi .profile (notice the dot preceeding profile)

make your changes, logout, login
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top