X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=TROUBLESHOOTING;h=a90b5eb9ff67c70be25f0b34487e13972411d474;hb=06a67e2a5850f36c627b46f330c988e031536ab3;hp=4bf571bf31d4d6df9d92b927e200ead06c25970a;hpb=034bfa94d8911bef1d553a639d43aa8cdefac765;p=debian%2Fsudo diff --git a/TROUBLESHOOTING b/TROUBLESHOOTING index 4bf571b..a90b5eb 100644 --- a/TROUBLESHOOTING +++ b/TROUBLESHOOTING @@ -158,9 +158,12 @@ A) "cd" is a shell built-in command, you can't run it as a command Q) When I try to use "cd" with sudo the command completes without errors but nothing happens. -A) Some SVR4-derived OS's include a /usr/bin/cd command for reasons - unfathomable. A "cd" command is totally useless since a child process - cannot affect the current working directory of the parent (your shell). +A) Even though "cd" is a shell built-in command, some operating systems + include a /usr/bin/cd command for some reason. A standalone + "cd" command is totally useless since a child process (cd) cannot + affect the current working directory of the parent (your shell). + Thus, "sudo cd /foo" will start a child process, change the + directory and immediately exit without doing anything useful. Q) When I run sudo it says I am not allowed to run the command as root but I don't want to run it as root, I want to run it as another user.