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.
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.