Re: Sudo
On Wed, Jan 29, 2020 at 10:31:35AM +0000, mick crane wrote:
[...]
> The only effective difference for me between "su -" and sudo seems
> to be that if you are in a directory you don't have permissions and
> want to change something sudo keeps you in the $PWD whereas "su -"
> puts you in /root and you have to go find it again.
That's because "-" tells su to do that. Drop the "-" and it'll leave
you in the current dir (among other details, consult the man page for
details).
Cheers
-- tomás
Attachment:
signature.asc
Description: Digital signature
Reply to:
- Follow-Ups:
- Re: Sudo
- From: mick crane <mick.crane@gmail.com>
- References:
- Sudo
- From: "Harold Hartley" <wheelie207@ownmail.net>
- Re: Sudo
- From: Patrick Bartek <nemommxiv@gmail.com>
- Re: Sudo
- From: Paul Johnson <baloo@ursamundi.org>
- Re: Sudo
- From: Patrick Bartek <nemommxiv@gmail.com>
- Re: Sudo
- From: Andrei POPESCU <andreimpopescu@gmail.com>
- Re: Sudo
- From: Patrick Bartek <nemommxiv@gmail.com>
- Re: Sudo
- From: Andrei POPESCU <andreimpopescu@gmail.com>
- Re: Sudo
- From: David Wright <deblis@lionunicorn.co.uk>
- Re: Sudo
- From: Andrei POPESCU <andreimpopescu@gmail.com>
- Re: Sudo
- From: mick crane <mick.crane@gmail.com>