HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- disable direct root login
Operating System - HP-UX
1826388
Members
4569
Online
109692
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-28-2009 11:12 PM
08-28-2009 11:12 PM
disable direct root login
How can we disable the direct loging to hPUX 11.11. server.
I want block the direct root login to HPUX boxes.Only login option is that login with their own user name and then su - root.
I have tried to set this by adding the entry "PermitRoolLogin=No" in sshd_config file.And restarted the sshd service using the command.
/sbin/init.d/secsh stop and start
.but this configuration is not wrking,stll i am able to login as root.How can i configure this .please tell me
I want block the direct root login to HPUX boxes.Only login option is that login with their own user name and then su - root.
I have tried to set this by adding the entry "PermitRoolLogin=No" in sshd_config file.And restarted the sshd service using the command.
/sbin/init.d/secsh stop and start
.but this configuration is not wrking,stll i am able to login as root.How can i configure this .please tell me
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2009 11:43 PM
08-28-2009 11:43 PM
Re: disable direct root login
Hi Binu,
Create a file /etc/securetty and make a entry as follow:
console
It means the you can login to root only through the console.
Create a file /etc/securetty and make a entry as follow:
console
It means the you can login to root only through the console.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2009 12:00 AM
08-29-2009 12:00 AM
Re: disable direct root login
Raiden,thanks for the replay. I got the solution.
The entry console in /etc/securetty will not prevent direct root login.For that we need to do like this
echo "PermitRootLogin no ">> /opt/ssh/etc/sshd_config
restart sshd
/sbin/init.d/secsh stop
/sbin/init.d/secsh start
NOw it working for my server
.Insted of /opt/ssh/etc/ i create the file in /etc/.that was the issue.
The entry console in /etc/securetty will not prevent direct root login.For that we need to do like this
echo "PermitRootLogin no ">> /opt/ssh/etc/sshd_config
restart sshd
/sbin/init.d/secsh stop
/sbin/init.d/secsh start
NOw it working for my server
.Insted of /opt/ssh/etc/ i create the file in /etc/.that was the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2009 12:01 AM
08-29-2009 12:01 AM
Re: disable direct root login
i found the solution
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP