- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Directly login deny
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
08-13-2002 06:22 AM
08-13-2002 06:22 AM
Directly login deny
I want thet the root user can't log directly on the system, but only whit su - root command.
Please help me
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2002 06:26 AM
08-13-2002 06:26 AM
Re: Directly login deny
Create /etc/securetty file with "console" in
it. It will allow root to login from console only. Others have to login as themselves and then su to root.
#cat /etc/securetty
console
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2002 06:26 AM
08-13-2002 06:26 AM
Re: Directly login deny
Create the following file
/etc/securetty
containing only the word
console
This prevents root from logging in from anywhere except the console.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2002 06:27 AM
08-13-2002 06:27 AM
Re: Directly login deny
Just create a file /etc/securetty containing the line "console". See login(1) man page.
Please note that not all services respect this feature! E.g. ftp needs to be denied for root also. Same for rexec. Otherwise one could e.g. use ftp as root to remove the /etc/securetty file.
Regards...
Dietmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2002 06:27 AM
08-13-2002 06:27 AM
Re: Directly login deny
Create a file titled '/etc/securetty'. When present, root is allowed to log in only on the devices listed in the file. Enties are the device tty name, one per line.
In your case, specify "console" so that root can login at the console device, but no where else unless an 'su' operation is performed to root.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2002 06:29 AM
08-13-2002 06:29 AM
Re: Directly login deny
console
in it. The file should have permission 600 (root:bin). That will disable direct root login from any tty port EXCEPT at the console.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2002 06:31 AM
08-13-2002 06:31 AM
Re: Directly login deny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2002 06:31 AM
08-13-2002 06:31 AM
Re: Directly login deny
> /etc/securetty
ll /etc/securetty
-r--r--r-- 1 root sys 0 Aug 13 15:31 /etc/securetty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2002 06:56 AM
08-13-2002 06:56 AM
Re: Directly login deny
What we do is to add the following lines in the /etc/profile
loginid=`who am i | awk '{print $1}'`
echo $loginid
if [ $loginid = root ]
then
exit
fi
this will make you just su to root
Manoj Srivastava