- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What's the file? Simple question....
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
02-15-2001 02:21 PM
02-15-2001 02:21 PM
What's the file? Simple question....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 02:37 PM
02-15-2001 02:37 PM
Re: What's the file? Simple question....
Thanks,
Jason V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 02:39 PM
02-15-2001 02:39 PM
Re: What's the file? Simple question....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 03:03 PM
02-15-2001 03:03 PM
Re: What's the file? Simple question....
I guess what I want to know is, how can I temporarily keep users from loging on to the box?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 03:39 PM
02-15-2001 03:39 PM
Re: What's the file? Simple question....
If you are working from the console only, or have the web console, you could always stop inetd. That would prevent anyone from logging in. It would also prevent you from using any other network services as well though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 03:40 PM
02-15-2001 03:40 PM
Re: What's the file? Simple question....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 11:34 PM
02-15-2001 11:34 PM
Re: What's the file? Simple question....
Are you referring to /etc/securetty?
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2001 08:42 AM
03-07-2001 08:42 AM
Re: What's the file? Simple question....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 10:18 AM
03-13-2001 10:18 AM
Re: What's the file? Simple question....
if [ -f /etc/nologin -a $uid -ne 0 ]; then
echo "Sorry, no login allowed, try later!"
sleep 5
exit 0
fi
As you can see, root can log in but users can't
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 12:57 PM
03-13-2001 12:57 PM
Re: What's the file? Simple question....
# Check for backups in progress
if [ -x /etc/BackUps ]
then
if [ `whoami` != "root" ]
then
/etc/BackUps
exit
fi
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 01:37 PM
03-13-2001 01:37 PM
Re: What's the file? Simple question....
if you are going for the "/etc/nologin" approach, be
careful to insert that "if [ -f /etc/nologin ]" snippet in
all places used for logins, as there are:
- serial/console: /etc/profile, /etc/cshrc
- telnet/rlogin: /etc/profile, /etc/cshrc
- X-Windows: /etc/dt/config/Xstartup
HTH,
Wodisch