
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Kubuntu v5.10
On 25/12/05, Godwin Stewart <godwin.stewart@example.com> wrote:
> On Sun, 25 Dec 2005 13:01:07 +0900, Evan Monroig <evan.monroig@example.com>
> wrote:
>
> > When you need the root account you just need to type for
> > example "sudo apt-get install apache2"
>
> Just remember that by doing so you are gaining root privileges but
> retaining your unprivileged user's environment (including the $PATH
> variable).
[...]
> One way round that is to use su instead of sudo:
>
> $ su - -c "insert your commands to be run as root here"
>
> This time it's the root password you'll be asked for.
Why not use su *in addition to* sudo?
sudo su - -c "insert your commands to be run as root here"
That way, the password you are prompted for is yours.
-Josh
Home |
Main Index |
Thread Index