aide avec CHMOD et probablement CHOWN
Mathieu Charron
elwillow at gmail.com
Mer 11 Juin 18:58:24 BST 2008
Bonjours,
ca peu pas être pire que "rm -r /" ;)
anyway, vérifie les permissions pour ton home: /home/formol de manière
récursive (attention par contre)
j'ai jamais pris les droits sur un dossier dans /media mais cela ne devrait
pas affecter firefox ou thunderbird, juste les auto-mounts.
si tu veux changer les droits de manière récursive, utilise "-r" mais
attention où!
bonne chance.
- Mat
On Wed, Jun 11, 2008 at 8:56 AM, Marc-Antoine Daneau <
daneau.marc-antoine at videotron.ca> wrote:
> bonjour david, bonjour autres personnes qui recevez ce courriel et pourrez
> rire de moi,
>
> j'ai fais les commandes que que m'a indiqué.
>
> avec ça me répondait 'command not found'. je l'ai donc fait en root par
> après
>
> puis "history" tout seul puis un en superuser, qui sont copier un peu plus
> bas. j'ai mis le plus ridicule en caractère gras. ça semble tellement
> stupide ce matin que j'ai l'impression que les gens vont me pointer du doigt
> dans le métro tout à l'heure...
>
> (et maintenant, je peux ouvrir firefox normallement, mais pas thunderbird,
> et je n'ai pas plus aucune idée pourquoi.)
>
> merci beaucoup,
> marc-antoine
>
>
> formol at ubuntu-desktop:~$ history | grep chmod
> 120 sudo chmod 0777 /media/HD1
> 121 sudo chmod 0777 /media
> 122 sudo chmod 0777 /
> 125 sudo chmod rx /
> 127 chmod --help
> 131 sudo chmod 715 /
> 137 history | grep chmod -v
> 138 sudo history | grep chmod -v
> 149 history | grep chmod
>
> formol at ubuntu-desktop:~$ history | grep chown
> 135 history | grep chown
> 136 history | grep chown -v
> 143 history | grep chown
> 148 history | grep chown
>
> formol at ubuntu-desktop:~$ sudo history | grep chown
> sudo: history: command not found
> formol at ubuntu-desktop:~$ sudo history | grep chmod
> sudo: history: command not found
>
> root at ubuntu-desktop:/home/formol# history | grep chmod
> 127 chmod formol=r /
> 128 chmod u=r /
> 129 chmod u=rxw /media
> 130 chmod 777 /media/HD1 *
> 131 chmod 777 /media/HD1/Pictures
> 137 history | grep chmod
>
> root at ubuntu-desktop:/home/formol# history | grep chown
> 132 chown formol /media
> 133 chown formol /media/HD1
> 134 chown formol /
> 135 chown root /
> 138 history | grep chown
>
> *history:*
> formol at ubuntu-desktop:~$ history
> 1 sudo apt-get update
> 2 sudo apt-get upgrade
> 3 sudo apt-get install ubuntu-desktop
> 4 dpkg --configure -a
> 5 sudo dpkg --configure -a
> 6 sudo apt-get install ubuntu-desktop
> 7 sudo apt-get update
> 8 sudo apt-get upgrade
> 9 sudo apt-get update
> 10 sudo apt-get install ubuntu-desktop
> 11 sudo apt-get audacious amsn gparted
> 12 sudo apt-get install audacious amsn gparted
> 13 sudo apt-get update
> 14 sudo apt-get upgrade
> 15 sudo apt-get install ubuntu-desktop
> 16 gksu update-manager -c
> 17 gksu update-manager
> 18 gksu
> 19 omot 6
> 20 sudo init 6
> 21 lspci
> 22 sudo dpkg-reconfigure xserver-xorg
> 23 sudo apt-get install envy
> 24 sudo sh
> http://us.download.nvidia.com/XFree86/Linux-x86/173.14.05/NVIDIA-Linux-x86-173.14.05-pkg1.run
> 25 sudo su
> 26 cd Documents/
> 27 cd Applications/
> 28 ls
> 29 sudo sh NVIDIA-Linux-x86-173.14.05-pkg1.run
> 30 init 6
> 31 sudo init 6
> 32 sudo apt-get remove envyng-gtk
> 33 sudo apt-get remove envyng
> 34 sudo apt-get remove envyng-core
> 35 sudo su
> 36 sudo /etc/init.d/gdm stop
> 37 ls
> 38 cd Documents/
> 39 cd Applications/
> 40 ls
> 41 sudo sh NVIDIA-Linux-x86-173.14.05-pkg1.run
> 42 init 6
> 43 sudo init 6
> 44 uname -r
> 45 sudo su
> 46 uname -r
> 47 apt-get remove envy
> 48 sudo su
> 49 gedit /etc/X11/xorg.conf
> 50 nvidia-setting
> 51 nvidia-installer
> 52 sudo nvidia-installer
> 53 sudo su
> 54 sudo su<
> 55 sudo su
> 56 sudo apt-get remove envyng-gtk
> 57 sudo apt-get remove envyng-qt
> 58 sudo apt-get remove envyng-core
> 59 sudo su
> 60 cd /etc/X11
> 61 ls
> 62 sudo su
> 63 cd Documents/
> 64 cd Applications/
> 65 ls
> 66 cd alsa-driver-1.0.16/
> 67 ls
> 68 ./configure
> 69 make
> 70 sudo make install
> 71 aplay -l
> 72 lspci -v
> 73 lspci
> 74 cat /proc/asound/card0/codec#* | grep Codec
> 75 gedit /boot/grub/menu.lst
> 76 /etc/init.d/gdm stop
> 77 sudo /etc/init.d/gdm stop
> 78 sh
> /home/formol/Documents/Applications/NVIDIA-Linux-x86-173.14.05-pkg1.run
> 79 sudo su
> 80 sudo lshw -C sound
> 81 sudo apt-get install build-essential
> 82 sudo apt-get install linux-headers
> 83 uname -r
> 84 sudo apt-get install linux-headers-2.6.24-18-generic
> 85 sudo init 6
> 86 sudo nautilus
> 87 sudo su
> 88 /etc/init.d/gdm stot
> 89 /etc/init.d/gdm stop
> 90 sudo /etc/init.d/gdm stop
> 91 sudo /etc/init.d/gdm start
> 92 sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O
> /etc/apt/sources.list.d/medibuntu.list
> 93 sudo apt-get update && sudo apt-get install medibuntu-keyring &&
> sudo apt-get update
> 94 sudo apt-get install libdvdcss2
> 95 sudo apt-get install w32codecs
> 96 wget -c
> http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.9-2medibuntu4_i386.deb
> 97 sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_i386.deb
> 98 wget -c
> http://packages.medibuntu.org/pool/non-free/w/w32codecs/w32codecs_20071007-0medibuntu2_i386.deb
> 99 sudo dpkg -i w32codecs_20071007-0medibuntu2_i386.deb
> 100 sudo apt-get install
> 101 sudo apt-get install libdvdcss2 w32codecs
> 102 apt-get -f install
> 103 sudo su
> 104 cp
> 105 cp --help
> 106 cd /media
> 107 ls
> 108 cd LOCAL\ DISK/
> 109 ls
> 110 cp -v /formol /media/HD1/Documents/
> 111 cp -v /media/LOCAL\ DISK/formol /media/HD1/Documents/
> 112 cp -v /media/LOCAL\ DISK/formol/* /media/HD1/Documents/formol
> 113 sudo cp -v /media/LOCAL\ DISK/formol/* /media/HD1/Documents/formol
> 114 sudo nautilus
> 115 sudo apt-get mplayer
> 116 audacious --play
> /media/HD1/Documents/Alarm/02-Down_In_It_(Shred).mp3
> 117 sudo nautilus
> 118 sudo thunderbird
> 119 sudo firefox
> * 120 sudo chmod 0777 /media/HD1
> 121 sudo chmod 0777 /media
> 122 sudo chmod 0777 /
> 123 sudo firefox
> 124 ls -l /
> 125 sudo chmod rx /
> 126 chemod --help
> 127 chmod --help
> 128 sudo nautlius
> 129 sudo nautilus
> 130 sudo su
> 131 sudo chmod 715 /*
> 132 ls -l /
> 133 ls -l /media
> 134 ls -l /media/HD1
> 135 history | grep chown
> 136 history | grep chown -v
> 137 history | grep chmod -v
> 138 sudo history | grep chmod -v
> 139 sudo history | grep -v
> 140 sudo history | grep
> 141 grep --help
> 142 history | grep
> 143 history | grep chown
> 144 history | grep -v --mmp
> 145 history | grep -v --mmap
> 146 history | grep --mmap
> 147 history
>
> root at ubuntu-desktop:/home/formol# history
> 1 mkdir /media/cdrom
> 2 mount /dev/cdrom media/cdrom
> 3 mount /dev/cdrom media/cdrom2
> 4 mkdir /media/cdrom2
> 5 mount /dev/cdrom media/cdrom2
> 6 mount /dev/cdrom /media/cdrom
> 7 cd /media/cdrom
> 8 ls
> 9 cd /etc
> 10 ls
> 11 cd X11
> 12 ls
> 13 cp xorg.conf xorg.conf_
> 14 ls
> 15 rm xorg.conf
> 16 ls
> 17 cp /media/cdrom/xorg.conf /etc/X11
> 18 ls
> 19 xstart
> 20 xstar
> 21 init 6
> 22 sh
> /home/formol/Documents/Applications/NVIDIA-Linux-x86-173.14.05-pkg1.run
> 23 sudo apt-get remove envy
> 24 apt-get remove envyng
> 25 rm -R /usr/share/envy
> 26 apt-get install envyng-gtk
> 27 apt-get install envyng-qt
> 28 apt-get install envyng-core
> 29 envyng -t
> 30 python pulse.py nvidia latest
> 31 cd Do
> 32 cd /Do
> 33 ls
> 34 dir
> 35 cd ..
> 36 ls
> 37 cd home
> 38 ls
> 39 cd formol
> 40 ls
> 41 cd Documents/
> 42 ls
> 43 cd Applications/
> 44 sudo sh NVIDIA-Linux-x86-173.14.05-pkg1.run
> 45 telinit 3
> 46 init 6
> 47 nvidia-xconfig
> 48 sudo gedit /etc/default/linux-restricted-modules-common
> 49 sudo apt-get install linux-headers-`uname -r` build-essential gcc
> xserver-xorg-dev
> 50 sudo apt-get --purge remove nvidia-glx nvidia-glx-new
> nvidia-settings nvidia-kernel-common
> 51 sudo rm /etc/init.d/nvidia-*
> 52 rm /lib/linux-restricted-modules/.nvidia_new_installed
> 53 nvidia-xconfig
> 54 apt-get install nvidia-xconfig nvidia-glx nvidia-glx-new
> 55 apt-get install 169.12+2.6.24.13-18.41
> 56 gedit /boot/grub/menu.lst
> 57 gedit /boot/grub/menu.lst
> 58 python pulse.py nvidia
> 59 apt-get remove envy
> 60 apt-get autoremove
> 61 apt-get remove envyng
> 62 rm -R /usr/share/envy
> 63 apt-get install envyng-gtk
> 64 apt-get install envyng-qt
> 65 apt-get install envyng-core
> 66 nvidia-xconfig
> 67 ls
> 68 cd Documents/
> 69 cd Applications/
> 70 /etc/init.d/gdm
> 71 /etc/init.d/gdm stop
> 72 sh NVIDIA-Linux-x86-173.14.05-pkg1.run
> 73 nvidia-xconfig
> 74 gksu nvidia-settings
> 75 nvidia-xconfig
> 76 modprobe nvidia
> 77 sudo apt-get install linux-headers-`uname -r` build-essential gcc
> xserver-xorg-dev
> 78 sudo apt-get --purge remove nvidia-glx nvidia-glx-new
> nvidia-settings nvidia-kernel-common
> 79 sudo rm /etc/init.d/nvidia-*
> 80 sudo rm /etc/init.d/nvidia-*
> 81 ls /etc/init.d
> 82 uname -r
> 83 nvidia
> 84 nvidia-xconfig
> 85 nvidia-xconfig
> 86 gedit /etc/default/linux-restricted-modules-common
> 87 nvidia-xconfig
> 88 apt-get install build-essential
> 89 modprobe nvidia
> 90 /etc/init.d/gdm stop
> 91 sh
> /home/formol/Documents/Applications/NVIDIA-Linux-x86-173.14.05-pkg1.run
> 92 sh
> /home/formol/Documents/Applications/NVIDIA-Linux-x86-173.14.05-pkg1.run
> 93 /etc/init.d/gdm start
> 94 /etc/init.d/gdm stop
> 95 /etc/init.d/gdm start
> 96 python pulse.py nvidia uninstall
> 97 nvidia
> 98 nvidia-xconfig
> 99 aptitude purge envyng
> 100 aptitude purge envy
> 101 rm -R /usr/share/envy
> 102 cp xorg.conf xorg.conf_1
> 103 rm xorg.conf
> 104 ls
> 105 cp /media/cdrom0/xorg.conf /etc/x11
> 106 ls
> 107 cp /media/cdrom0/xorg.conf /etc/x11
> 108 ls x*
> 109 gedit /media/cdrom0/xorg.conf
> 110 sudo nautilus
> 111 apt-get install compizconfig-settings-manager
> 112 apt-get install gstreamer
> 113 sh
> /home/formol/Documents/Applications/NVIDIA-Linux-x86-173.14.05-pkg1.run
> 114 /etc/init.d/gdm start
> 115 /etc/init.d/gdm stop
> 116 /etc/init.d/gdm start
> 117 apt-get install ffmpeg mencoder
> 118 cp /media/ParkZoo/-video-/* /media/HD1/Vidéoclip
> 119 apt-get -f install
> 120 apt-get update
> 121 apt-get --fix-missing
> 122 apt-get install libstdc++5
> 123 apt-get install libstdc++5
> 124 apt-get install gcc-3.3-base
> 125 apt-get -f install gcc-3.3-base
> 126 apt-get -f install
> * 127 chmod formol=r /
> 128 chmod u=r /
> 129 chmod u=rxw /media
> 130 chmod 777 /media/HD1 *
> 131 chmod 777 /media/HD1/Pictures
> 132 chown formol /media
> 133 chown formol /media/HD1
> 134 chown formol /
> 135 chown root /*
> 136 history
>
>
>
>
>
> David Tremblay wrote:
>
> Le mercredi 11 juin 2008 à 00:37 -0400, Marc-Antoine Daneau a écrit :
>
>
> bonjour,
>
> je requière humblement votre aide, à force d'essayer de régler un
> problème d'origine inconnu, je suis en train de toute "fucké" mes
> permissions sur mon ordi.
>
> origine du problème : inconnu
>
> moment où le problème est arrivé : la dernière chose que j'ai fais a été
> de me créer un compte dans wikipedia, donc rien à voir avec les "owner"
> et les permissions
>
> comment je m'en suis rendu compte : en partant firefox, il s'ouvre mais
> ne load rien, plus de favori, rien. idem pour thunderbird.
> --- mais je peux démarrer normallement firefox et thunderbird avec la
> commande sudo dans le terminal
>
> donc, j'ai essayer différent trucs avec CHMOD et CHOWN mais j'ai la
> "vague" impression que plus j'essaie de choses, plus je les empire, je
> solicite donc votre aide.
>
> je veux :
>
> - rétablir les droits normaux pour le système "/"
> - avoir accès depuis mon user normal (formol) pour mon disque principal
> qui est partiellement barré, c'est /media/HD1 pour mon user normal.
>
>
> Je pense que l'origine du problème soit l'ouverture d'un compte dans
> wikipedia
>
> Pourriez vous nous dire si vous avez changé permissions et propriétaire
> en dehors de votre home ?
>
> Pourriez vous faire un résumé des changements ? vous pouvez accéder à
> l'historique de vos commande en faisant history
>
> vous pouvez faire la liste des chmod et chown avec
>
> history | grep chown
>
> history | grep chmod
>
> si vous étiez admin à ce moment faites les commandes précédentes avec
> sudo
>
>
> Ça me fait penser à un truc que j'ai trouvé je ne sais plus où : "to
> mess a windows box you have to work ON it, to mess a linux box you have
> to work AT it"
>
>
>
>
>
>
>
>
> --
> Ubuntu-quebec mailing list
> Ubuntu-quebec at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-quebec
>
>
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: https://lists.ubuntu.com/archives/ubuntu-quebec/attachments/20080611/56f77ac4/attachment-0001.htm
Plus d'informations sur la liste de diffusion Ubuntu-quebec