- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- With sudo not able to execute cd command
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
Forums
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
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-30-2008 10:58 PM
тАО07-30-2008 10:58 PM
[tux:/orahome]cd dba
sh: dba: Permission denied.
[tux:/orahome]sudo cd dba
When execute this are ordinary user not going because that directory is for root only.
But when i execute cd with sudo it is not giving any error but not going to that directory.
I have configured sudo to execute me as a root with sudo. All other commands are working except cd command.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2008 11:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 12:09 AM
тАО07-31-2008 12:09 AM
Re: With sudo not able to execute cd command
Hi,
You should include -
Host_Alias
# User alias specification
User_Alias
Cmnd_Alias CD = /usr/bin/cd
DPADMIN CELLMPKG = (OP) NOPASSWD: CD
Regards,
Charlie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 01:30 AM
тАО07-31-2008 01:30 AM
Re: With sudo not able to execute cd command
Cmnd_Alias CD = /usr/bin/cd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 01:38 AM - last edited on тАО03-23-2017 03:10 AM by VidyaVI
тАО07-31-2008 01:38 AM - last edited on тАО03-23-2017 03:10 AM by VidyaVI
Re: With sudo not able to execute cd command
See also
https://community.hpe.com/t5/System-Administration/bd-p/itrc-156#.WNOeyk27odk
and
http://docs.hp.com/en/B3921-60631/cd.1.html
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2008 10:41 PM
тАО08-04-2008 10:41 PM
Re: With sudo not able to execute cd command
Though i add the line visudo file it not working.
I hope cd will not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2008 10:43 PM
тАО08-04-2008 10:43 PM