firefox - package install with sudo

Pav Lucistnik pav at FreeBSD.org
Sun Jul 15 19:37:30 UTC 2007


Jean Raby píše v ne 15. 07. 2007 v 15:02 -0400:
> Hello,
> 
> I just installed 6.2 STABLE (june snap), and I'm installing some
> software I need.
> I noticed that when installing firefox as a normal user, with sudo
> (sudo pkg_add -vr firefox)
> I can run firefox as root, but not as the normal user which ran the
> above command.
> 
> It seems like the installation creates an *empty* directory (.mozilla)
> in the home of the user which ran the pkg_add command.

$ env|grep HOME
HOME=/home/pav
$ sudo env|grep HOME
HOME=/home/pav
$ sudo -H env|grep HOME
HOME=/root

man sudo

:)

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

A cow is a sphere that emits milk into all directions.
At least to a first approximation.
  -- An unknown physicist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20070715/cfd7beac/attachment.pgp


More information about the freebsd-gnome mailing list