- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root should login only through console.
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
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
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-25-2012 12:30 PM
04-25-2012 12:30 PM
Hi,
i want to configure all my servers such that i cannot login to through root directly. only way login through root is by console. For achieving this i have made an entry in /etc/securetty file with the console written in it. But still i am able to login with root directly. is there anything more i need to do to achieve this?
Thanks,
Vijay
iGATE
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2012 01:34 PM
04-25-2012 01:34 PM
Solution>>But still i am able to login with root directly.
How are you logging in? Are you logging in via SSH, telnet, rlogin, X-Windows?
If you are using SSH then the /etc/securetty file is not used. There is an option in ssh_config or sshd_config (I can't remember which one) called ALLOW_ROOT_LOGIN (or something similar). If it is set to YES, change it to no and then restart SSH on the server.
- Tags:
- sshd_config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2012 01:42 PM
04-25-2012 01:42 PM
Re: root should login only through console.
yes, thanks.
i am loggin through SSH via putty.
that is /opt/ssh/et/sshd_config file and the parameter is permitRootLogin no.
Thanks,
Vijay
iGATE
- Tags:
- ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2012 02:04 PM
04-25-2012 02:04 PM
Re: root should login only through console.
Make sure you have enforcesecuretty set to yes in your sshd_config file. See page 44:
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c03243765/c03243765.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2012 02:16 PM
04-25-2012 02:16 PM
Re: root should login only through console.
@vijay alur alur wrote:yes, thanks.
i am loggin through SSH via putty.
that is /opt/ssh/et/sshd_config file and the parameter is permitRootLogin no.
Thanks,
Vijay
Very good. I was responding off-the-cuff without double-cheking the files themselves. I'm glad you found what you needed.