- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Regarding preventing root from any 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
06-01-2000 09:43 PM
06-01-2000 09:43 PM
Regarding preventing root from any system.
I have a solaris machine in which we can prevent root login.Root login has to be done through console with the help of /etc/default/login and line CONSOLE=/dev/console.
I need to know is there any files in Hp9000 machines through which we can prevent root login from any other machine.(except console)
Regards
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2000 09:52 PM
06-01-2000 09:52 PM
Re: Regarding preventing root from any system.
echo console > /etc/securetty
and now no one can login as root using telnet or a modem or terminal. Only the console will allow a root login. Users that know the root password can use su to become root regardless of what connection they use.
If the securetty file is empty, then no one can every login as root. (really secure, eh?) Actually this is useful. Everyone must now login as a normal user then use su - root to become root. wtmp (see last) and btmp (see lastb) will record the user logins and the terminals/IP addresses they used, while sulog will log all attempts to use su.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2000 09:57 PM
06-01-2000 09:57 PM
Re: Regarding preventing root from any system.
One workaround would be to add the following lines to your /etc/profile after the trap:
==
if tty|grep console >/dev/null && echo $LOGNAME|grep root >/dev/null
then
:
else
exit
fi
==
Regards.
Steven Sim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2000 10:04 PM
06-01-2000 10:04 PM
Re: Regarding preventing root from any system.
Realised my mistake. Should be:
==
if echo $LOGNAME|grep root >/dev/null
then
if tty|grep console >/dev/null
then
:
else
exit
fi
fi
==
Regards.
Steven Sim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2000 12:19 AM
06-02-2000 12:19 AM
Re: Regarding preventing root from any system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2000 12:53 AM
06-02-2000 12:53 AM
Re: Regarding preventing root from any system.
Both dtlogin and vuelogin do not refer to the /etc/securetty file
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2000 07:18 AM
06-02-2000 07:18 AM
Re: Regarding preventing root from any system.
to chmod 600 /etc/securetty in order to prevent users from tapping into the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2000 09:54 AM
06-02-2000 09:54 AM
Re: Regarding preventing root from any system.
Either turn off rexec service or develop a script in which the system is checked for a root login via the 'who am i' command. If it finds, e-mail to an administrator and get out the tar and feathers.