- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to shutdown HP-UX 10.20 without root's privile...
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
тАО02-15-2001 05:27 PM
тАО02-15-2001 05:27 PM
How to shutdown HP-UX 10.20 without root's priviledge?
Thanks in advance for any input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2001 07:50 PM
тАО02-15-2001 07:50 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
hostname username
The permissions of /etc/shutdown.allow should be 644 bin:bin. The user from the specified host will be allowed to execute shutdown.
If you add an entry to the file don't forget to make root from this host one of them.
Hope this helps!
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2001 09:25 PM
тАО02-15-2001 09:25 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
Nice little hack...
MND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2001 10:09 PM
тАО02-15-2001 10:09 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
Both the above solutions needs root privileges i.e., for modifying /etc/shutdown.allow and /tcb/files/auth/r/root. But you are saying that root's account has got disabled.
Only two solutions I can suggest:
1) If any other user have privileges to shutdown you can do it from that user.
2) Otherwise hard boot it, bring it into single user mode, enable the root account and then reboot the machine. But hard boot is not a safer one.
3) Boot it from CD.
Cheers....
Satish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2001 10:35 PM
тАО02-15-2001 10:35 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
Just a quickie though, I locked myself out of my VVOS as root, and unlocked the account by doing the edit on the root file in /tcb/files/auth/r logged in as the security officer account... bug or feature?
Saved me a rebuild.
MND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2001 11:29 PM
тАО02-15-2001 11:29 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
If your "account is disabled" due to either too many incorrect attempts or password expiry, root login remotely is not allowed but root login at the console will still be allowed. Once login'ed, reactivate your root account using sam.
If you have "forgotten your root password", try to do a cold-reboot ie. power on-off. Press any key to continue when you see this message. Specify at the boot prompt:
> boot pri isl
isl> hpux -is
This will bring you to single-user mode. Depending on your setup, you may or may not be prompted for a login password.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2001 12:08 AM
тАО02-16-2001 12:08 AM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
Eventually I did a hard boot (which means I have to fsck most of the file systems and fortunately there is no major corruption), and somehow can login into single user mode without password prompt.
My system is a trusted system which I just implemented a few days ago. I am just curious what will happen and what can I do if booting into single-mode requires root's password.
Another thing is I tested locking one user "kslwlk" and found out the changes it has made as below, because I dare not to purposely disable root's id.
# diff /tcb/files/auth/k/kslwlk /tmp/kslwlk.locked
6c6,7
< :u_unsuclog#982313126:u_unsuctty=pts/0:u_lock@:chkent:
---
> :u_unsuclog#982313126:u_unsuctty=pts/0:u_numunsuclog#6:u_lock@:> :chkent
it looks like the actual difference is "u_numunsuclog#6:". Anybody knows how to interpret it?
The last question I want to ask is whether there is really such a feature that even if someone
purposely attempt to login as root, the sytem disable root's id only for remote login, but still allow login as root from the console. How can I do that? If not, this may not be called a feature of Trusted system especially when it happens on root. It should be called a bug.
Russell provides an idea which grants write access to /tcb/files/auth/r/root for a special account "security officer". That is also a good idea. But what will happen if this id was also disabled?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2001 12:44 AM
тАО02-16-2001 12:44 AM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
"u_numunsuclog#6:" indicates that the number of unsuccessful attempts to login due to incorrect password is 6.
There is indeed such a feature that even if someone purposely attempt to login as root, the system disable root's id only for remote login, but still allow login as root from the console.
This is not a bug. You will still be prompted for the password regardless of whether your root account is disabled or not.
The purpose of disabling the root account is to prevent further guessing of the root password. It is most unlikely for someone to attempt password-guessing at the console without being physically caught in comparison with someone attempting from remote.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2001 01:50 AM
тАО02-16-2001 01:50 AM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
Since your system is trusted, as mentionned above disabled root account still lets you connect at the console IF you know the correct passwd (that means no one changed it...).
I would suggest as now you have unblocked your situation, that you use SAM, and define some users that can shutdown your machine, I have 3 accounts that can shutdown the machine...
Go to users, select a user, then in Action menu, choose modify security policies / general user Account policies/ Authorize use to boot single-user state:yes
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2001 04:35 PM
тАО02-16-2001 04:35 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
I got another question, how can I disable login as root from the remote( but can su to root) and only allow login as root from the console?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 05:58 PM
тАО02-19-2001 05:58 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 06:04 PM
тАО02-19-2001 06:04 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
Other than incorrect attempts at the root password, the other possibilities include password expiration. Check your password policy via SAM that you do not have any of the restrictions set exceeded.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 06:13 PM
тАО02-19-2001 06:13 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
After you login at the console of the graphic workstation that has your root account disabled, did you _re-activate_ your account using SAM?
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 06:17 PM
тАО02-19-2001 06:17 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
console when the root's account is disabled?
How can I do in this case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 06:40 PM
тАО02-19-2001 06:40 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
With CDE, click on "Options" and select the "Command-line login" (I cannot recall the exact words off-hand). This will bring you to the text console mode at the graphical console.
Once login, run SAM, reactivate your account, logout, wait for CDE to come back up, subsequently logins should be fine.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 07:08 PM
тАО02-19-2001 07:08 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
Does it make any difference between these two scenarios that cause root's account disabled in that particular file /tcb/files/auth/r/root? How can I reactivate the account if I have another root's session on remote machine? I run /usr/lbin/modprpw -k root and it doesn't work in case when the root's account was disabled because of expired root's password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 07:13 PM
тАО02-19-2001 07:13 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
How to fix this in this case? In SAM I can't see any signs that root's account has been disabled and that's why I don't know how to reactivate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 07:20 PM
тАО02-19-2001 07:20 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
What software are you using to remote login to your server? Is it just telnet or ssh?
Note that there has been known problems of older versions of ssh not integrating HP-UX's TCB properly resulting in passwords that never expire from a ssh remote login but once expires when using telnet remote login or console login.
Are you able to login remotely now?
If you are already lockscreen'ed, then you have no choice but to cold-reboot the workstation.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 07:55 PM
тАО02-19-2001 07:55 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 08:13 PM
тАО02-19-2001 08:13 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
I suppose there is not the slightest chance that the CAPLOCK key was activated? In addition, I do not suppose you also have included some special keyboard characters in your password?
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 08:45 PM
тАО02-19-2001 08:45 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
# /usr/lbin/modprterm -m locktrm=NO /dev/console
To verify if it is locked or not use this command.
# /usr/lbin/getprterm -r -m locktrm /dev/console
I'm going off of memory here and unable to test for myself at the moment, but I think the options are right.
Another thing to look for would be the /etc/securetty file if this file exists but DOES NOT contain /dev/console, root will not be allowed to login directly from the console. If you want root to only login from the console you could create /etc/securetty with a single line reading /dev/console. I'd give it permissions of 444.
Hope this helps!
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 08:50 PM
тАО02-19-2001 08:50 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
If you look in /tcb/files/ttys there will be an entry for console. If it is locked then I think it whould contain a 't_lock@:' entry. The modprterm syntax above should change that to 't_lock:'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 11:26 PM
тАО02-19-2001 11:26 PM
Re: How to shutdown HP-UX 10.20 without root's priviledge?
The file /etc/securetty does not exist.
grep -i lock /tcb/files/ttys returns nothing.
Maybe I need to reboot the system.
Anybody got any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2001 04:43 PM
тАО02-20-2001 04:43 PM