Hi all. I want to let some operators type folks spawn a shell session running as ROOT using sudo and that works fine by doing this:
sudo -u root -s
The problem I have is in getting roots .profile to run automatically (so I dont have to depend on the ops to do it, because they are knuckleheads)! I have tried writing a little script that does the sudo and then executes the .profile, but that does not work.
Anyone doing anything like this?
sudo -u root -s
The problem I have is in getting roots .profile to run automatically (so I dont have to depend on the ops to do it, because they are knuckleheads)! I have tried writing a little script that does the sudo and then executes the .profile, but that does not work.
Anyone doing anything like this?