- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sorry, user test1 is not allowed to execute "/usr/...
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
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
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
тАО06-25-2008 08:49 AM
тАО06-25-2008 08:49 AM
Sorry, user test1 is not allowed to execute "/usr/lbin/getprpw -m spwchg test1" as root on hostname
Host_Alias SER=server1,server2
ALL SER=/usr/lbin/getprpw ALL
Please let me know what else i need to do ??
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 09:30 AM
тАО06-25-2008 09:30 AM
Re: Sorry, user test1 is not allowed to execute "/usr/lbin/getprpw -m spwchg test1" as root on hostname
I don't see the users defined in your sudoers file.
Example:
ycallen MAIN=NOPASSWD:SNMP
Cmnd_Alias SNMP=/usr/local/emanate/linux.bin/snmpdm,/etc/rc.d/init.d/snmpm,/etc/init.d/snmpm
This gives user ycallen (who no longer works here) the rights to run the progams listed in the command alias as root.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 09:34 AM
тАО06-25-2008 09:34 AM
Re: Sorry, user test1 is not allowed to execute "/usr/lbin/getprpw -m spwchg test1" as root on hostname
to run that command ...
ALL SER=/usr/lbin/getprpw ALL
ALL = All users
SER = host list
command /usr/lbin/getprpw
I amy have the syntax incorect ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 09:57 AM
тАО06-25-2008 09:57 AM
Re: Sorry, user test1 is not allowed to execute "/usr/lbin/getprpw -m spwchg test1" as root on hostname
ALL SER=/usr/lbin/getprpw
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 10:02 AM
тАО06-25-2008 10:02 AM
Re: Sorry, user test1 is not allowed to execute "/usr/lbin/getprpw -m spwchg test1" as root on hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 01:12 PM
тАО06-25-2008 01:12 PM
Re: Sorry, user test1 is not allowed to execute "/usr/lbin/getprpw -m spwchg test1" as root on hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 01:38 PM
тАО06-25-2008 01:38 PM
Re: Sorry, user test1 is not allowed to execute "/usr/lbin/getprpw -m spwchg test1" as root on hostname
can you post sudo -l output when you are test1 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 01:53 PM
тАО06-25-2008 01:53 PM
Re: Sorry, user test1 is not allowed to execute "/usr/lbin/getprpw -m spwchg test1" as root on hostname
if you look at the above line i have ALL in the first field that means every one on that server ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 01:54 PM
тАО06-25-2008 01:54 PM
Re: Sorry, user test1 is not allowed to execute "/usr/lbin/getprpw -m spwchg test1" as root on hostname
Host_Alias SER= server1, server2 ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 02:54 PM
тАО06-25-2008 02:54 PM
Re: Sorry, user test1 is not allowed to execute "/usr/lbin/getprpw -m spwchg test1" as root on hostname
# If user is root, then sudo is not needed.
# Use getprpw to get the date the password was changed. Get the Month, day and year
# it was changed.
if [[ "${USER}" = "root" ]] ; then
/usr/lbin/getprpw -m spwchg ${USER} | awk '{print $2, $3, $5}' | read CHMONTH CHDAY CHYEAR
else
/usr/local/bin/sudo /usr/lbin/getprpw -m spwchg ${USER} | awk '{print $2, $3, $5}' | read CHMONTH CHDAY CHYEAR
fi