- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Getting "command not found" after sudo upgrade
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
Discussions
Forums
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
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
тАО04-21-2009 09:59 AM
тАО04-21-2009 09:59 AM
Getting "command not found" after sudo upgrade
Sample:
$ sudo vault
Password:
sudo vault: command not found.
Please note that vault is on /opt/dba/sudo. I workaound I do now is - I run $ sudo /opt/dba/sudo/vault, it works fine.
Any thoughts?
Thanks,
f. halili
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 10:04 AM
тАО04-21-2009 10:04 AM
Re: Getting "command not found" after sudo upgrade
echo $PATH
If not, that is your problem. The directory needs to be part of your path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 10:11 AM
тАО04-21-2009 10:11 AM
Re: Getting "command not found" after sudo upgrade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 10:31 AM
тАО04-21-2009 10:31 AM
Re: Getting "command not found" after sudo upgrade
since it is working after giving full pathname
the problem may be due to the $PATH.
Add /opt/dba/sudo to your PATH variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 11:05 AM
тАО04-21-2009 11:05 AM
Re: Getting "command not found" after sudo upgrade
"Cmnd_Alias NETBKUP /opt/dba/sudo/vault"
is defined. Adding /opt/dba/sudo to the PATH seems to open up that directory?
Thanks,
f.halili
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 11:24 AM
тАО04-21-2009 11:24 AM
Re: Getting "command not found" after sudo upgrade
How so? If the users require sudo to execute anything from that directory, what is the problem?
Having the full path to the command in sudoers does NOT mean that you only have to type the command name. Sudoers tells sudo what users are authorized to use. The system still has to be able to get to the command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 11:58 AM
тАО04-21-2009 11:58 AM
Re: Getting "command not found" after sudo upgrade
Below is the echo $PATH of the user who will the running the 'sudo
echo $PATH
/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/ssh/bin:/usr/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/gnome/bin:/usr/contrib/kwdb/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/graphics/common/bin:/opt/sec_mgmt/spc/bin:/usr/sbin/diag/contrib:/opt/hpsmh/bin:/opt/upgrade/bin:/opt/mx/bin:/opt/perf/bin:/opt/ignite/bin:/usr/local/bin:/opt/binutils/bin:/opt/zip/bin:/opt/sudo/bin:/opt/gtar/bin:/opt/gfind/bin:/opt/dba/bin:/opt/vim/bin:/opt/ssh/bin:/opt/mozilla:/usr/contrib/bin/X11:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd:/usr/openv/volmgr/bin:/opt/dazel35/bin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/oracle/product/9.2.0/bin:/opt/java/bin:/opt/dazel35/bin:/opt/dba/bin:/opt/dlc91e/bin:/opt/dba/sudo:.
Thanks,
f. halili
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 12:03 PM
тАО04-21-2009 12:03 PM
Re: Getting "command not found" after sudo upgrade
I do not recall if there is a maximum length for the PATH, but this would be a good test.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 12:06 PM
тАО04-21-2009 12:06 PM
Re: Getting "command not found" after sudo upgrade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 05:38 AM
тАО04-22-2009 05:38 AM
Re: Getting "command not found" after sudo upgrade
I tried putting /opt/dba/sudo at the start of the PATH and still got the same result.
Hi Tingli,
The /optdba/sudo is a directory, and there is no real sudo there as well.
Thanks,
f. halili
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 06:27 AM
тАО04-22-2009 06:27 AM
Re: Getting "command not found" after sudo upgrade
$sudo -l
User xxxx may run the following commands on this host:
(root) NOPASSWD: /bin/rlogin *, /bin/rsh *,
for example then the user would have to run:
$sudo /bin/rlogin whateversystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 08:56 AM
тАО04-22-2009 08:56 AM
Re: Getting "command not found" after sudo upgrade
Please relogin to the system after you have updated the PATH variable.
OR
export PATH=$PATH:/opt/dba/sudo:.
check executing the command.
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 09:06 AM
тАО04-22-2009 09:06 AM