Re: [sabayon] Prevent users to delete mandatory gconf xml
- From: "Igor Morgado" <igormorgado listas gmail com>
- To: "Alex Malinovich" <demonbane the-love-shack net>
- Cc: sabayon-list gnome org
- Subject: Re: [sabayon] Prevent users to delete mandatory gconf xml
- Date: Thu, 23 Aug 2007 16:52:49 -0300
the problem with stick bit solution is that only root will be allowed to change the file too. That is, if a new profile is released, user will not be able to see the changes.
My 2c
On 8/22/07, Alex Malinovich <demonbane the-love-shack net> wrote:
Vincent wrote:
> Hello,
> I'm using sabayon on my desktop but i have little question about
> mandatory gconf xml file stocked in home directory of users.
> The problem is that the users can delete mandatory file and gnome
> desktop locks are useless... So i code a simple patch that create and
> locks this file to prevent users from delete it.
>
> It's just a script executed after gdm login. The good point is that the
> script work, the bad is how it work. I use POSIX Acl to add a mask that
> to a root file in a user's home directory...
> Yes I know, it's very bad because you need a F.S. with ACL enabled....
>
> Maybe do you have any ideas to resolve this problem with another way ?
You could set the sticky bit on a user's $HOME, and then change the
owner of the file to root:root. That's not much better than what you're
doing now, but it would accomplish what you want.
(Just in case you're not familiar with it, setting the sticky bit on a
directory makes deletes only work for the owner of the file instead of
anyone who has write permissions to the directory.)
--
Alex Malinovich
Support Free Software, delete your Windows partition TODAY!
Encrypted mail preferred. You can get my public key from any of the
pgp.net keyservers. Key ID: A6D24837
_______________________________________________
sabayon-list mailing list
sabayon-list gnome org
http://mail.gnome.org/mailman/listinfo/sabayon-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]