- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disabling ROOT access
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
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
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
тАО05-03-2002 10:12 AM
тАО05-03-2002 10:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:17 AM
тАО05-03-2002 10:17 AM
Re: Disabling ROOT access
root.
It should solve your problem.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:19 AM
тАО05-03-2002 10:19 AM
Re: Disabling ROOT access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:22 AM
тАО05-03-2002 10:22 AM
Re: Disabling ROOT access
By putting entries of ttys like console tty01 tyy02 etc....
you can enabling access to root in those ttys.....for direct root access.
I never used "root" to mention in /etc/securetty.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:28 AM
тАО05-03-2002 10:28 AM
Re: Disabling ROOT access
It's console and not root ! The tty's listed in /etc/securetty will give secure login for root.
For confirmation:
# man login
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:35 AM
тАО05-03-2002 10:35 AM
Re: Disabling ROOT access
Is there a way to also disable that without disabling root??
the host.equiv only has a "+" within it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:38 AM
тАО05-03-2002 10:38 AM
Re: Disabling ROOT access
For rlogin you need to check two files - /etc/hosts.equiv and $HOME/.rhosts. If you find any entries there, then remove it or comment it. That may solve the issue.
# man rlogin for more details
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:51 AM
тАО05-03-2002 10:51 AM
Re: Disabling ROOT access
Instead if you put "console" then anybody can login as root from the console.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:54 AM
тАО05-03-2002 10:54 AM
Re: Disabling ROOT access
To disable rlogin to root, remove root's .rhosts file.
/etc/securetty is not checked if .rhosts allows the user to rlogin as root without a password. It is checked if a password is needed by rlogin.
BTW, /etc/hosts.equiv does not apply for root.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 11:00 AM
тАО05-03-2002 11:00 AM
Re: Disabling ROOT access
Do the following in /etc/profile
loginid=`who am i | awk '{print $1}'`
echo $loginid
if [ $loginid = root ]
then
exit
fi
This will just allow you to login as another user and then do a su.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 11:04 AM
тАО05-03-2002 11:04 AM
Re: Disabling ROOT access
I have following lines in .profile off root to block any direct logins/rlogins to root.
------
## To set direct root login to console only ##
#
user=`logname`;
sulog="/var/adm/sulog"
TTY="`tty | cut -d/ -f3`"
date=`date "+%m/%d %H:%M"`
if [ ${user} = "root" ]
then
if [ ${TTY} != "console" ]
then
echo "
echo "ERR ${date} - ${TTY} ${user}-root" >> ${sulog}
exit
fi
fi
---------
Thanks.
Prashant Deshpande.