sudo cd... command not found?

techlists at phpcoderusa.com techlists at phpcoderusa.com
Wed Dec 21 18:41:55 MST 2022


Thank you for your help!!

This has been a problem for years going back to CentOS 5.x maybe.  In 
the post I would just become root.

Only mod was to add the user in question to the sudo group.  Running 
Ubuntu 20.04lts

Keith



On 2022-12-20 20:46, greg zegan via PLUG-discuss wrote:
> Hello,
>   Is this an ongoing problem or only happening right now?
> Did you modify any files in your profile to add  such things as
> aliases?
> If this is happening right now just close the current shell and launch
> another one and try that exercise again.
> 
>  On Tuesday, December 20, 2022 at 08:41:27 PM MST, Bob Elzer via
> PLUG-discuss <plug-discuss at lists.phxlinux.org> wrote:
> 
> Try. Sudo chdir <path>
> 
> Cd is builtin to the shell
> 
> On Tue, Dec 20, 2022, 6:27 PM Keith Smith via PLUG-discuss
> <plug-discuss at lists.phxlinux.org> wrote:
> 
>> Hi,
>> 
>> Not sure what is going on here:
>> 
>> cd <path> results in message "-bash: cd: <path> : Permission
>> denied".
>> 
>> Then I add sudo : sudo  cd <path> results in message  :  "sudo: cd:
>> command not found".
>> 
>> Any help is much appreciated!!
>> 
>> Keith
>> ---------------------------------------------------
>> PLUG-discuss mailing list: PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
> 
> ---------------------------------------------------
> PLUG-discuss mailing list: PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
> ---------------------------------------------------
> PLUG-discuss mailing list: PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss


More information about the PLUG-discuss mailing list