- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: modprpw -k username
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
05-02-2006 05:14 AM
05-02-2006 05:14 AM
I have setup sudo, but one user is having problems and receives the msg, Not Superuser when executing the command above.
I have checked /etc/group and /etc/passwd to ensure that he is in the same group.
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 05:18 AM
05-02-2006 05:18 AM
Re: modprpw -k username
" modprpw updates the user's protected password database settings. This
command is available only to the superuser in a trusted system. "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 05:34 AM
05-02-2006 05:34 AM
Re: modprpw -k username
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 05:35 AM
05-02-2006 05:35 AM
Re: modprpw -k username
# User alias specification
##
User_Alias FULLTIMERS = nickd, mikef, dowdy
User_Alias PARTTIMERS = tsaunder, dstart, cdouza, cknapp, langlcx, jwhite
##
# Host alias specification
##
Host_Alias HPPA = istatux
##
# Cmnd alias specification
##
Cmnd_Alias KILL = /usr/bin/kill
Cmnd_Alias PRINTING = /usr/sbin/lpc, /usr/bin/lprm
Cmnd_Alias VIPW = /usr/sbin/vipw, /usr/bin/passwd, /usr/bin/chsh, /usr/bin/chfn, /usr/lbin, /usr/lbin/modprpw
Cmnd_Alias PASSWD = /usr/sbin/vipw, /usr/bin/passwd, /usr/bin/chsh, /usr/bin/chfn, /usr/lbin
Cmnd_Alias CP = /usr/bin/cp
Cmnd_Alias MV = /usr/bin/mv
##
# users permissions
##
tsaunder ALL = VIPW, PRINTING, CP
nathan ALL = PRINTING, CP
smithmx ALL = VIPW, PRINTING, CP
dstark ALL = VIPW, PRINTING, CP
langlcx ALL = VIPW, PRINTING, CP, PASSWD
whitejg ALL = VIPW, PRINTING, CP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 06:07 AM
05-02-2006 06:07 AM
Re: modprpw -k username
$ sudo /usr/lbin/modprpw -k
If they omit the 'sudo' then you can receive a message exactly like you see.
You should also verify the 'sudo' permissions and ownership. It should be have '--s--x--x' for permissions and the owner and group should both be root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 07:35 AM
05-02-2006 07:35 AM
Re: modprpw -k username
Cannot access protected password entry
The other members of IT Support are able to /usr/bin/modprpw -k username so I do not believe that it is a syntax problem.
I believe that the /tcb/auth files might be missing something to cmoplete his proper authentication for sudo.
Nickd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 07:39 AM
05-02-2006 07:39 AM
Re: modprpw -k username
What does:
# pwck -s
show?
Does this user have the appropriate file in /tcb/files/auth//
Where the is the first letter of the users username and
If that file does not exist then the user will definitely have problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 07:44 AM
05-02-2006 07:44 AM
Re: modprpw -k username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 08:29 AM
05-02-2006 08:29 AM
Re: modprpw -k username
but here is what if you want to reset user password or just reinvoke user
/usr/lbin/modprpw -l -k user
/usr/lbin/modprpw -l -v user
or change user password first and then issue above commands..
Next thing is
/etc/sudoers, whatever access user needs, should be mentioned below this.. like %group will follow what accesses he will have.. make a entry for user..
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 11:45 AM
05-02-2006 11:45 AM
Re: modprpw -k username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 08:02 AM
05-03-2006 08:02 AM
Re: modprpw -k username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 10:33 AM
05-03-2006 10:33 AM
Re: modprpw -k username
Delete the bad user and then re-add the user correctly with SAM or useradd.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 12:49 AM
05-04-2006 12:49 AM
Re: modprpw -k username
I use useradd as part of a script.
I will delete the user using sam and add it using sam and get back to the forum.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 12:57 AM
05-04-2006 12:57 AM
Re: modprpw -k username
I logged on as the user and completed the steps below and no go.
$ cd /usr/lbin
$ ./modprpw -k tsaunder
Not Superuser.
I have attached my sudoers file.
There is an entry in the /tcb/files/auth/l directory for langlcx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 01:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 01:07 AM
05-04-2006 01:07 AM
Re: modprpw -k username
Sometimes you can't see the trees for the forest.
If everyone would like full points, please post a reply due to my being a dolt.
Thanks