- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SUDO error.
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
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
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
10-15-2012 04:34 AM
10-15-2012 04:34 AM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2012 05:28 PM
10-15-2012 05:28 PM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2012 11:42 PM
10-15-2012 11:42 PM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2012 07:25 AM
10-16-2012 07:25 AM
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
I am an HPE Employee
![Accept or Kudo](/html/assets/hpe_banner_SME_signature.png)
- Tags:
- userdbset
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2012 10:49 PM
10-16-2012 10:49 PM
Re: SUDO error.
>I wonder if the message is coming from login
That would be my guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2012 03:51 AM
10-17-2012 03:51 AM
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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2014 12:43 PM
03-18-2014 12:43 PM
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.