How to restrict console login

David Nguyen DNguyen at dallascounty.org
Tue Mar 25 18:49:06 UTC 2008


Joseph,

I had tried that but not work.  Finally, I found an article in The Secure Shell - The Definitive Guide from O'Reilly shows how to do this... just simply add following entry into /etc/sshd_config.  Stop/start sshd daemon.

DenyUsers  <account id>

Thanks for all your help, guys.

David

>>> jolt at ti.com 03/25/08 1:30 PM >>>
David,

Have a look at /etc/security/access.conf.  You can restrict logon access
there, but su should still work.  Otherwise, you could setup sudo.

Regards,

Joseph

-----Original Message-----
From: redhat-sysadmin-list-bounces at redhat.com 
[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of David
Nguyen
Sent: Tuesday, March 25, 2008 2:04 PM
To: redhat-sysadmin-list at redhat.com 
Subject: How to restrict console login

Hi,

How do I restrict an user login direct from console but still allow
others to use su to switch account to this user?  I'm talking about a
regular account not root account.

Thanks,
David


--
redhat-sysadmin-list mailing list
redhat-sysadmin-list at redhat.com 
https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list 

--
redhat-sysadmin-list mailing list
redhat-sysadmin-list at redhat.com 
https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list





More information about the redhat-sysadmin-list mailing list