- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Questions on stoping user from logging in
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-30-2004 09:28 AM
09-30-2004 09:28 AM
I have 1200 user on my rp7410 system and does any one has any idea on how can I stop this users from logging in to the system.
I only want root to have access during the maintenance time.
Thanks,
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 09:34 AM
09-30-2004 09:34 AM
Re: Questions on stoping user from logging in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 09:36 AM
09-30-2004 09:36 AM
SolutionWhat is the OS version ? 11.0 or 11i ?
# vi /etc/default/security
NOLOGIN=1
#
# touch /etc/nologin
Now only root will be able to logon to the system.
If 11.0, you need to install a patch that enables login framework to use /etc/default/security file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 09:37 AM
09-30-2004 09:37 AM
Re: Questions on stoping user from logging in
...
All the best
Victor
(Yep I just finished a bottle of wine.and I know I should go to bed...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 09:38 AM
09-30-2004 09:38 AM
Re: Questions on stoping user from logging in
For earlier versions modify the /etc/profile to do checks of the user and of the existence of a /etc/nologin file. If the /etc/nologin file exists and user is not root then exit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 09:41 AM
09-30-2004 09:41 AM
Re: Questions on stoping user from logging in
echo "" > /etc/nologin
Next, add this entry to /etc/default/security:
NOLOGIN=1
Now only root will be allowed to login; other users will be denied access and a message explaining why will be issued.
To revert to normal behavior, set NOLOGIN=0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 10:01 AM
09-30-2004 10:01 AM
Re: Questions on stoping user from logging in
Running 11i â installed from June 2004 O.S cd.
Last time I did this by removing the entry in password file and when the restore was done all my permission on files and directory were messed up.
I like Clay and Sundar's idea better. Just one question, does it do any thing with password file?
Also while I was writing the reply and all happy I check the system and there is security file in /etc/default
# pwd
/etc/default
# ll sec*
sec* not found
#
Thanks,
M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 10:12 AM
09-30-2004 10:12 AM
Re: Questions on stoping user from logging in
forgot to ask is can I just create the file call "NOLOGIN" under /etc and also create the directory called "security" in /etc/default.
Also, befor someone thinks that it's a patch issue, just to let you know I have the PHCO_27694 - s700_800 11.11 login(1) cumulative patch.
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 10:13 AM
09-30-2004 10:13 AM
Re: Questions on stoping user from logging in
It does nothing to the /etc/passwd file and if the file is not present, you will have to create one.
- Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 10:14 AM
09-30-2004 10:14 AM
Re: Questions on stoping user from logging in
/etc/default/security is a file and not a directory
# echo "NOLOGIN=1" >> /etc/default/security
# touch /etc/nologin
You are good to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 10:34 AM
09-30-2004 10:34 AM
Re: Questions on stoping user from logging in
What I will do without ITRC.
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 10:35 AM
09-30-2004 10:35 AM
Re: Questions on stoping user from logging in
About the security file:
http://docs.hp.com/hpux/onlinedocs/B3920-90091/B3920-90091.html
My previous mail was a joke...
I did this a long time ago (7 years ago) when I di a silly chmod 644 . forgot the reason now
And went off for lunch when I came back I had loads ofcomplaints of people that coulndt login.. I didnt see why since I could...
Teh reason: they were in /users and I in /home.
. was ./users
...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 10:47 AM
09-30-2004 10:47 AM
Re: Questions on stoping user from logging in
I try to change following message by putting contant in /etc/nologin file like.
"NO LOGIN ALLOWED" but it still display the following message.
Only superusers are allowed to login at this time due to the presence
of the file /etc/nologin and NOLOGIN option set in /etc/default/security
Logins not allowed at this time
How do I change the message?
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 11:02 AM
09-30-2004 11:02 AM
Re: Questions on stoping user from logging in
Why not change the /etc/issue file and include the note?
1) Make sure telnetd has -b /etc/issue option defined in /etc/inetd.conf
# grep telnetd /etc/inetd.conf
2) echo "NO LOGINS ALLOWED DUE TO SYSTEM MAINTENANCE" >> /etc/issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 11:03 AM
09-30-2004 11:03 AM
Re: Questions on stoping user from logging in
That's not possible, see here why :
# uname -r
B.11.11
# whereis login
login: /usr/bin/login /usr/share/man/man1.Z/login.1
# cd /usr/bin
# strings login | grep -i superuser
Only superusers are allowed to login at this time due to the presence
The message is hardcoded in the binary.
Hope this helps, Bye.
Francis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 11:16 AM
09-30-2004 11:16 AM
Re: Questions on stoping user from logging in
I guess you are right but please look at this HP doc and it shows how to change the message.
Document id: KBRC00005800
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062907697
No wonder the the doc info was not working when I try.
Thanks guys.
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 11:21 AM
09-30-2004 11:21 AM
Re: Questions on stoping user from logging in
Thanks Guys.
Mike