PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > File Permissions
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

File Permissions

Réponse
 
LinkBack Outils de la discussion
Vieux 10/05/2008, 06h50   #1
Insane Boi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut File Permissions

Unique question, Pidgin (aka gaim) has some configuration files. I would
like to have these configuration files remain untouched/unmodified, but
readable. I am running pidgin under a normal user account. Here is what I
tried:

chmod 004 file.xml
sudo chown root:root file.xml

Launch pidgin as user -> In theory, pidgin would be able to read the
file.xml, but unable to modify it.
After pidgin launches, file.xml permissions become 600 owned by user:user
and can be modified.

I don't understand this, as since the file is owned by root, and the user
has no permissions to modify the file, how can a program running under that
user's account modify and change the file permissions? Shouldn't the file
permissions prevent the modification of this file?

Thanks.

  Réponse avec citation
Vieux 10/05/2008, 08h00   #2
Raj Kiran Grandhi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: File Permissions

Insane Boi wrote:
> Unique question, Pidgin (aka gaim) has some configuration files. I
> would like to have these configuration files remain
> untouched/unmodified, but readable. I am running pidgin under a normal
> user account. Here is what I tried:
>
> chmod 004 file.xml
> sudo chown root:root file.xml
>
> Launch pidgin as user -> In theory, pidgin would be able to read the
> file.xml, but unable to modify it.
> After pidgin launches, file.xml permissions become 600 owned by
> user:user and can be modified.
>
> I don't understand this, as since the file is owned by root, and the
> user has no permissions to modify the file, how can a program running
> under that user's account modify and change the file permissions?
> Shouldn't the file permissions prevent the modification of this file?
>
> Thanks.


Pidgin is probable deleting the original file and recreating it. My
guess is that the directory still belongs to that user, so the user is
free to delete any file in that directory (even though the file is owned
by somebody)

You may want to try chattr to set the 'i' attribute on the relevant file.

--
Raj Kiran Grandhi
--
Politics is for the moment. An equation is for eternity.
-- Albert Einstein


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 06h05.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,06866 seconds with 10 queries