[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] (no subject)
From: |
Karl O. Pinc |
Subject: |
Re: [Duplicity-talk] (no subject) |
Date: |
Sat, 16 Feb 2013 09:59:20 -0600 |
On 02/16/2013 09:22:38 AM, Paul Barker wrote:
> This may be due to peculiarities of Ubuntu Server 12.04 but on my
> machine I get:
>
> address@hidden ~ $ sudo env | grep HOME
> HOME=/home/paul
> address@hidden ~ $ sudo -E env | grep HOME
> HOME=/home/paul
> address@hidden ~ $ sudo -H env | grep HOME
> HOME=/root
>
> This has caught me out before using duplicity, thought it was worth a
> mention on here.
This is because sudo is not the same as logging in as root.
If you really want to have a full root login using sudo do
something like
sudo su -l
Which gets you a shell as root. 'exit' will exit
the root environment.
Karl <address@hidden>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein