- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricting Users who can Login
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
09-09-2008 08:57 AM
09-09-2008 08:57 AM
Restricting Users who can Login
If I've disabled Telnet and all the r-services and use the AllowGroups option in sshd_config to restrict the users who can login to only those that are a member of my new group.
Are there any other means that a user could login who is not in my ssh allowed login group?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2008 09:52 AM
09-09-2008 09:52 AM
Re: Restricting Users who can Login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2008 10:41 AM
09-09-2008 10:41 AM
Re: Restricting Users who can Login
TTYCHECK=`/usr/bin/tty | cut -d \/ -f4`
if [[ "$TTYCHECK" != "console" && $(whoami) = "root" ]]
then
echo $TTYCHECK
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2008 02:41 PM
09-09-2008 02:41 PM
Re: Restricting Users who can Login
$(whoami) = "root"
to
$(id -u) = "0"
or similar in the above. I would also consider having a script run that would monitor the file /var/adm/syslog/syslog.log and report any "unexpected" login attempts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2008 12:55 AM
09-10-2008 12:55 AM
Re: Restricting Users who can Login
Not really what I was looking for though.
I am not talking about restriction of root login per se. I am talking about the control of who can login to the system by any means (excluding the console).
So with telnet and r-services disabled, I am focusing on controling ssh login access through the use of the AllowGroups option. Thus for ssh login a user will have to be in this group.
My concern is that there is a whole other angle I am not considering (other than the above) and am not controlling allowing anyone to login to the system. Can anyone think of any?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2008 01:18 AM
09-10-2008 01:18 AM
Re: Restricting Users who can Login
if allowgroups exits in your sshd_config file, only users of groups( it can be user's primary or secondary group ) that listed in config file can login. users in other groups can't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2008 01:18 AM
09-10-2008 01:18 AM
Re: Restricting Users who can Login
Disable ftp as you can use sftp.
Edit /etc/inetd.conf and comment out the ftp line, then run "inetd -c".
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2008 02:57 AM
09-10-2008 02:57 AM
Re: Restricting Users who can Login
I'm planning on using AllowGroups to restrict who can login based on them being a member of a group specified in sshd_config - so I know this will work for ssh.
I am worried about users being able to login via a different means (if there is one other than ssh, telnet, rlogin etc.) that I'm not addressing.
FTP is already disabled, as is TFTP. Remote x logins are disabled by an empty Xaccess file - should/can I do anything more to dtlogin?
Anyone spot anything I'm missing?
Thanks.