How can I get sudo -u <username> to load that users profile on HP-UX
I am running a serverapplication on a HP-UX machine where I need to handle some of the commands as a specified user called "druser".
When I log on as this user with the command;
it starts an instance of the shell as that user.
However, it doesn't load that users .profile from his home directory so I don't get the path or prompt for this user.
Each time I have to input this manually after the sudo -u command.
Is there a way to automatically get the users .profile processed when loggin in as a user this way?
PS. Btw the machine is a HP-UX B.11.11 U 9000/800 if that matters. DS.
Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following: ssh -t hostname "bash --noprofile" Is there a way to... (32 Replies)
Hi all,
In Solaris , What entry should I add in my .profile file in home directory so that every time I don't have to give
Sudo's full path like
/usr/local/bin/sudo as well as /usr/sbin/ping
and it will be Great help if you could tell me how to know what should be added.
Please Advice.... (2 Replies)
i've created a custom profile that contains custom functions and alias' etc...
it's called .jason_profile
currently we ssh to the server then load the profile manually from the cmd line i.e
. /home/jack/.jack_profile
we want to be able to ssh and source the profile automatically but... (4 Replies)
Hi Guys,
I was studying RBAC and I gave a profile to a user . I have not seen anywhere that shows how to remove the profile from the users account. Can anyone show me how to remove a given profile from a users account?
Thanks alot guys. (2 Replies)
Hi,
Thanks for looking at this.
I would like to know who is actually logged in as sudo root ?
ex: i have many users given sudo rights as root, and all of they are making changes as root and it is difficult for me to know who did what ,a s it shows as rot only.
Is there any way to find or... (4 Replies)
Hi Team,
Thank you for your time.
i have a situation where the user IDs of the applicatio users have been locked down to Read only.
Hence I am writing a script to invoke their old .profile every time they login.
My problem is : when i run . $userpath/.profile from within the ksh script... (9 Replies)
Hi,
I've set on /etc/profile:
TMOUT=3600
readonly TMOUT
It seems to work when I connect using ssh client, putty for example, but not when connect through sftp. What am I missing on sshd configuration?
regards
Israel. (2 Replies)
Hello to everyone,
This is my first that I use any group in order to find a reply to my question.
I would really like your help!!!
Do you know how can I create my own .profile file in unix (not edit the existing one) and how can I load it when i open a new bash? I would like those settings... (1 Reply)
guys
i have a unix user (say "x") which is also an application owner ..thru this user i manage most (90 %) of my tasks related to application i.e application down/up,processes stop/start etc..in short i manage my "tuxedo" via this user..
now
i want a new user to be created (on my name) which... (7 Replies)