- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with sudo authorisation rule
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
03-25-2009 03:23 AM
03-25-2009 03:23 AM
Problem with sudo authorisation rule
I have a weird problem with one of sudo rule i have set on sudoers file. I have provided a user group of 14 users (say xyz) to switch one adm account (say xyzadm) using password in below way -
xyz ALL=(ALL) /bin/su - xyzadm
this rule is going fine for 12 users, but for 2 users its inconsistence.Sometime it works fine and sometime giving error. Sometime When they use sudo command and enter there password, it is giving them password error ( Sorry, try again). I have also checked by making one test account ,assigned test user xyz group. I also face same issue. Whenever i change password it works for few session then again start giving password error. It really sound foolish ..
but if anyone has suggestion to help me,would be grateful.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2009 03:29 AM
03-25-2009 03:29 AM
Re: Problem with sudo authorisation rule
%xyz ALL=(ALL) /bin/su - xyzadm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2009 03:33 AM
03-25-2009 03:33 AM
Re: Problem with sudo authorisation rule
The actual error would help.
Check the environment before running the command with a good user and a problematic user.
env > env.txt
Use diff to compare the files.
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
03-25-2009 04:15 AM
03-25-2009 04:15 AM
Re: Problem with sudo authorisation rule
here is actual error .. i have checked env variables with diff command , all looks same only differances found in parameter LOGNAME,PS1,USER,HOME,prompt,PWD. Which is as per users, so it looks ok.
XXXX:XXXX> /appl/tsu/bin/sudo su - XYZadm
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
/appl/tsu/bin/sudo: 2 incorrect password attempts
XXXXX:XXXXX>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2009 04:27 AM
03-25-2009 04:27 AM
Re: Problem with sudo authorisation rule
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2009 07:02 AM
03-26-2009 07:02 AM
Re: Problem with sudo authorisation rule
i never used tusc...how should i use it to get relavent output in a file.
I have checked my system tusc is installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2009 07:00 PM
03-26-2009 07:00 PM
Re: Problem with sudo authorisation rule
tusc -fp -ea -o tusc.out /appl/tsu/bin/sudo su - XYZadm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2009 09:05 PM
03-26-2009 09:05 PM
Re: Problem with sudo authorisation rule
Here you can find details of sudo and how to configure sudo.
see the below link
http://www.sudo.ws/sudo/man/sudoers.html
Suraj