- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to prevent root login
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
04-12-2000 02:45 AM
04-12-2000 02:45 AM
How to prevent root login
servers. I am still able to login as root from other terminals. I have
implemented /etc/securetty and the only thing this does is to prevent root
logins via telnet.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2000 03:20 AM
04-12-2000 03:20 AM
Re: How to prevent root login
valid for root login, so if you put in tty0, tty1, etc, those will all work.
If you only put in console, root login will be restricted only to the console.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2000 10:26 PM
04-12-2000 10:26 PM
Re: How to prevent root login
using CDE on terminals (not console). I have been able to find the solution in
the IT Resource Center.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2000 06:19 AM
04-13-2000 06:19 AM
Re: How to prevent root login
login to the console. Is this the solution that you hit upon?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2000 02:18 AM
05-08-2000 02:18 AM
Re: How to prevent root login
after checking the login information against the /etc/passwd file.
To keep root from using the workstation graphics console or xterminal
when vuelogin or dtlogin are running, add the following lines to the
end of either /usr/vue/config/Xstartup (in HP-UX 10.X this would be
/etc/vue/config/Xstartup) or /etc/dt/config/Xstartup (copy over from
/usr/dt/config if the file does not exist in /etc/dt/config) for CDE:
if [ $USER = root ] ; then
exit 1
fi
This will terminate the login process if the user is logging in as
root.
or for all users :
if [ "$USER" != "root" ]; then
exit 1
fi
I have tested the second method and can confirm it worked with no obvious
side effects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2000 08:09 AM
05-30-2000 08:09 AM
Re: How to prevent root login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2000 06:17 AM
06-05-2000 06:17 AM
Re: How to prevent root login
I know of two ways.
One is to turn off the rexec service on the system. Could create other problems as some backup programs use this service.
If not able to turn off rexec, write a script that will run the "who am i" command and place into cron. This output will tell you if root is logged in somewhere other than what is specified in the /etc/securetty file. The output of the command can be mailed to you and/or the other administrators to give a heads up.
I do see any reason for a user to be using the rexec process for logging in. If you are able, prevent the use of the rexec by users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2000 08:51 PM
06-05-2000 08:51 PM
Re: How to prevent root login
try to do the following
try this
/etc/securetty
put entry like
echo console > /etc/securetty do not keep the file blank or empty.
I hope this will only allow the root from console and not giving permission through any third party software.
Regards
Nikhil