- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Enable root login
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
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
07-01-2005 03:23 AM
07-01-2005 03:23 AM
I need enable for a moment because i use the scanmaster progra that connect to the system with root account?
After tah use the scanmaster program, i need disable root login again.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 04:13 AM
07-01-2005 04:13 AM
Re: Enable root login
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 04:16 AM
07-01-2005 04:16 AM
Re: Enable root login
/usr/lbin/modprpw -l -m alock=NO root
/usr/lbin/modprpw -k root
when you are done using root, execute follwing command to diable the account.
/usr/bin/passwd -l root
If you do not have any account which will grant you root privileges, there is no other way to do this but rebooting/crashing the system and booting to single user mode (hopefully you did not enable root password at the single user level) and reset the password at this time.
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 04:53 AM
07-01-2005 04:53 AM
Re: Enable root login
I need enable telnet or ssh with root account.
Please help, thank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 05:12 AM
07-01-2005 05:12 AM
Re: Enable root login
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 05:49 AM
07-01-2005 05:49 AM
Re: Enable root login
console
if you remove this file you should be able login as roon from any telnet/ssh connection.
to reinstate the root lockout from anywhere but the console, you just recreate the file
echo "console" > /etc/securetty
chmod 600 /etc/securetty
of course file should be owned by root:sys
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 06:07 AM
07-01-2005 06:07 AM
Re: Enable root login
securetty not found
[ECBPHCF1]:/etc>ls sec*
sec* not found
[ECBPHCF1]:/etc>
There isn't securetty file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 06:29 AM
07-01-2005 06:29 AM
Re: Enable root login
there are a couple of places to look:
/tcb/files/auth/system
/tcb/files/auth/r/root
Not sure on the exact path on the second listing, as my trusted system is down right now ( it is being relocated )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 07:12 AM
07-01-2005 07:12 AM
Re: Enable root login
Any idea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 07:17 AM
07-01-2005 07:17 AM
Re: Enable root login
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 07:28 AM
07-01-2005 07:28 AM
Re: Enable root login
Maybe is for the trusted system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 11:11 AM
07-01-2005 11:11 AM
Re: Enable root login
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2005 04:01 PM
07-01-2005 04:01 PM
Re: Enable root login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 12:25 AM
07-03-2005 12:25 AM
Re: Enable root login
I am also in the same issue in one of our servers. It is a non trusted system without securetty & I can not telnet , rlogin using root. Even on console I can not get in through root. After logging in through a normal user su or su - works fine. The problem is still being diagnosed & will let you know once resolved.
Regards,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 08:52 PM
07-03-2005 08:52 PM
Re: Enable root login
We finally found it to be a very simple mistake. The root passwd has included a # symbol. As per the man page of passwd # and @ should not be included for passwords. The problems even got resolved by changing root password not to include a #.
See if you also have the similar situation.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 09:08 AM
07-06-2005 09:08 AM
Re: Enable root login
How i can restart sshd?
There isn't sshd in the /sbin/init.d.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 09:25 AM
07-06-2005 09:25 AM
SolutionFor Secure Shell (ssh), there is a file called sshd_config. This can be located in /opt/ssh/etc/sshd_config.
In this file is a line that says PermitRootLogin - this value can be yes or no. If the value is no, root cannot login via ssh.
Change this value to yes and bounce the ssh process.
/sbin/init.d/secsh stop;/sbin/init.d/secsh start
or
kill /opt/ssh/sbin/sshd
/opt/ssh/sbin/sshd (this will start the ssh process)
NOTE: Locations of these files can vary depending on if you are using the HP version of ssh or the shareware version of ssh.
In either case the methods are the same to allow for root logins via ssh - or to prevent root logins via ssh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 09:26 AM
07-06-2005 09:26 AM
Re: Enable root login
No changes would be required on the /etc/securetty or the sshd_config files.
The file in /sbin/init.d is secsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 09:28 AM
07-06-2005 09:28 AM
Re: Enable root login
From one earlier thread.
The easiest way to restart your sshd without losing your current session is
# kill -1 $(cat /var/run/sshd.pid)
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 10:27 AM
07-06-2005 10:27 AM
Re: Enable root login
Thanks.