1834827 Members
2242 Online
110070 Solutions
New Discussion

block user login

 
SOLVED
Go to solution
silavario
New Member

block user login

Hi,

How I can block login access to some users??

That I like it´s some users can do login by ssh, and if this users want use other user can do "su" but at login time no...

If I do "passwd -l " this user it´s blocked, and only root can do login.

Any options ???

THX and sorry for my english..
5 REPLIES 5
Jeeshan
Honored Contributor

Re: block user login

you can use inetd.sec for additional security. check this thread

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1017231
a warrior never quits
piyush mathiya
Trusted Contributor

Re: block user login

Hi Silavario,

You can do one thing, block its password, so no one can login, and if you want to give su access to some selected user then ask them to use sudo to switch into the user profile, but for that you need to give permission to use sudo in sudoers file. . .

Regards,
Piyush Mathiya
Kenan Erdey
Honored Contributor
Solution

Re: block user login

Hi,

as i understand, you want users login with their own user names. And switch that user with su -.
i think you can use sudo here. you can change the spesific users password so they cannot login with this user. In sudoers file you give switch user permission to other users.

another solution in the forum:

http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1218536209440+28353475&threadId=1121876

Kenan.
Computers have lots of memory but no imagination
silavario
New Member

Re: block user login

Thanks Kenan,

Thats my problem, and I hope my solution...

I´m going to close the post..
Thanks all.
silavario
New Member

Re: block user login


Thanks all...