- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sudo version 1.8.3p1 problem?
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
07-18-2013 03:46 PM
07-18-2013 03:46 PM
Hello all.
We're running Sudo version 1.8.3p1 on an HP-UX 11.31 ia64 server.
We have an account called user1 configured in /etc/sudoers to run many commands including the following
/usr/bin/ksh
/opt/bin/submit
/usr/bin/at
Despite this, we're getting the following error.
$ sudo -i -u user1 "echo /opt/bin/submit DATA | at now"
ksh: echo /opt/bin/submit DATA | at now: not found
The account running this sudo command is also configured in /etc/sudoers.
Any ideas why the "ksh:....not found" error is being generated.
Is this a sudo or perhaps a ksh $PATH issue?
Any help would be appreciated.
Thanks everyone.
Solved! Go to Solution.
- Tags:
- sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2013 09:09 PM
07-18-2013 09:09 PM
Re: sudo version 1.8.3p1 problem?
>ksh: echo /opt/bin/submit DATA | at now: not found
Are you sure you're suppose to quote the whole command? The ksh error indicates the shell got:
"echo /opt/bin/submit DATA | at now" # as one token
I suppose you could do:
sudo -i -u user1 ksh -c "echo /opt/bin/submit DATA | at now"
Or better:
echo /opt/bin/submit DATA | sudo -i -u user1 at now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2013 12:25 PM
07-19-2013 12:25 PM
SolutionHello Dennis.
Thanks for the feedback.
In the past we always enclosed the entire command in quotes - at least we did with previous versions of sudo (sudo-1.7.1).
With this version of sudo, that doesn't seem to work, however the command you provided...
sudo -i -u user1 ksh -c "echo /opt/bin/submit DATA | at now"
...does work.
Thanks again for the help.