Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] meld - GConf Error: Client failed to connect to the D-BUS
Date: Sun, 01 Feb 2015 11:25:07
Message-Id: 201502011125.01755.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] meld - GConf Error: Client failed to connect to the D-BUS by Adam Carter
1 On Sunday 01 Feb 2015 00:18:40 Adam Carter wrote:
2 > > If you've su'd to root, try 'su -' instead.
3 > >
4 > > Thank you, that was it?
5 > > What difference does it make and why on some boxes it has to be "su -"
6 > > and on others simple "su" works.
7 >
8 > Read 'man su'. I dont really understand this stuff well enough, but a
9 > 'login shell', that is, one started by /bin/login, is setup with a
10 > different environment to a shell that's started by su (or by, say, cron).
11 > This is why a shell command or script may work for you when you're logged
12 > in, but not if you run it from cron. I'm sure other's can explain it more
13 > correctly and fully.
14
15 When you follow su with "-" it will login into the pwd of /root. Without "-"
16 you will find yourself in the same directorate you happened to be when you ran
17 su.
18
19 --
20 Regards,
21 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature