- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Disabling users
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 01:01 AM
03-22-2004 01:01 AM
Disabling users
I want to Disable Few Users Logins thru SSH.
I don't want to use any other Tools.
Is there any soln. for this.
Thanks in Advance
Vijay S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 01:29 AM
03-22-2004 01:29 AM
Re: Disabling users
add the next line in /etc/pam.d/sshd under the last "auth" statement:
"auth required pam_listfile.so item=user sense=deny file=/etc/pam.allow.sshd onerr=fail"
edit the file /etc/pam.allow.sshd and add all user you want to deny ssh access from.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 09:27 PM
03-22-2004 09:27 PM
Re: Disabling users
Thanks for the reply. But these files are not there. I think we have to create the pam.allow file etc.
Could you give me the tips in detail.
Is there any other method to disable users
logins. But they have to SU to that account.
Thanks
vijay s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 10:31 PM
03-22-2004 10:31 PM
Re: Disabling users
It comes with installation cd. Just locate the rpm file and then install it.
rpm -ivh pam-version.rpm
will install the package.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 10:32 PM
03-22-2004 10:32 PM
Re: Disabling users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 03:12 AM
03-23-2004 03:12 AM
Re: Disabling users
Simply add
AllowUsers username
line to a file /etc/ssh/sshd_config
when username is the username you wish to allow access.
then you have to restart the sshd service
service sshd restart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 10:49 AM
03-23-2004 10:49 AM
Re: Disabling users
If it is going to change alot, then your (alexander's) will work better, as it doesn't requrie a re-start of the SSH daemon every time a change is made.
It's just a question of ongoing maintenance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 09:05 PM
03-23-2004 09:05 PM
Re: Disabling users
Thanks for thouse who send the answers to me.
Yes Marcin Golembski is Right in his Answer.
But when i disable the user it works perfectly fine. But the hole is that he is now telnetting.
So I have to stop Telnet too.
Any Soln.
Thanks
Vijay S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 02:39 AM
03-24-2004 02:39 AM