- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: login lock file
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
08-24-2000 01:16 AM
08-24-2000 01:16 AM
To stop the users loging in to the server,one lockfile to be created on /tmp directory or some where. I forgotten now.
Can anyone help?
HP9000 -D270 HP-UX 10.20
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2000 01:25 AM
08-24-2000 01:25 AM
Re: login lock file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2000 01:27 AM
08-24-2000 01:27 AM
Re: login lock file
I'd suggest unplugging the machine from the network. Then you can just use the console.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2000 01:33 AM
08-24-2000 01:33 AM
Solution/etc/securetty will stop direct root logins only, not normal users. To stop normal users you can use either;
1. Download and configuring tcpwrappers and then use the host.allow and host.deny options.
2. Use the built-in capability of inetd, /var/adm/inetd.sec is the file that enables or disables logins depending upon service specified.
3. modify /etc/profile then you can touch a file called /etc/nologin to stop users logging in, here is the code to add to /etc/proifle (below). When you want to let them back on again remove /etc/nologin
if [ -r /etc/nologin ]
then
if [ `/usr/bin/id -u` = "0" ]
then
echo "nnn"
echo " --> NOTICE <---"
echo "User login is currently disabled because of system maintenance"
echo "However, you will be allowed in."
echo "nPress Enter to continue...c"
read junk
else
sleep 2
clear
echo "nnnnnnnn"
echo " The system is currently unavailable."
echo " Please try again later."
sleep 5
exit 1
fi
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2000 02:42 AM
08-24-2000 02:42 AM
Re: login lock file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2000 02:53 PM
08-24-2000 02:53 PM
Re: login lock file
if your users log in through X-Windows! Include the same check into
"/usr/dt/config/Xsession".
HTH,
Wodisch