- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- SUDO error.
-
-
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
SUDO error.
- 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
10-15-2012 04:34 AM
10-15-2012 04:34 AM
SUDO error.
SUDO error.
Hi,
I had installed and configured the SUDO version (1.8.5p3) on HP Itanium Blade server, OS - HP-UX 11.31.
I had given cancel command access to one user i.e. testuser and he is able to execute the cancel command to cancel the print jobs...but when he executes getting additional info as below,
$ /usr/local/bin/sudo /usr/bin/cancel -e P450R
Last successful login: Mon Oct 15 11:18:18 UTC 2012 testsapn27.domain.net
Last authentication failure: Thu Oct 11 09:14:17 UTC 2012 testsapn27.domain.net
It is not basically a error but it doesn't look good when he executes the sudo cancel command and getting last login and failure info.
How we can disable or fix the problem so we should not get the last login and failure info after executing the sudo cancel command.
Thanks,
Narendra
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-15-2012 05:28 PM
10-15-2012 05:28 PM
Re: SUDO error.
Re: SUDO error.
The login information suggests that either the sudoers file has a strange setting or the cancel command is not the real cancel command but a wrapper of some sort. Use these commands:
# what /usr/bin/cancel /usr/bin/cancel: genfuns.c $Date: 2009/10/21 17:10:33 $Revision: r11.31/4 PATCH_11.31 (PHCO_40128) fifo.c $Date: 2009/10/21 17:10:32 $Revision: r11.31/1 PATCH_11.31 (PHCO_40128) lpio.c $Date: 2008/01/14 16:56:49 $Revision: r11.31/2 PATCH_11.31 (PHCO_37540) $Revision: @(#) lp R11.31_BL2009_1214_1 PATCH_11.31 PHCO_40128 # file /usr/bin/cancel /usr/bin/cancel: ELF-32 executable object file - IA64
The what command shows the patch level for the command and file identifies the type of file. If this isn't similar to what you have on your system, the cancel command has apparently been modified or replaced.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-15-2012 11:42 PM
10-15-2012 11:42 PM
Re: SUDO error.
Re: SUDO error.
Hi Bill,
I checked the patch level for the command and file identifies and it is similar please find the output as below,
test1:/# what /usr/bin/cancel
/usr/bin/cancel:
genfuns.c $Date: 2009/10/21 17:10:33 $Revision: r11.31/4 PATCH_11.31 (PHCO_40128)
fifo.c $Date: 2009/10/21 17:10:32 $Revision: r11.31/1 PATCH_11.31 (PHCO_40128)
lpio.c $Date: 2008/01/14 16:56:49 $Revision: r11.31/2 PATCH_11.31 (PHCO_37540)
$Revision: @(#) lp R11.31_BL2009_1214_1 PATCH_11.31 PHCO_40128
test1:/# file /usr/bin/cancel
/usr/bin/cancel: ELF-32 executable object file - IA64
Looks like then sudoers file might have some strange setting...but i don't know which setting could be causing the problem. I have only 2 lines in the sudoers file.
User_Alias USER1 = nuttekar
USER1 ALL=NOPASSWD:/usr/bin/cancel
Thanks,
Narendra
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-16-2012 07:25 AM
10-16-2012 07:25 AM
Re: SUDO error.
Re: SUDO error.
I wonder if the message is coming from login rather than sudo? You might try:
userdbset -u nuttekar DISPLAY_LAST_LOGIN=0
HTH
Duncan
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-16-2012 10:49 PM
10-16-2012 10:49 PM
Re: SUDO error.
Re: SUDO error.
>I wonder if the message is coming from login
That would be my guess.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-17-2012 03:51 AM
10-17-2012 03:51 AM
Re: SUDO error.
Re: SUDO error.
Hi Duncan,
I tried executing the command as you told below, But no luck still same login message is coming while executing the sudo cancel command.
test1:/# userdbset -u nuttekar DISPLAY_LAST_LOGIN=0
test1:/#
Thanks,
Narendra
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-18-2014 12:43 PM
03-18-2014 12:43 PM
Re: SUDO error.
Re: SUDO error.
What you have to do is set the DISPLAY_LAST_LOGIN attribute on the user you are sudoing to (here, root):
# userdbset -u root DISPLAY_LAST_LOGIN=0
Alternatively, modify the default setting in /etc/default/security.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP