Donner droit d'admin dans le script

et blablabla signifie quoi ?

là, j’ai des difficultés à suivre… :open_mouth: :wink:

[quote=“BelZéButh”]Le plus simple, de mon point de vue … :083

Nota: exclureR et exclureH ==> les répertoires exclus.

  • Sauvegarde manuel.

[08:54:04]lUSER@USER:~$ su Mot de passe : [08:54:38][root@USER] ~ #

Vers dd externe.

Nota : option -n

  • Sauvegarde automatique

Crées un script à placer en tâche cron (crontab -e)[/quote]

là, j’ai compris que tu es en cron… que je n’ai pas encore “approfondi” :wink:

si tu le veux bien, je “reste” sur ce que je connais “à peu près” depuis deux ans… :wink:

lorsque je comprendrai “mieux” rsync", là je regarderai vers cron !

sauf si tu me dis que cron est plus facilement “appréhendable” que rsync :slightly_smiling:

j’ai la même à la maison… :laughing:

[quote=“ricardo”][quote=“lol”]Salut,
Sudo est pratique dans ce cas particulier.
Tu donne les droits à sudo sur la commande (rsync si j’ai bien compris), tu modifie le script en conséquence (sudo rsync) et tu lance le script en simple utilisateur.[/quote]
Voilà ce que je fais dans mon script de double sauvegarde, c’est le plus simple. Il n’empêche pas que tu devras donner ton MDP et c’est logique et souhaitable.

Script long mais simple :
https://www.isalo.org/wiki.debian-fr/Script_de_double_sauvegarde_altern%C3%A9e[/quote]

cela va donc me demander, comme à mon commentaire de 13h39 ?
voui ?

Le souhait est : qu’il monte les dd, si les dd ne sont pas montés, et lise les dossiers tels que /etc et /usr, entre autres… !

Pars du principe qu’un script est fait et appartient à ‘root’ (même s’il y a des exceptions).
Dans ce cas :
1/ Utilisateur se connecte en tant que ‘root’

2/ root écrit le script

3/ root

4/ root le rend exécutable avec la commande :

chmod +x /chemin/du/script

(le mieux, quand ce sont des scripts perso, c’est de les placer dans /usr/local/bin)

5/ root exécute le script
(on peut, éventuellement, donner le droit d’exécution (sans changer les droits du script) à l’utilisateur en ajoutant une ligne dans ‘sudoers’. Dans ce cas, le script sera lancé de la façon suivante : utilisateur$ /usr/local/bin/nom-du-script).

EDIT :
Pour ton histoire de montage de DD, lis mon script (ref un peu plus haut.)

Non !!

Je n’ai n’y script et donc encore moins une tâche cron dédié à cette effet.

J’effectue mes sauvegardes manuellement, en console !

ps : Script (qui effectue quelque chose) placé en /etc/crontab (appel avec ~ # crontab -e)

Automatise ce dernier.

D’où l’appellation tâche cron = (script lancé ) Automatique(ment)

[quote=“ricardo”]Pars du principe qu’un script est fait et appartient à ‘root’ (même s’il y a des exceptions).
Dans ce cas :
1/ Utilisateur se connecte en tant que ‘root’

2/ root écrit le script

3/ root

4/ root le rend exécutable avec la commande :

chmod +x /chemin/du/script

(le mieux, quand ce sont des scripts perso, c’est de les placer dans /usr/local/bin)

5/ root exécute le script
(on peut, éventuellement, donner le droit d’exécution (sans changer les droits du script) à l’utilisateur en ajoutant une ligne dans ‘sudoers’. Dans ce cas, le script sera lancé de la façon suivante : utilisateur$ /usr/local/bin/nom-du-script).

EDIT :
Pour ton histoire de montage de DD, lis mon script (ref un peu plus haut.)[/quote]

Ok je vais y regarder d’encore plus près :slightly_smiling:

Non !!

Je n’ai n’y script et donc encore moins une tâche cron dédié à cette effet.

J’effectue mes sauvegardes manuellement, en console !

ps : Script (qui effectue quelque chose) placé en /etc/crontab (appel avec ~ # crontab -e)

Automatise ce dernier.

D’où l’appellation tâche cron = (script lancé ) Automatique(ment)[/quote]

Merci pour les précisions, que j’ai intérêt à éviter d’oublier… c’est loin d’être gagné… car tant que je suis “dedans”… c’est frais… mais au bout de quelques jours… cela “s’efface”… :slightly_smiling:

Effectivement, hier , cela fait une paye … :laughing:

Effectivement, hier , cela fait une paye … :laughing:[/quote]

Oh… Toi, t’es un chameau… :stuck_out_tongue: :laughing:

Et j’suis pas vache… j’relève pas les fôtes… :stuck_out_tongue:

Dans cette page :
isalo.org/wiki.debian-fr/ind … par%C3%A9s
il est indiqué qu’il est possible de restaurer la racine et le home, depuis une sauvegarde, la question, idiote peut-être… est : tout est rétabli ?

ce que j’entends par là, ce sont les divers paramétrages que l’utilisateur a fait, sont-ils aussi rétablis ?

Bonne nuit :slightly_smiling:

[quote=“db871”]Dans cette page :
isalo.org/wiki.debian-fr/ind … par%C3%A9s
il est indiqué qu’il est possible de restaurer la racine et le home, depuis une sauvegarde, la question, idiote peut-être… est : tout est rétabli ?

ce que j’entends par là, ce sont les divers paramétrages que l’utilisateur a fait, sont-ils aussi rétablis ?

Bonne nuit :slightly_smiling:[/quote]

Oui !!! Absolument tout !!!

Nota : en fonction des fichiers exclureR et exclureH et du contenu ! Libre à toi … ^¿^

Et comme dit dans le tuto, rien ne t’empêches (après sauvegarde :wink: ) de restaurer sur un tout autre disque !

Qu’il soit interne/externe !!

ps : Si besoin, … je suis là !!!

* edit *

Il faudrait peut-être en terminer la rédaction d’ailleurs … C’est dit !!

[quote=“BelZéButh”][quote=“db871”]Dans cette page :
isalo.org/wiki.debian-fr/ind … par%C3%A9s
il est indiqué qu’il est possible de restaurer la racine et le home, depuis une sauvegarde, la question, idiote peut-être… est : tout est rétabli ?

ce que j’entends par là, ce sont les divers paramétrages que l’utilisateur a fait, sont-ils aussi rétablis ?

Bonne nuit :slightly_smiling:[/quote]

Oui !!! Absolument tout !!!

Nota : en fonction des fichiers exclureR et exclureH et du contenu ! Libre à toi … ^¿^

Et comme dit dans le tuto, rien ne t’empêches (après sauvegarde :wink: ) de restaurer sur un tout autre disque !

Qu’il soit interne/externe !!

ps : Si besoin, … je suis là !!!

* edit *

Il faudrait peut-être en terminer la rédaction d’ailleurs … C’est dit !![/quote]

Exact:slightly_smiling:

Juste encore une chose, pour indication dans le script, est-il utile, judicieux, etc… de sauvegarder plus un répertoire, ou dossier, plus qu’un autre, indépendamment de /home ?

Jusqu’à présent, je sauvegardais /etc, /usr, /home (sur les conseils d’un Ami linuxien :slightly_smiling: ) alors que si je faisais tout simplement " / " je sauvegarde tout… tranquille… puisque j’ai la place !

Je testerai cela sur la prochaine partition, encore disponible de mon dd, à moins qu’elle ne doive avoir exactement la même dimension, que celle sauvegardée… ?

Merci pour le ps :slightly_smiling:
P’être que j’l’userai… :wink:

Salut,

Le principe est simple en lui même.

La racine ( / ) est composée des répertoires et fichiers suivant :

:~$ cd / :/$

[code]
:/$ ls -a

. bin .config etc initrd.img .kde lost+found mnt proc run selinux sys .ure var vmlinuz.old
… boot dev home initrd.img.old lib media opt root sbin srv tmp usr vmlinuz

:/$[/code]

Tu sauvegardes la racine ( / ) en excluant les fichiers et répertoires suivants :

$ cat /root/exclureR /dev /home/USER /lost+found /tmp /mnt /proc /sys /var/cache/apt/archives

Il en va de même pour la partition /home.

À toi de déterminer les fichiers et répertoires que tu ne souhaites pas conserver, en /root/exclureH.

Perso, je garde tout !

Puisqu’à la racine, il y a bien /home… donc j’évite de m’enquiquiner à trier un tel, une telle… zou… tous dans la même sauvegarde :slightly_smiling:

à moins qu’il n’y ait une subtilité qui m’échappe…

je viens de regarder le poids de / et elle fait 30Go !

Le plus long, comme d’habitude, c’est la première sauvegarde, après, les autres se font plus rapidement, puisqu’il n’y a que les fichiers supprimés, et nouveaux qui sont supprimés ou insérés !

Concernant le script que j’ai, je lui ai donné tous les droits, il est donc en root, et je continue à avoir les mêmes exclusions qu’en utilisateur, /etc concerné, or, d’après ce que je lis, le répertoire /etc doit être sauvegardé !

Voici le backuperror.log :

rsync: opendir "/etc/cups/ssl" failed: Permission denied (13) rsync: send_files failed to open "/etc/.pwd.lock": Permission denied (13) rsync: send_files failed to open "/etc/at.deny": Permission denied (13) rsync: send_files failed to open "/etc/fuse.conf": Permission denied (13) rsync: send_files failed to open "/etc/group-": Permission denied (13) rsync: send_files failed to open "/etc/gshadow": Permission denied (13) rsync: send_files failed to open "/etc/gshadow-": Permission denied (13) rsync: send_files failed to open "/etc/passwd-": Permission denied (13) rsync: send_files failed to open "/etc/shadow": Permission denied (13) rsync: send_files failed to open "/etc/shadow-": Permission denied (13) rsync: send_files failed to open "/etc/sudoers": Permission denied (13) rsync: opendir "/etc/polkit-1/localauthority" failed: Permission denied (13) rsync: send_files failed to open "/etc/apt/trustdb.gpg": Permission denied (13) rsync: send_files failed to open "/etc/apt/trusted.gpg": Permission denied (13) rsync: send_files failed to open "/etc/cups/printers.conf": Permission denied (13) rsync: send_files failed to open "/etc/cups/printers.conf.O": Permission denied (13) rsync: send_files failed to open "/etc/cups/subscriptions.conf": Permission denied (13) rsync: send_files failed to open "/etc/cups/subscriptions.conf.O": Permission denied (13) rsync: send_files failed to open "/etc/default/cacerts": Permission denied (13) rsync: send_files failed to open "/etc/exim4/passwd.client": Permission denied (13) rsync: opendir "/etc/ssl/private" failed: Permission denied (13) rsync: send_files failed to open "/etc/ppp/chap-secrets": Permission denied (13) rsync: send_files failed to open "/etc/ppp/pap-secrets": Permission denied (13) rsync: send_files failed to open "/etc/security/opasswd": Permission denied (13) rsync: send_files failed to open "/etc/ssh/ssh_host_dsa_key": Permission denied (13) rsync: send_files failed to open "/etc/ssh/ssh_host_ecdsa_key": Permission denied (13) rsync: send_files failed to open "/etc/ssh/ssh_host_rsa_key": Permission denied (13) rsync: send_files failed to open "/etc/sudoers.d/README": Permission denied (13) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.9] rsync: opendir "/etc/cups/ssl" failed: Permission denied (13) rsync: send_files failed to open "/etc/.pwd.lock": Permission denied (13) rsync: send_files failed to open "/etc/at.deny": Permission denied (13) rsync: send_files failed to open "/etc/fuse.conf": Permission denied (13) rsync: send_files failed to open "/etc/group-": Permission denied (13) rsync: send_files failed to open "/etc/gshadow": Permission denied (13) rsync: send_files failed to open "/etc/gshadow-": Permission denied (13) rsync: send_files failed to open "/etc/passwd-": Permission denied (13) rsync: send_files failed to open "/etc/shadow": Permission denied (13) rsync: send_files failed to open "/etc/shadow-": Permission denied (13) rsync: send_files failed to open "/etc/sudoers": Permission denied (13) rsync: opendir "/etc/polkit-1/localauthority" failed: Permission denied (13) rsync: send_files failed to open "/etc/apt/trustdb.gpg": Permission denied (13) rsync: send_files failed to open "/etc/apt/trusted.gpg": Permission denied (13) rsync: send_files failed to open "/etc/cups/printers.conf": Permission denied (13) rsync: send_files failed to open "/etc/cups/printers.conf.O": Permission denied (13) rsync: send_files failed to open "/etc/cups/subscriptions.conf": Permission denied (13) rsync: send_files failed to open "/etc/cups/subscriptions.conf.O": Permission denied (13) rsync: send_files failed to open "/etc/default/cacerts": Permission denied (13) rsync: send_files failed to open "/etc/exim4/passwd.client": Permission denied (13) rsync: opendir "/etc/ssl/private" failed: Permission denied (13) rsync: send_files failed to open "/etc/ppp/chap-secrets": Permission denied (13) rsync: send_files failed to open "/etc/ppp/pap-secrets": Permission denied (13) rsync: send_files failed to open "/etc/security/opasswd": Permission denied (13) rsync: send_files failed to open "/etc/ssh/ssh_host_dsa_key": Permission denied (13) rsync: send_files failed to open "/etc/ssh/ssh_host_ecdsa_key": Permission denied (13) rsync: send_files failed to open "/etc/ssh/ssh_host_rsa_key": Permission denied (13) rsync: send_files failed to open "/etc/sudoers.d/README": Permission denied (13) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.9] lundi 26 août 2013, 09:16:05 (UTC+0200)

De plus, le fichier mes_paquets, commandé par :

indique :

j’ai déplacé ce fichier, pour vérifier s’il se recréai, mais, non !

Avant d’aller plus loin et afin de lever le doute, n’as-tu pas bidouiller les droits en /etc ?

~ # cd /etc /etc # ls -lhtra

De plus, prends la très bonne habitude d’intégrer le prompt ( ~ $ ou ~ #) de départ et fin, ainsi que la commande lancer (dans son intégralité) dans tes retours consoles.

~ $ ma_commande ... blabla ~ $

~ # ma_commande ... blabla ~ #

[quote=“BelZéButh”]Avant d’aller plus loin et afin de lever le doute, n’as-tu pas bidouiller les droits en /etc ?

~ # cd /etc /etc # ls -lhtra[/quote]

et voici le résultat :

root@Bernard:/home/bernard# cd /etc root@Bernard:/etc# ls -lhtra total 1,2M -rw-r--r-- 1 root root 9 août 7 2006 host.conf -rw-r--r-- 1 root root 11K avril 4 2007 gnome-vfs-mime-magic -rw-r--r-- 1 root root 112 juin 20 2007 apg.conf -rw-r--r-- 1 root root 1,3K mai 30 2008 ucf.conf -rw-r--r-- 1 root root 599 févr. 19 2009 logrotate.conf -rw-r--r-- 1 root root 284 sept. 25 2010 updatedb.conf -rw-r--r-- 1 root root 767 mai 2 2011 netconfig -rw-r--r-- 1 root root 851 juil. 29 2011 profile -rw-r--r-- 1 root root 125 nov. 20 2011 mail.rc -rw-r--r-- 1 root root 572 janv. 31 2012 usb_modeswitch.conf -rw-r--r-- 1 root root 191 janv. 31 2012 libaudit.conf -rw-r--r-- 1 root root 24K févr. 12 2012 mime.types -rw-r--r-- 1 root root 449 févr. 12 2012 mailcap.order -rw-r--r-- 1 root root 645 mars 24 2012 ts.conf -rw-r--r-- 1 root root 346 mars 30 2012 discover-modprobe.conf -rw-r--r-- 1 root root 4,4K avril 10 2012 wgetrc -rw-r--r-- 1 root root 552 avril 29 2012 pam.conf drwxr-xr-x 2 root root 4,0K mai 10 2012 libpaper.d -rw-r--r-- 1 root root 19K mai 14 2012 services -rw-r--r-- 1 root root 887 mai 14 2012 rpc -rw-r--r-- 1 root root 2,9K mai 14 2012 protocols -rw-r--r-- 1 root root 604 mai 15 2012 deluser.conf -rw-r--r-- 1 root root 2,1K mai 20 2012 sysctl.conf -rw-r--r-- 1 root root 401 mai 22 2012 anacrontab -rw-r--r-- 1 root root 3,9K mai 25 2012 securetty -rw-r--r-- 1 root root 10K mai 25 2012 login.defs -rw-r--r-- 1 root root 871 juin 1 2012 colord.conf -rw-r--r-- 1 root root 26 juin 2 2012 libao.conf -rw-r--r-- 1 root root 11K juin 3 2012 sensors3.conf -rw-r--r-- 1 root root 834 juin 8 2012 gssapi_mech.conf -rw-r--r-- 1 root root 771 juin 9 2012 staff-group-for-usr-local -rw-r----- 1 root daemon 144 juin 9 2012 at.deny -rw-r--r-- 1 root root 45 juin 17 2012 bash_completion -rw-r--r-- 1 root root 5,1K juin 18 2012 manpath.config -rw-r--r-- 1 root root 8,3K juin 22 2012 nanorc -rw-r--r-- 1 root root 4,7K juin 24 2012 hdparm.conf -rw-r--r-- 1 root root 690 juin 30 2012 gnashthumbnailrc -rw-r--r-- 1 root root 5,5K juin 30 2012 gnashrc -rw-r--r-- 1 root root 580 juin 30 2012 gnashpluginrc -rw-r--r-- 1 root root 111 juin 30 2012 magic.mime -rw-r--r-- 1 root root 111 juin 30 2012 magic -rw-r--r-- 1 root root 722 juil. 3 2012 crontab -rw-r--r-- 1 root root 6,6K juil. 9 2012 hddtemp.db -rw-r--r-- 1 root root 4,5K août 29 2012 Muttrc -rw-r--r-- 1 root root 5,0K sept. 16 2012 rygel.conf -rw-r--r-- 1 root root 597 oct. 24 2012 drirc -rw-r--r-- 1 root root 859 nov. 23 2012 insserv.conf -rw-r--r-- 1 root root 7,3K déc. 4 2012 bogofilter.cf drwxr-xr-x 2 root root 4,0K déc. 8 2012 usb_modeswitch.d drwxr-xr-x 2 root root 4,0K déc. 9 2012 fstab.d -rw-r--r-- 1 root root 1,3K déc. 12 2012 bootchartd.conf -rw-r--r-- 1 root root 2,9K déc. 26 2012 debconf.conf -rw-r--r-- 1 root root 356 déc. 30 2012 bindresvport.blacklist -rw-r--r-- 1 root root 2,9K déc. 30 2012 gai.conf -rw-r--r-- 1 root root 2,6K déc. 30 2012 locale.alias -rw-r--r-- 1 root root 1,7K déc. 30 2012 inputrc -rw-r--r-- 1 root root 1,9K janv. 1 2013 bash.bashrc -rw-r----- 1 root fuse 216 janv. 2 2013 fuse.conf -rwxr-xr-x 1 root root 268 janv. 2 2013 rmt -rw-r--r-- 1 root root 312 janv. 2 2013 email-addresses -rw-r--r-- 1 root root 2,0K févr. 8 2013 inittab -r--r----- 1 root root 669 mars 1 06:44 sudoers -rw-r--r-- 1 root root 2,6K mars 5 23:07 rsyslog.conf drwxr-xr-x 2 root root 4,0K mars 5 23:32 rsyslog.d -rw-r--r-- 1 root root 3,1K mars 12 23:45 reportbug.conf -rw-r--r-- 1 root root 956 mars 21 02:18 mke2fs.conf -rw-r--r-- 1 root root 214 mai 11 14:38 idmapd.conf -rw-r--r-- 1 root root 4 juin 2 22:00 debian_version -rw-r--r-- 1 root root 250 juin 4 16:43 os-release -rw-r--r-- 1 root root 286 juin 4 16:43 motd -rw-r--r-- 1 root root 19 juin 4 16:43 issue.net -rw-r--r-- 1 root root 26 juin 4 16:43 issue -rw-r--r-- 1 root root 734 août 22 20:40 fstab drwxr-xr-x 3 root root 4,0K août 22 20:41 insserv drwxr-xr-x 2 root root 4,0K août 22 20:41 opt -rw-r--r-- 1 root root 34 août 22 20:41 ld.so.conf drwxr-xr-x 2 root root 4,0K août 22 20:41 terminfo drwxr-xr-x 2 root root 4,0K août 22 20:41 selinux drwxr-xr-x 2 root root 4,0K août 22 20:41 ld.so.conf.d drwxr-xr-x 4 root root 4,0K août 22 20:41 dpkg drwxr-xr-x 2 root root 4,0K août 22 20:41 skel -rw-r--r-- 1 root root 73 août 22 20:41 shells -rw-r--r-- 1 root root 0 août 22 20:41 environment -rw------- 1 root root 0 août 22 20:41 .pwd.lock -rwxr-xr-x 1 root root 306 août 22 20:41 rc.local drwxr-xr-x 3 root root 4,0K août 22 20:42 systemd -rw-r--r-- 1 root root 60 août 22 20:42 networks -rw-r--r-- 1 root root 3,0K août 22 20:42 adduser.conf drwxr-xr-x 2 root root 4,0K août 22 20:42 iproute2 drwxr-xr-x 2 root root 4,0K août 22 20:42 calendar drwxr-xr-x 2 root root 4,0K août 22 20:42 cron.hourly drwxr-xr-x 4 root root 4,0K août 22 20:42 dhcp drwxr-xr-x 2 root root 4,0K août 22 20:42 vim drwxr-xr-x 6 root root 4,0K août 22 20:42 network drwxr-xr-x 2 root root 4,0K août 22 20:42 groff drwxr-xr-x 4 root root 4,0K août 22 20:42 udev -rw-r--r-- 1 root root 8 août 22 20:42 hostname -rw-r--r-- 1 root root 202 août 22 20:42 hosts -rw-r--r-- 1 root root 8,4K août 22 20:42 locale.gen -rw-r--r-- 1 root root 13 août 22 20:42 timezone -rw-r--r-- 1 root root 2,9K août 22 20:42 localtime drwxr-xr-x 5 root root 4,0K août 22 20:42 initramfs-tools drwxr-xr-x 2 root root 4,0K août 22 20:43 kbd drwxr-xr-x 2 root root 4,0K août 22 20:43 console-setup drwxr-xr-x 2 root root 4,0K août 22 20:45 discover.conf.d -rw-r--r-- 1 root root 351 août 22 20:45 popularity-contest.conf drwxr-xr-x 5 root root 4,0K août 22 20:56 ConsoleKit drwxr-xr-x 5 root root 4,0K août 22 20:56 polkit-1 drwxr-xr-x 4 root root 4,0K août 22 20:57 ghostscript drwxr-xr-x 5 root root 4,0K août 22 20:57 gconf drwxr-xr-x 3 root root 4,0K août 22 20:57 emacs drwxr-xr-x 4 root root 4,0K août 22 20:57 perl drwxr-xr-x 5 root root 4,0K août 22 20:57 pm drwxr-xr-x 3 root root 4,0K août 22 21:00 ifplugd drwxr-xr-x 3 root root 4,0K août 22 21:00 dhcp3 drwxr-xr-x 3 root root 4,0K août 22 21:00 ca-certificates drwxr-xr-x 3 root root 4,0K août 22 21:01 texmf drwxr-xr-x 3 root root 4,0K août 22 21:01 apm drwxr-xr-x 3 root root 4,0K août 22 21:01 hotplug drwxr-xr-x 3 root root 4,0K août 22 21:01 resolvconf drwxr-xr-x 3 root root 4,0K août 22 21:02 gimp drwxr-xr-x 3 root root 4,0K août 22 21:02 pkcs11 drwxr-xr-x 5 root root 4,0K août 22 21:03 iceweasel drwxr-xr-x 3 root root 4,0K août 22 21:03 gnome-vfs-2.0 drwxr-xr-x 3 root root 4,0K août 22 21:03 sound drwxr-xr-x 2 root root 4,0K août 22 21:07 menu drwxr-xr-x 2 root root 4,0K août 22 21:08 profile.d drwxr-xr-x 2 root root 4,0K août 22 21:08 ldap -rw-r--r-- 1 root root 880 août 22 21:08 hosts.deny -rw-r--r-- 1 root root 580 août 22 21:08 hosts.allow drwxr-xr-x 4 root root 4,0K août 22 21:09 fonts drwxr-xr-x 4 root root 4,0K août 22 21:09 dbus-1 -rw-r--r-- 1 root root 3 août 22 21:09 papersize drwxr-xr-x 4 root root 4,0K août 22 21:09 ssl drwxr-xr-x 2 root root 4,0K août 22 21:09 gtk-3.0 drwxr-xr-x 2 root root 4,0K août 22 21:10 gtk-2.0 drwxr-xr-x 2 root root 4,0K août 22 21:10 python2.7 drwxr-xr-x 2 root root 4,0K août 22 21:10 python drwxr-xr-x 3 root root 4,0K août 22 21:10 foomatic drwxr-xr-x 2 root root 4,0K août 22 21:10 UPower drwxr-xr-x 2 root root 4,0K août 22 21:11 python2.6 drwxr-xr-x 2 root root 4,0K août 22 21:11 bluetooth drwxr-xr-x 2 root root 4,0K août 22 21:11 ImageMagick drwxr-xr-x 2 root root 4,0K août 22 21:11 obex-data-server drwxr-xr-x 2 root root 4,0K août 22 21:11 gnome drwxr-xr-x 2 root root 4,0K août 22 21:12 openal drwxr-xr-x 2 root root 4,0K août 22 21:12 wildmidi drwxr-xr-x 2 root root 4,0K août 22 21:12 libnl-3 drwxr-xr-x 2 root root 4,0K août 22 21:12 sensors.d drwxr-xr-x 2 root root 4,0K août 22 21:12 wpa_supplicant drwxr-xr-x 5 root root 4,0K août 22 21:12 NetworkManager -rw-r--r-- 1 root root 7,0K août 22 21:12 ca-certificates.conf drwxr-xr-x 3 root root 4,0K août 22 21:12 .java -rw-r--r-- 1 root root 199 août 22 21:13 aliases -rw-r--r-- 1 root root 15 août 22 21:13 mailname drwxr-xr-x 3 root root 4,0K août 22 21:13 exim4 drwxr-xr-x 2 root root 4,0K août 22 21:13 Muttrc.d drwxr-xr-x 2 root root 4,0K août 22 21:13 w3m drwxr-xr-x 2 root root 4,0K août 22 21:13 cron.monthly drwxr-xr-x 2 root root 4,0K août 22 21:13 cron.d drwxr-xr-x 2 root root 4,0K août 22 21:13 at-spi2 drwxr-xr-x 2 root root 4,0K août 22 21:14 timidity drwxr-xr-x 2 root root 4,0K août 22 21:14 sudoers.d drwxr-xr-x 3 root root 4,0K août 22 21:14 PackageKit drwxr-xr-x 2 root root 4,0K août 22 21:14 pulse drwxr-xr-x 4 root root 4,0K août 22 21:14 speech-dispatcher drwxr-xr-x 2 root root 4,0K août 22 21:14 bonobo-activation drwxr-xr-x 4 root root 4,0K août 22 21:14 xdg drwxr-xr-x 2 root root 4,0K août 22 21:15 snmp drwxr-xr-x 2 root root 4,0K août 22 21:15 hp drwxr-xr-x 2 root root 4,0K août 22 21:15 clutter-imcontext -rw-r--r-- 1 root root 513 août 22 21:15 nsswitch.conf drwxr-xr-x 4 root root 4,0K août 22 21:15 security drwxr-xr-x 2 root root 4,0K août 22 21:15 purple drwxr-xr-x 2 root root 4,0K août 22 21:15 menu-methods drwxr-xr-x 7 root root 4,0K août 22 21:15 ppp drwxr-s--- 2 root dip 4,0K août 22 21:15 chatscripts -rw-r--r-- 1 root root 7,5K août 22 21:15 pnm2ppa.conf drwxr-xr-x 2 root root 4,0K août 22 21:16 sysctl.d drwxr-xr-x 2 root root 4,0K août 22 21:16 icedtea-web drwxr-xr-x 5 root root 4,0K août 22 21:16 java-6-openjdk drwxr-xr-x 4 root root 4,0K août 22 21:16 mono drwxr-xr-x 2 root root 4,0K août 22 21:17 libreoffice drwxr-xr-x 3 root root 4,0K août 22 21:17 sane.d drwxr-xr-x 2 root root 4,0K août 22 21:17 insserv.conf.d drwxr-xr-x 6 root root 4,0K août 22 21:17 gdm3 drwxr-xr-x 9 root root 4,0K août 22 21:17 X11 drwxr-xr-x 3 root root 4,0K août 22 21:17 sgml drwxr-xr-x 3 root root 4,0K août 22 21:17 xml -rw-r--r-- 1 root root 144 août 22 21:39 kernel-img.conf lrwxrwxrwx 1 root root 12 août 22 22:07 mtab -> /proc/mounts drwxr-xr-x 2 root root 4,0K août 22 22:20 init drwxr-xr-x 2 root root 4,0K août 22 22:21 grub.d drwxr-xr-x 2 root root 4,0K août 22 22:23 chromium -rw-r--r-- 1 root root 22K août 22 22:26 mailcap drwxr-xr-x 2 root root 4,0K août 22 23:11 console-tools drwxr-xr-x 2 root root 4,0K août 22 23:11 rcS.d drwxr-xr-x 6 root root 4,0K août 22 23:11 kernel drwxr-xr-x 3 root root 4,0K août 22 23:11 doc-base drwxr-xr-x 3 root root 4,0K août 22 23:12 ufw drwxr-xr-x 4 root root 4,0K août 22 23:12 logcheck drwxr-xr-x 3 root root 4,0K août 22 23:12 avahi -rw------- 1 root root 732 août 22 23:12 gshadow- -rw------- 1 root root 874 août 22 23:12 group- drwxr-xr-x 3 root root 4,0K août 22 23:12 dkms drwxr-xr-x 2 root root 4,0K août 22 23:14 pcmcia drwxr-xr-x 3 root root 4,0K août 22 23:14 acpi drwxr-xr-x 2 root root 4,0K août 22 23:14 logrotate.d drwxr-xr-x 7 root root 4,0K août 22 23:14 apache2 drwxr-xr-x 2 root root 4,0K août 22 23:14 bash_completion.d drwxr-xr-x 2 root root 4,0K août 22 23:14 cron.daily drwxr-xr-x 2 root root 4,0K août 22 23:14 cron.weekly drwxr-xr-x 2 root root 4,0K août 22 23:14 dwww drwxr-xr-x 2 root root 4,0K août 22 23:15 ssh -rw------- 1 root root 1,2K août 22 23:15 shadow- -rw------- 1 root root 1,7K août 22 23:15 passwd- -rw-r--r-- 1 root root 1,7K août 22 23:15 passwd -rw-r----- 1 root shadow 1,2K août 22 23:15 shadow -rw-r--r-- 1 root root 885 août 22 23:15 group -rw-r----- 1 root shadow 740 août 22 23:15 gshadow drwxr-xr-x 2 root root 4,0K août 22 23:17 pam.d drwxr-xr-x 2 root root 4,0K août 22 23:17 modprobe.d drwxr-xr-x 2 root root 4,0K août 22 23:17 rc1.d drwxr-xr-x 2 root root 4,0K août 22 23:17 rc0.d drwxr-xr-x 2 root root 4,0K août 22 23:17 rc6.d -rw-r--r-- 1 root root 76K août 22 23:17 ld.so.cache drwxr-xr-x 3 root root 4,0K août 22 23:17 vmware-tools drwxr-xr-x 2 root root 4,0K août 22 23:17 dictionaries-common -rw-r--r-- 1 root root 435 août 24 11:43 fancontrol drwxr-xr-x 6 root root 4,0K août 24 12:23 apt -rw-r--r-- 1 root root 336 août 24 13:26 modules drwxr-xr-x 2 root root 4,0K août 24 13:59 init.d drwxr-xr-x 3 root root 4,0K août 24 13:59 default drwxr-xr-x 2 root root 4,0K août 24 13:59 rc2.d drwxr-xr-x 2 root root 4,0K août 24 13:59 rc4.d drwxr-xr-x 2 root root 4,0K août 24 13:59 rc3.d drwxr-xr-x 2 root root 4,0K août 24 13:59 rc5.d drwxr-xr-x 2 root root 12K août 24 18:22 alternatives drwxr-xr-x 23 root root 4,0K août 25 22:33 .. -rw-r--r-- 1 root root 657 août 25 22:39 blkid.tab.old -rw-r--r-- 1 root root 657 août 25 22:39 blkid.tab -rw-r--r-- 1 root root 48 août 25 23:22 adjtime drwxr-xr-x 2 root root 4,0K août 26 07:42 samba -rw-r--r-- 1 root root 25 août 26 07:42 resolv.conf drwxr-xr-x 138 root root 12K août 26 07:42 . drwxr-xr-x 4 root lp 4,0K août 26 11:18 cups root@Bernard:/etc#

jusqu’à ce jour, je n’ai rien toucher aux divers droits, sauf à mon script de sauvegarde, qui merdoye pour le moment…

[quote=“BelZéButh”]De plus, prends la très bonne habitude d’intégrer le prompt ( ~ $ ou ~ #) de départ et fin, ainsi que la commande lancer (dans son intégralité) dans tes retours consoles.

~ $ ma_commande ... blabla ~ $

~ # ma_commande ... blabla ~ # [/quote]

Je le note et c’est ce que je fais… chef… :stuck_out_tongue: :wink:

les autres indications que j’ai données, précédemment, sont des extraits de fichiers .sh et .log , que je peux donner intégralement, il n’y a rien de secret dedans :wink:

[code]~ # chown root:root /usr/local/Sauvegarde_Debian.sh[/code]
[code]~ # chmod a+x /usr/local/Sauvegarde_Debian.sh[/code]

Et [u]à toi[/u] de vérifier si le contenu de [url=https://www.debian-fr.org/script-de-sauvegarde-qui-fonctionnait-t44774.html#p449966]ton script[/url]  doit être modifier en conséquence.

Chose que je ne ferai, pour l'heure ...

[code]~ # Sauvegarde_Debian.sh[/code]

Et à toi de vérifier si le contenu de ton script doit être modifier en conséquence.

Chose que je ne ferai, pour l’heure …

On peut conserver tout sauf le dossier où est monté le DD de sauvegarde, sinon, il y a un fort risque de “tourner en rond”.

Bien vu !! :023

J’ai omis (involontairement) de le faire paraître.