- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Problem with sudo authorisation rule
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
Problem with sudo authorisation rule
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-25-2009 03:23 AM
03-25-2009 03:23 AM
Problem with sudo authorisation rule
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-25-2009 03:29 AM
03-25-2009 03:29 AM
Re: Problem with sudo authorisation rule
Re: Problem with sudo authorisation rule
%xyz ALL=(ALL) /bin/su - xyzadm
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-25-2009 03:33 AM
03-25-2009 03:33 AM
Re: Problem with sudo authorisation rule
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-25-2009 04:15 AM
03-25-2009 04:15 AM
Re: Problem with sudo authorisation rule
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-25-2009 04:27 AM
03-25-2009 04:27 AM
Re: Problem with sudo authorisation rule
Re: Problem with sudo authorisation rule
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-26-2009 07:02 AM
03-26-2009 07:02 AM
Re: Problem with sudo authorisation rule
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-26-2009 07:00 PM
03-26-2009 07:00 PM
Re: Problem with sudo authorisation rule
Re: Problem with sudo authorisation rule
tusc -fp -ea -o tusc.out /appl/tsu/bin/sudo su - XYZadm
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-26-2009 09:05 PM
03-26-2009 09:05 PM
Re: Problem with sudo authorisation rule
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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP