- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: enable accounts su'able
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
07-14-2008 06:21 AM
07-14-2008 06:21 AM
enable accounts su'able
I cannot SU or SUDO from my account, even though I did add my account to the group that is suppose to have SU rights. At the moment I cannot think of where/which file this is controlled by.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 06:31 AM
07-14-2008 06:31 AM
Re: enable accounts su'able
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 06:33 AM
07-14-2008 06:33 AM
Re: enable accounts su'able
The only account that can 'su' to another account without a password is root.
If you want to use 'sudo' to do this you must edit the sudoers file appropriately. This should be done with the 'visudo' command.
What specifically have you tried and what error messages are you getting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 06:35 AM
07-14-2008 06:35 AM
Re: enable accounts su'able
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 06:48 AM
07-14-2008 06:48 AM
Re: enable accounts su'able
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 07:42 AM
07-14-2008 07:42 AM
Re: enable accounts su'able
A copy/paste of the commands issued and errors received would be helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 07:57 AM
07-14-2008 07:57 AM
Re: enable accounts su'able
Password:
su: Sorry
$ su - root
Password:
su: Sorry
These work:
$ su - anotheruser
Password:
(c)Copyright 1983-2006 Hewlett-Packard Development Company, L.P.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-2000 Sun Microsyst
$ su - myaccount
Password:
(c)Copyright 1983-2006 Hewlett-Packard Development Company, L.P.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-2000 Sun Microsyst
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 11:34 AM
07-14-2008 11:34 AM
Re: enable accounts su'able
> Password:
> su: Sorry
Looks like a bad password...su (unlike sudo) does not have a permission configuration (except in /etc/default/security if present). Can anyone else use su to login as root? Make sure that su is really su:
type su
su is /usr/bin/su
what /usr/bin/su
/usr/bin/su:
$Revision: @(#) su R11.11_BL2006_0308_2 PATCH_11.11 PHCO_34545
sudo is completely different and your ability to run a command as root is governed by the sudoers file. The system administrator controls the contents of the sudoers file.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 11:38 AM
07-14-2008 11:38 AM
Re: enable accounts su'able
$ type su
su is /usr/bin/su
$ what /usr/bin/su
/usr/bin/su:
$Revision: B.11.31_LR
I have 2 accounts on this box, and neither can su.
For sudo, I guess we/you/whoevertheadminis just needs to create the sudoers file, since it is not on the system by default?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 11:51 AM
07-14-2008 11:51 AM
Re: enable accounts su'able
If you do not have a sudoers file, then I would guess that sudo is not actually installed.
When you su above, you are using the password for 'root' there, correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 12:07 PM
07-14-2008 12:07 PM
Re: enable accounts su'able
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2008 10:17 AM
07-15-2008 10:17 AM
Re: enable accounts su'able
We had issues with the root password when we installed the system and had to reset it in simple/single user mode. I guess if I really wanted to see if that is what caused the issue would be to go in and set it via that mode and see if it breaks SU...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2008 10:54 AM
07-15-2008 10:54 AM
Re: enable accounts su'able
If there were special characters, then they may have, unknown to you, interacted with the terminal and caused some unexpected behavior.
See the WARNINGS section of the passwd man page for characters to avoid in your passwords.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2008 10:56 AM
07-15-2008 10:56 AM
Re: enable accounts su'able
Sometimes the simplest of issues can be so frustrating.