- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disable/Enable login
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
01-03-2002 10:04 AM
01-03-2002 10:04 AM
Is there any way to disable (any user) logging in to the system ? I don't want to use the single user mode. And needs to re-enable this after some time.
Suppose my server is online and 10 users are logged in right now. I want to disable new logging in for 2 hrs. The users who are logged in will continue working. And after 2 hrs i want to enable this back so that everybody can use the system. In another words, the server should be virtually unavailable for 2 hrs to everybody.
Any type advices would be appreciated.
Thanks!
Shiju
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 10:08 AM
01-03-2002 10:08 AM
Solutionhttp://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5e730b0717d1d5118ff40090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5e06670142b2d5118ff10090279cd0f9,00.html
Or you could write your own little script that would work similar to nologin.
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 10:11 AM
01-03-2002 10:11 AM
Re: Disable/Enable login
You can keep a small script in your /etc/profile (and the corresponding files for other shells) to check for only few users or no users so that they can't get in.
if [ $LOGNAME != "YOU" ]
then
echo "keep out for sometime"
exit
fi
You can login as yourself and do the maintenance.
It will restrict telnet and rlogin but not ftp or rcp.
Does this help you?.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 10:13 AM
01-03-2002 10:13 AM
Re: Disable/Enable login
I don't know what services your clients a using, but you could stop inetd.
/sbin/init.d/inetd stop
Connected users are not affected, but no one else can...lets say telnet in.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 10:14 AM
01-03-2002 10:14 AM
Re: Disable/Enable login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 10:21 AM
01-03-2002 10:21 AM
Re: Disable/Enable login
This doc might helpful..
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=987165c50f84f3415d/screen=ckiDisplayDocument?docId=200000056243673
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 10:36 AM
01-03-2002 10:36 AM
Re: Disable/Enable login
Thanks everybody ..btw, what does /etc/nologin do? just displaying the message ? what will happen if that file doesn't exist?
Thanks!
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 10:39 AM
01-03-2002 10:39 AM
Re: Disable/Enable login
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 10:44 AM
01-03-2002 10:44 AM