- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disallow any login to the system
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-05-2001 10:30 PM
09-05-2001 10:30 PM
Disallow any login to the system
Thanks
Nisar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 10:46 PM
09-05-2001 10:46 PM
Re: Disallow any login to the system
Federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 10:47 PM
09-05-2001 10:47 PM
Re: Disallow any login to the system
ftp, login, rlogin,... and a lot of deamons are
launched by inetd. So I think you can stop
inetd : /sbin/init.d/inetd stop.
Or you can modify /var/adm/inetd.sec.
If you want to disallow others services you can
stop them...
HTH
Herv?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 11:08 PM
09-05-2001 11:08 PM
Re: Disallow any login to the system
cp /var/adm/inetd.sec /var/adm/inetd.sec.old
Edit your /var/adm/inetd.sec and
add these lines
telnet deny #For telnet
telnet allow your_system_IP SW-DEPOT-IP
login deny #For rlogin
ftp deny
Restart inetd by inetd -c
Now people cannot ftp or login to your box
Once you are done. Restore the previous inetd.sec and restart ined.
The other way is little bit dangerous.
Save /etc/passwd as /etc/passwd.old. Edit /etc/passwd and delete all the entries other than the default ones. Edit a file called /etc/banner that says "This system is under maitenance .. Your account is temporarly disabled" and modify the inetd.conf file to
replace telnetd with telned -b /etc/banner. Restart the inetd.
Once you are done with the installation, keep the password file back. One drawback is that it will unnecessarily register bad attempts in the system.
There are a lot many ways.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 11:53 PM
09-05-2001 11:53 PM
Re: Disallow any login to the system
I suppose that you cannot install patches in single user mode because of special installation instruction suggestions. Very simple way to reject any logins is to check username in /.profile and f it is not root ten exit.
Later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 04:40 AM
09-06-2001 04:40 AM
Re: Disallow any login to the system
It depends on what kinda patch are u going to install. but its not required for you to go into single user mode, you can stop the inetd services which contains rlogin,login,ftp and other network services.
issue this commnand to stop/start inetd services :
/sbin/init.d/inetd stop
after you finsh patching your system issue
/sbin/init.d/inetd start command
Hope this helps.
Regards
Dayanand Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 04:44 AM
09-06-2001 04:44 AM
Re: Disallow any login to the system
1) Copy your /etc/passwd to /etc/passwd.old
2) Write * in password field for every user
3) Install patches
4) Remove /etc/passwd
5) Rename old /etc/passwd
It's not very original but it may work.
ALex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 04:53 AM
09-06-2001 04:53 AM
Re: Disallow any login to the system
Here is a very simple way
touch /etc/nologin
Modify your /etc/profile with
if [ -f /etc/nologin && ${LOGNAME} != "root" ]
then
echo "System is not available right now"
exit 1
fi
This way you don't need to modify anything else on your system, after installing the patches, just remove the /etc/nologin file
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 04:56 AM
09-06-2001 04:56 AM
Re: Disallow any login to the system
the system patches such as kernel,network when they applied system needs to reboot, application patches such as PHCO* can be applied in multiuser user mode and no need to reboot the machine. your case of disallowing users to login and applying patches in single user mode is unnecessary.