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.
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)
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)
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)
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,
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 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)
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 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)
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)
Discussion started by: omonoiatis9
32 Replies
LEARN ABOUT DEBIAN
mojomojo::controller::user
MojoMojo::Controller::User(3pm) User Contributed Perl Documentation MojoMojo::Controller::User(3pm)NAME
MojoMojo::Controller::User - Login/User Management Controller
DESCRIPTION
This controller performs user management: registration, login, logout, password recovery and profile editing.
ACTIONS
login (/.login)
Log in through the authentication system.
logout ( /.logout )
Log out the user.
users ( /.users )
Show a list of the active users with links to the pages they edited.
page_user
Show a user's preferences
prefs ( .prefs )
Main user preferences screen.
password ( .prefs/password )
Change password action.
template: user/password.tt
recover_pass
Email a user a new password
register ( /.register )
Show new user registration form.
template: "user/register.tt"
is_account_taken
Test to see if a login or email is already in use.
do_register ( /.register )
New user registration processing.
templates: "user/password.tt", "user/validate.tt"
validate ( /.validate )
Validation of user email. Will accept a md5_hex mailed to the user earlier. Non-validated users will only be able to log out.
reconfirm
Send the confirmation mail again to another address.
profile ( .profile )
Show user profile.
editprofile
Form to edit a person's profile
do_editprofile
Apply the edits to a person's profile
AUTHOR
David Naughton <naughton@cpan.org>, Marcus Ramberg <mramberg@cpan.org>
LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-09-02 MojoMojo::Controller::User(3pm)