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 > debian utility question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

debian utility question

Réponse
 
LinkBack Outils de la discussion
Vieux 20/04/2008, 12h10   #1
Jude DaShiell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut debian utility question

Does debian have a utility I can run to check and repair disk permissions?
On a mac under applications and utilities and under disk repair utility
there's a function for repair disk permissions which can check permissions
against a known default set and repair if necessary. It could be the
problems I'm having with dpkg may be because some permissions somewhere
aren't set right.



--
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
Vieux 20/04/2008, 22h20   #2
Peter Tynan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: debian utility question

On 20/04/2008, Jude DaShiell <jdashiel@shellworld.net> wrote:
> Does debian have a utility I can run to check and repair disk permissions?
> On a mac under applications and utilities and under disk repair utility
> there's a function for repair disk permissions which can check permissions
> against a known default set and repair if necessary. It could be the
> problems I'm having with dpkg may be because some permissions somewhere
> aren't set right.


In most GUI File-managers you check and change permissions by right
clicking an item and clicking properties (or something similar). You
may also want to take a look at the "chmod" command". It's probably
worth noting that generally dpkg is run as root - whenever I see
instructions on using it,, the instructions always seem to follow the
format
su
dpkg ....



Peter


--
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
Vieux 21/04/2008, 02h10   #3
Raj Kiran Grandhi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: debian utility question

Jude DaShiell wrote:
> Does debian have a utility I can run to check and repair disk
> permissions? On a mac under applications and utilities and under disk
> repair utility there's a function for repair disk permissions which can
> check permissions against a known default set and repair if necessary.
> It could be the problems I'm having with dpkg may be because some
> permissions somewhere aren't set right.
>
>


If all you want to do is ensure that all the files have a specific set
of permissions, you can either use 'chmod -R <perms>' on a directory or
use 'find' to select the files and then use chmod on each of them.
Something like:

$ find <dir> <specs> -print0|xargs -0 chmod <perms>

You can also use 'find' to report existing permissions. Look into the
-printf option of find, particularly the %M and %m directives.

Look into the man pages of find, chmod and xargs for details.

--
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
Vieux 22/04/2008, 11h00   #4
Chris Bannister
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: debian utility question

On Sun, Apr 20, 2008 at 05:45:26AM -0500, Jude DaShiell wrote:
> Does debian have a utility I can run to check and repair disk
> permissions? On a mac under applications and utilities and under disk
> repair utility there's a function for repair disk permissions which can
> check permissions against a known default set and repair if necessary.
> It could be the problems I'm having with dpkg may be because some
> permissions somewhere aren't set right.


Hi Jude,

What is the output of the following command: lsof /usr/bin/dpkg

--
Chris.
======
"One, with God, is always a majority, but many a martyr has been burned
at the stake while the votes were being counted." -- Thomas B. Reed


--
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
Vieux 23/04/2008, 22h40   #5
Felix Karpfen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: debian utility question

On Tue, 22 Apr 2008 22:03:00 +1200, Chris Bannister wrote:

> On Sun, Apr 20, 2008 at 05:45:26AM -0500, Jude DaShiell wrote:
>> Does debian have a utility I can run to check and repair disk
>> permissions?

>
> Hi Jude,
>
> What is the output of the following command: lsof /usr/bin/dpkg
>

Queries from a lurker:

When running the above command as "user", I get:

lsof: WARNING: can't stat() xfs file system /dev/.static/dev
Output information may be incomplete.

Should the command be run as "root"; and if so, what might get broken ?

Felix Karpfen



--
Felix Karpfen
Public Key 72FDF9DF (DH/DSA)


--
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 00h58.


Édité par : vBulletin® version 3.7.3
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 ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12510 seconds with 13 queries