cancel
Showing results for 
Search instead for 
Did you mean: 

Restricted user access !

titu
Regular Advisor

Restricted user access !

if user to login on their own account such as user x.
After logging in to user x account, the user can then su to another account user y .
But I do not want users to be able to log in directly to account user y .

Thanks in advance

titu
6 REPLIES
Dennis Handly
Acclaimed Contributor

Re: Restricted user access !

I'm not clear, you don't want them to login to user y but you want them to be able to use su(1)?
Analyst
Trusted Contributor

Re: Restricted user access !

Hi Titu,

1.Check for the users permissions.
2.Any how SU- switch user if you login from lowest shell ,it asks for the password .


Thanks,
Analyst.
Mark McDonald_2
Trusted Contributor

Re: Restricted user access !

You could change the password of user y so only you know it, then give user x sudo access to change user y.
titu
Regular Advisor

Re: Restricted user access !

Let me give an example :
Example:
user x logs in to account user x, then su - database

however, if user_1 attempts to log in directly to account database it will not be allowed.

Can we check with ACL in this case ?

thanks in advance

titu
Ivan Krastev
Honored Contributor

Re: Restricted user access !

You can use /etc/profile to restrict direct logging. See more here - http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1029641


regards,
ivan
Mark McDonald_2
Trusted Contributor

Re: Restricted user access !

>>>You could change the password of user y so only you know it, then give user x sudo access to change user y.

Just thought - once he has switched to user y he will be able to change the password.