Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2011 10:48:23 -0500
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        ajtiM <lumiwa@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: .config
Message-ID:  <CAHHBGkq_Y_4JOEntENoipX+aRk1QCT+yx9nDMGeqz8kxsP9+jQ@mail.gmail.com>
In-Reply-To: <20111130200347.8358419f.freebsd@edvax.de>
References:  <201111230539.21395.lumiwa@gmail.com> <20111123124633.28028a25.freebsd@edvax.de> <201111230731.07527.lumiwa@gmail.com> <CAHHBGkoYk+eukuSL30GcEL4fmdxcoO=iWW0GnPO+wko90gxRGA@mail.gmail.com> <20111130200347.8358419f.freebsd@edvax.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 30 November 2011 14:03, Polytropon <freebsd@edvax.de> wrote:
> On Wed, 30 Nov 2011 13:40:19 -0500, illoai@gmail.com wrote:
>> A dirty workaround might be to link /.config
>> to something innocuous. =A0One could obvio-
>> usly also have /.config mounted as a tmpfs(5).
>> So it couldn't persist from boot to boot.
>>
>> The cleanest solution is to forgo qt/kde, but
>> then you're slightly more limited in what you
>> can use for office-type stuff.
>
> The question remains:
>
> How is a user-started process (e. g. when you run
> the "startx" command) supposed to create directory
> entries and files on root level /, a thing that
> only root and root-like users (and programs!)
> should be allowed to?
>
> =A0 =A0 =A0 =A0% mkdir /.config
> =A0 =A0 =A0 =A0mkdir: /.config: Permission denied
>
> As a normal user, you _intendedly_ can't do this.
> Why would you assume that a program you start
> can do it?

I don't have any QT/KDE stuff but isn't kdm suid
(& owned by root)?
There're likely a couple of others in that whole
mess, as well.

> Creating such data structures in a _user_ directory
> is completely okay. But in / it simply sounds WRONG.
> Sorry. JUST PLAIN WRONG!
>

This I agree with wholeheartedly.

When I first moved to UFS2, the presence of the
heretofore unknown .snap directories gave me
a bit of a paranoid moment.

--=20
--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAHHBGkq_Y_4JOEntENoipX+aRk1QCT+yx9nDMGeqz8kxsP9+jQ>