- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Prevent users from Logging
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
11-11-2004 12:19 PM
11-11-2004 12:19 PM
What is the best way to prevent the users from logging while i want the root to login. I can't go to single user mode.
Thanks
Brian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 12:34 PM
11-11-2004 12:34 PM
Re: Prevent users from Logging
Quite a few ways... The one I would prefer is to through inetd.sec file.
#cp /etc/inetd.sec /etc/inetd.sec.good
#vi /etc/inetd.sec
Add lines like
telnet allow ip_of_your_workstation
ftp allow ip_of_your_workstation
login allow ip_of_your_workstation
exec allow ip_of_your_workstation
shell allow ip_of_your_workstation
Run 'inetd -c'.
If you are running sshd, stop the daemon. Stop dtlogin process (/sbin/init.d/dtlogin stop).
Once you are done with your work, move the old inetd.sec back and run 'inetd -c' again to get it going. Start dtlogin and sshd processes.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 12:52 PM
11-11-2004 12:52 PM
Re: Prevent users from Logging
o Add NOLOGIN=1 to /etc/default/security file.
o Create /etc/nologin with the message you'd like your users to see.
o Stop dtlogin.
ssh should also check for existance of /etc/nologin file so there is no need to stop sshd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 01:45 PM
11-11-2004 01:45 PM
Re: Prevent users from Logging
/etc/default/security file can be used in trudted systems only right. Ours is not trusted. is there any other way?
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 01:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 02:02 PM
11-11-2004 02:02 PM
Re: Prevent users from Logging
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 02:39 PM
11-11-2004 02:39 PM
Re: Prevent users from Logging
Hi Brian,
Easiest and Safest way is :
#>/etc/nologin OR
#touch /etc/nologin
After this kill all the users currently logged in to the system.They wont be able to login further.
See http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=147806
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 02:40 PM
11-11-2004 02:40 PM
Re: Prevent users from Logging
Hi Brian,
Easiest and Safest way is :
#>/etc/nologin OR
#touch /etc/nologin
After this kill all the users currently logged in to the system.They wont be able to login further.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 02:42 PM
11-11-2004 02:42 PM