Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Droits] Impossible de supprimer un dossier. (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
fo_o
n00b
n00b


Joined: 05 Jun 2007
Posts: 47
Location: bourg-en-bresse

PostPosted: Fri Sep 14, 2007 11:23 am    Post subject: [Droits] Impossible de supprimer un dossier. (résolu) Reply with quote

Bonjour.

Je patauge un peu, en root je ne peux pas supprimer un certain dossier, ni même modifier le chmod etc...

Quote:

>>> Merging x11-libs/libXft-2.1.12 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/xft-config
--- /usr/lib/
>>> /usr/lib/libXft.so.2 -> libXft.so.2.1.2
--- /usr/lib/pkgconfig/
>>> /usr/lib/pkgconfig/xft.pc
>>> /usr/lib/libXft.so.2.1.2
>>> /usr/lib/libXft.a
>>> /usr/lib/libXft.la
>>> /usr/lib/libXft.so -> libXft.so.2.1.2
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/libXft-2.1.12/
>>> /usr/share/doc/libXft-2.1.12/ChangeLog.bz2
--- /usr/share/man/
--- /usr/share/man/man1/
>>> /usr/share/man/man1/xft-config.1.bz2
--- /usr/share/man/man3/
>>> /usr/share/man/man3/Xft.3.bz2
--- /usr/include/
--- /usr/include/X11/
--- /usr/include/X11/Xft/
>>> /usr/include/X11/Xft/Xft.h
>>> /usr/include/X11/Xft/XftCompat.h
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
!!! Unable to remove db entry for this package.
!!! It is possible that a directory is in this one. Portage will still
!!! register this package as installed as long as this directory exists.
!!! You may delete this directory with 'rm -Rf /var/db/pkg/x11-libs/libXft-2.1.12'
!!! [Errno 13] Permission denied: '/var/db/pkg/x11-libs/libXft-2.1.12/CBUILD'

Ok pas de soucis:
Quote:

# rm -Rf /var/db/pkg/x11-libs/libXft-2.1.12
rm: ne peut enlever `/var/db/pkg/x11-libs/libXft-2.1.12/CBUILD': Permission non accordée
rm: ne peut enlever `/var/db/pkg/x11-libs/libXft-2.1.12/CFLAGS': Permission non accordée
rm: ne peut enlever `/var/db/pkg/x11-libs/libXft-2.1.12/DEPEND': Permission non accordée


J'en ai vu des belles, mais alors celle là :roll:
_________________
# emerge beer chips life
Calculating dependencies \
emerge: there are no ebuilds to satisfy "life".


Last edited by fo_o on Sat Sep 15, 2007 2:20 am; edited 1 time in total
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Fri Sep 14, 2007 11:45 am    Post subject: Reply with quote

Et avec un petit coup de "chown" avant le "rm -Rf" ??
Code:
chown -R root:portage /var/db/pkg/x11-libs/libXft-2.1.12

S'il est encore récalcitrant "chmod" est ton ami :
Code:
chmod -R ug+wrx /var/db/pkg/x11-libs/libXft-2.1.12
(seul le "+w" est nécessaire mais comme tout va être supprimé :wink:)

Enjoy !
_________________
La connaissance s'accroît quand on la partage.
JCB
Back to top
View user's profile Send private message
fo_o
n00b
n00b


Joined: 05 Jun 2007
Posts: 47
Location: bourg-en-bresse

PostPosted: Fri Sep 14, 2007 11:51 am    Post subject: Reply with quote

damn :(
Quote:

# chown -R root:portage /var/db/pkg/x11-libs/libXft-2.1.12
chown: ne peut accéder `/var/db/pkg/x11-libs/libXft-2.1.12/CBUILD': Permission non accordée
chown: ne peut accéder `/var/db/pkg/x11-libs/libXft-2.1.12/CFLAGS': Permission non accordée
chown: ne peut accéder `/var/db/pkg/x11-libs/libXft-2.1.12/DEPEND': Permission non accordée

# chmod -R ug+wrx /var/db/pkg/x11-libs/libXft-2.1.12
chmod: ne peut accéder `/var/db/pkg/x11-libs/libXft-2.1.12/CBUILD': Permission non accordée
chmod: ne peut accéder `/var/db/pkg/x11-libs/libXft-2.1.12/CFLAGS': Permission non accordée
chmod: ne peut accéder `/var/db/pkg/x11-libs/libXft-2.1.12/DEPEND': Permission non accordée


Alors va savoir ce qu'il s'est passé là dedans... Sinon je pensais y aller à coups de livecd... :?[/quote]
_________________
# emerge beer chips life
Calculating dependencies \
emerge: there are no ebuilds to satisfy "life".
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Fri Sep 14, 2007 11:52 am    Post subject: Reply with quote

bizarre ton truc, c'est comme si root n'avait pas tous les droits. Serait ton passwd/shadow qui aurait changé?
_________________
membre officieux du SAV Ati GEntoo
Back to top
View user's profile Send private message
fo_o
n00b
n00b


Joined: 05 Jun 2007
Posts: 47
Location: bourg-en-bresse

PostPosted: Fri Sep 14, 2007 11:55 am    Post subject: Reply with quote

bah j'ai rien toucher à mon compte root depuis l'installe, même pas le passwd
_________________
# emerge beer chips life
Calculating dependencies \
emerge: there are no ebuilds to satisfy "life".
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Fri Sep 14, 2007 12:06 pm    Post subject: Reply with quote

Système de fichier corrompu ? Tu l'as vérifié ?
Back to top
View user's profile Send private message
SanKuKai
Apprentice
Apprentice


Joined: 17 Feb 2006
Posts: 228
Location: Toulouse, France

PostPosted: Fri Sep 14, 2007 12:09 pm    Post subject: Reply with quote

Salut.

Peut-être que ça n'a rien à voir mais on dirait qu'il y a un flag d'immuabilité qui traine sur ce répertoire (vérifiable avec un ls -lo).
Essaie ça :
Code:

# chflags -R noschg /var/db/pkg/x11-libs/libXft-2.1.12
# rm -rf /var/db/pkg/x11-libs/libXft-2.1.12


EDIT : Il semblerait que chflags soit purement BSD, l'équivalent Linux est chattr, essaie de voir avec ça.
Back to top
View user's profile Send private message
fo_o
n00b
n00b


Joined: 05 Jun 2007
Posts: 47
Location: bourg-en-bresse

PostPosted: Fri Sep 14, 2007 1:10 pm    Post subject: Reply with quote

en effet, ça donne ça:
Code:

libXft-2.1.12 # ls -lo
ls: ne peut accéder CBUILD: Permission non accordée
ls: ne peut accéder CFLAGS: Permission non accordée
ls: ne peut accéder DEPEND: Permission non accordée
total 0
?????????? ? ? ?            ? CBUILD
?????????? ? ? ?            ? CFLAGS
?????????? ? ? ?            ? DEPEND

je regarde pour chattr.
_________________
# emerge beer chips life
Calculating dependencies \
emerge: there are no ebuilds to satisfy "life".
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Fri Sep 14, 2007 1:14 pm    Post subject: Reply with quote

geekounet wrote:
Système de fichier corrompu ? Tu l'as vérifié ?

+1
_________________
membre officieux du SAV Ati GEntoo
Back to top
View user's profile Send private message
jul16ar
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jan 2007
Posts: 100

PostPosted: Fri Sep 14, 2007 3:11 pm    Post subject: Reply with quote

mouarf, ne même pas pouvoir faire un ls en root, c'est vraiment étrange. je vote aussi pour la corruption du système de fichier.
Back to top
View user's profile Send private message
Ey
l33t
l33t


Joined: 07 Apr 2005
Posts: 863
Location: Paris

PostPosted: Fri Sep 14, 2007 4:54 pm    Post subject: Reply with quote

Ou un FS mounté en read-only...
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Fri Sep 14, 2007 4:57 pm    Post subject: Reply with quote

Ey wrote:
Ou un FS mounté en read-only...

Pas quand on a ça, ya un problème en plus ;)
fo_o wrote:
en effet, ça donne ça:
Code:

libXft-2.1.12 # ls -lo
ls: ne peut accéder CBUILD: Permission non accordée
ls: ne peut accéder CFLAGS: Permission non accordée
ls: ne peut accéder DEPEND: Permission non accordée
total 0
?????????? ? ? ?            ? CBUILD
?????????? ? ? ?            ? CFLAGS
?????????? ? ? ?            ? DEPEND

je regarde pour chattr.
Back to top
View user's profile Send private message
Temet
Advocate
Advocate


Joined: 14 Mar 2006
Posts: 2586
Location: 92

PostPosted: Fri Sep 14, 2007 9:39 pm    Post subject: Reply with quote

Pour info y a déjà eu un sujet du même type sur le forum (le coup du point d'interrogation), c'était bien le fs qui avait pris un coup de la gueule et un fsck avait rétablit le truc.
_________________
Full Gentoo powered.
Back to top
View user's profile Send private message
fo_o
n00b
n00b


Joined: 05 Jun 2007
Posts: 47
Location: bourg-en-bresse

PostPosted: Sat Sep 15, 2007 2:18 am    Post subject: Reply with quote

Merci de vos réponses, ces fichiers étaient bien corrompus.

mon ami fsck a tout réparer :lol:

Quote:

root@ubuntu:/home/ubuntu# fsck -t reiserfs /dev/hda1
Replaying journal..
Reiserfs journal '/dev/hda1' in blocks [18..8211]: 0 transactions replayed
Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:

check_semantic_pass: Name "CBUILD" in directory [252344 748839] points to nowhere
check_semantic_pass: Name "CFLAGS" in directory [252344 748839] points to nowhere
check_semantic_pass: Name "DEPEND" in directory [252344 748839] points to nowhere

vpf-10650: The directory [252344 748839] has the wrong size in the StatData (120), should be (48)
finished
4 found corruptions can be fixed when running with --fix-fixab

---------------------

root@ubuntu:/home/ubuntu# reiserfsck --fix-fixable /dev/hda1
Replaying journal..
Reiserfs journal '/dev/hda1' in blocks [18..8211]: 0 transactions replayed
Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
/var/db/pkg/x11-libs/libXft-2.1.12check_semantic_pass: Name "CBUILD" in directory [252344 748839] points to nowhere
- removed
check_semantic_pass: Name "CFLAGS" in directory [252344 748839] points to nowhere
- removed
check_semantic_pass: Name "DEPEND" in directory [252344 748839] points to nowhere
- removed
vpf-10650: The directory [252344 748839] has the wrong size in the StatData (120) - corrected to (48)
finished
No corruptions found
There are on the filesystem:
Leaves 89972
Internal nodes 607
Directories 49209
Other files 362841
Data block pointers 1831089 (1280 of them are zero)
Safe links 0


Ceci dit, comment est-ce possible que certains fichiers se donnent du mal comme ça ?
Surtout que je n'y ai jamais mis les pieds... bizard bizard
_________________
# emerge beer chips life
Calculating dependencies \
emerge: there are no ebuilds to satisfy "life".
Back to top
View user's profile Send private message
vdemeester
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2004
Posts: 138
Location: France

PostPosted: Sat Sep 15, 2007 11:19 am    Post subject: Reply with quote

Code:
/var/db/pkg/

Toi tu n'y met jamais les pieds, peut-être, mais à mon avis portage y met très très souvent les pieds. Une petite fausse manip, un petit reboot sauvage mal placé, ou juste un affaiblissement de la concentration atomique du disque dur (comme ça je raconte que des conneries :D), font que, quelques fois des fichiers très très utilisés se donnent beaucoup de mal :D.
_________________
shortbrain.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum