Re: sudo cd... command not found?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Keith Smith via PLUG-discuss
Date:  
To: Main PLUG discussion list
CC: techlists
Subject: Re: sudo cd... command not found?
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 <> wrote:
>
> Try. Sudo chdir <path>
>
> Cd is builtin to the shell
>
> On Tue, Dec 20, 2022, 6:27 PM Keith Smith via PLUG-discuss
> <> 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:
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
> ---------------------------------------------------
> PLUG-discuss mailing list:
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
> ---------------------------------------------------
> PLUG-discuss mailing list:
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list:
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss