HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: DenyUsers in sshd_config
Operating System - HP-UX
1826546
Members
4426
Online
109695
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-17-2009 03:57 AM
06-17-2009 03:57 AM
DenyUsers in sshd_config
Hi,
WE have over 300 users that we don't want direct login to thru ssh. I an add all 300 to the DenyUsers but I was wondering if anyone knew if DenyUsers could be pointed to a file that lists them. From what i see, you can't...but figured I'd check here as you guys sometimes have great ideas.
Thanks
WE have over 300 users that we don't want direct login to thru ssh. I an add all 300 to the DenyUsers but I was wondering if anyone knew if DenyUsers could be pointed to a file that lists them. From what i see, you can't...but figured I'd check here as you guys sometimes have great ideas.
Thanks
whatever
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2009 04:32 AM
06-17-2009 04:32 AM
Re: DenyUsers in sshd_config
I would add all the users to a group and then use the 'DenyGroups' directive to accomplish this task.
I drive way too fast to worry about calories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2009 06:20 AM
06-17-2009 06:20 AM
Re: DenyUsers in sshd_config
But then I have to add 300 users to a new group that has to be created on each server correct?
I can add wildcards in the DenyUsers which will cut the list in half, it would just be handy if it could read a file....but I am pretty sure it won't do that.
I can add wildcards in the DenyUsers which will cut the list in half, it would just be handy if it could read a file....but I am pretty sure it won't do that.
whatever
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2009 06:56 AM
06-17-2009 06:56 AM
Re: DenyUsers in sshd_config
Or, if the number of users who are allowed to login via ssh, you can deny everyone than add users allowed by using
AllowUsers weblogic www user1 user5
AllowUsers sysadmin
etc.
AllowUsers weblogic www user1 user5
AllowUsers sysadmin
etc.
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP