Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/12/2008, à 23:05

Mieg

Crétion d'un script pour déteindre son pc après un certain délais

Bonjour,

J'ai posté dans les truc et astuces un message. Seulement j'ai encore des questions le concernant.


Bonjour !

Je suis sur Ubuntu 8.04.1.

Avant j'utilisais Gshutdown pour éteindre mon ordinateur après un certain délais, seulement il ne fonctionne plus.
J'ai fini alors par utiliser la ligne de code :

Code:

sudo shutdown -h +[le nombre de minutes]

Seulement, lorsque je veux éteindre mon pc après un certain délais c'est souvent parce que je suis fatigué.  J'ai donc la flemme de réécrire cette commande à chaque fois tongue.

Je l'ai donc écrit dans un fichier .sh . Ainsi je n'ai plus qu'a double cliquer dessus et choisir "lancer dans un terminal".

Voilà, ma question est comment faire en sorte qu'il ne me demande pas mon mot de passe (sudo) à chaque fois ?
Ou comment faire pour que shutdown n'ai pas besoin du sudo ?

A oui, et si jamais je le lance par mégarde, comment annuler cette commande ?

Merci à tous pour vos réponses !!

On m'a répondu :

tu rajoutes cette commande dans le fichie /etc/sudoers: si ton login est toto:
Code:

sudo EDITOR=gedit visudo

tu rajoutes après

    # User privilege specification
    root    ALL=(ALL) ALL

la ligne

    toto ALL=NOPASSWD:/sbin/shutdown

enregistre

voila

pour annuler tu tues le pid avec kill

man kill

http://forum.ubuntu-fr.org/viewtopic.ph … 5#p2310845

J'ai réussi a ne plus devoir entré à chaque fois mon mot de passe, le problème c'est pour annuler ...
Je ne sais pas ce qu'est un Pid. Et je ne comprend pas ce qui s'affiche lorsque je tape man kill :

NAME
       kill - send a signal to a process

SYNOPSIS
       kill [ -signal | -s signal ] pid ...
       kill [ -L | -V, --version ]
       kill -l  [ signal ]

DESCRIPTION
       The  default  signal  for  kill is TERM. Use -l or -L to list available
       signals.  Particularly useful signals include  HUP,  INT,  KILL,  STOP,
       CONT,  and  0.   Alternate  signals  may be specified in three ways: -9
       -SIGKILL -KILL.  Negative PID values may be used to choose  whole  pro‐
       cess  groups;  see the PGID column in ps command output. A PID of -1 is
       special; it indicates all processes except the kill process itself  and
       init.

SIGNALS
       The  signals  listed  below  may  be available for use with kill.  When
       known constant, numbers and default behavior are shown.

Name     Num   Action    Description
       0          0   n/a       exit code indicates if a signal may be sent
       ALRM      14   exit
       HUP        1     exit
       INT        2     exit
       KILL       9      exit      this signal may not be blocked
       PIPE      13     exit
       POLL              exit
       PROF              exit
       TERM      15     exit
       USR1              exit
       USR2              exit
       VTALRM          exit
       STKFLT          exit      may not be implemented
       PWR              ignore    may exit on some systems
       WINCH          ignore
       CHLD           ignore
       URG            ignore
       TSTP           stop      may interact with the shell
       TTIN           stop      may interact with the shell
       TTOU           stop      may interact with the shell
       CONT           restart   continue if stopped, otherwise ignore
       ABRT       6   core
       FPE        8   core
       ILL        4   core
       QUIT       3   core
       SEGV      11   core
       TRAP       5   core
       SYS            core      may not be implemented
       EMT            core      may not be implemented
       BUS            core      core dump may fail
       XCPU           core      core dump may fail
       XFSZ           core      core dump may fail

NOTES
       Your shell (command line interpreter) may have a built-in kill command.
       You  may  need  to run the command described here as /bin/kill to solve
       the conflict.

EXAMPLES
       kill -9 -1
              Kill all processes you can kill.

       kill -l 11
              Translate number 11 into a signal name.

       kill -L
              List the available signal choices in a nice table.

       kill 123 543 2341 3453
              Send the default signal, SIGTERM, to all those processes.

SEE ALSO
       pkill(1), skill(1), kill(2), renice(1), nice(1), signal(7), killall(1).

STANDARDS
       This  command  meets  appropriate  standards. The -L flag is Linux-spe‐
       cific.

AUTHOR
       Albert Cahalan <albert@users.sf.net> wrote kill in 1999  to  replace  a
       bsdutils one that was not standards compliant. The util-linux one might
       also work correctly.

       Please send bug reports to <procps-feedback@lists.sf.net>

Merci beaucoup pour votre aide wink.

Bonne soirée
Mieg

Hors ligne

#2 Le 29/12/2008, à 23:25

ilcorseronero

Re : Crétion d'un script pour déteindre son pc après un certain délais

tape

ps -fu toto

UID        PID  PPID  C STIME TTY          TIME CMD
toto       6061  6058  0 22:01 ?        00:00:00 gnome-pty-helper
toto       6062  6058  0 22:01 pts/0    00:00:00 bash
toto       6082     1  0 22:01 ?        00:00:00 /usr/lib/notification-daemon/not
toto       6149     1  4 22:01 ?        00:00:54 /usr/lib/firefox-3.0.4/firefox

chaque commande executée possède un pid
ici firefox a un pid de 6149

kill 6149 permet de fermer firefox

Dernière modification par ilcorseronero (Le 29/12/2008, à 23:26)

Hors ligne

#3 Le 29/12/2008, à 23:27

ilcorseronero

Re : Crétion d'un script pour déteindre son pc après un certain délais

une fois que c'est ok, tu peux mettre cela
dans trucs et astuces lol
tongue

Hors ligne

#4 Le 30/12/2008, à 15:16

Ras&#039;

Re : Crétion d'un script pour déteindre son pc après un certain délais

Les scripts c'est cool smile
Mais sinon gshutdown fait ça très bien...


Va t'faire shampouiner par le compteur_V2 en timezone[Canada/Eastern] !
 
Les types awesome n'ont rien à prouver. À personne.
'k bye là

Hors ligne

#5 Le 30/12/2008, à 15:18

vincentp010

Re : Crétion d'un script pour déteindre son pc après un certain délais

Pour annuler tu as la commmande
sudo shutdown -c


Desktop: Archlinux OpenBox
Laptop: Dualboot Ubuntu-Studio 9.10 / Archlinux OpenBox
Server: EeeBox Ubuntu-Server 8.10 500Go

Hors ligne

#6 Le 30/12/2008, à 15:26

Ras&#039;

Re : Crétion d'un script pour déteindre son pc après un certain délais

Au temps pour moi, pour déteindre son pc il vaut mieux une machine à laver en fait big_smile


Va t'faire shampouiner par le compteur_V2 en timezone[Canada/Eastern] !
 
Les types awesome n'ont rien à prouver. À personne.
'k bye là

Hors ligne

#7 Le 30/12/2008, à 17:00

balibal09

Re : Crétion d'un script pour déteindre son pc après un certain délais

Ras` install les paquets suivant :  sudo apt-get install perl-lessive-lechat tambour perl-adoussissant

optionnellement le paquet minuteur te permettra de programmer ton pc pour le faire la nuit...

#8 Le 30/12/2008, à 21:02

Mieg

Re : Crétion d'un script pour déteindre son pc après un certain délais

En fait, ... Ça ne marche pas totalement ...

Je dois encore entrer mon mot de passe lorsque j'effectue la commande :

sudo shutdown -h +[le nombre de minute]

Et aussi la commande :

sudo shutdown -c

J'ai pourtant vérifier d'avoir bien modifié le fichier /etc/sudoers.

Ps : j'ai cru que ça marchait parce que j'ai effectué la commande :

sudo EDITOR=gedit visudo

Et elle demandait aussi le mot de passe (logique lol).
Chez moi il retient le mot de passe pendant un certain temps, et donc lorsque j'ai effectué la commande d'arrêt il ne m'a pas demander mon mot de passe.

Y aurait-il une solution ?

Merci beaucoup !

Mieg

Hors ligne

#9 Le 30/12/2008, à 22:06

ilcorseronero

Re : Crétion d'un script pour déteindre son pc après un certain délais

donne le retour de
sudo cat /etc/sudoers

Hors ligne

#10 Le 30/12/2008, à 22:30

Mieg

Re : Crétion d'un script pour déteindre son pc après un certain délais

Voila quand je tape sudo cat /etc/sudoers, il me renvoie ça :

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Defaults

Defaults	!lecture,tty_tickets,!fqdn

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root	ALL=(ALL) ALL
mieg	ALL=NOPASSWD:/sbin/shutdown

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

Merci

Mieg

Hors ligne

#11 Le 30/12/2008, à 23:11

ilcorseronero

Re : Crétion d'un script pour déteindre son pc après un certain délais

change par ceci

mieg  ALL = (root)  NOPASSWD: /sbin/shutdown

pour tester ouvre un autre terminal

Hors ligne

#12 Le 30/12/2008, à 23:55

Mieg

Re : Crétion d'un script pour déteindre son pc après un certain délais

Je vais peut-être paraître lourd mais ça ne marche toujours pas ...

Le retour de sudo cat etc/sudoers :

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Defaults

Defaults	!lecture,tty_tickets,!fqdn

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root	ALL=(ALL) ALL
mieg	ALL=(root) NOPASSWD:/sbin/shutdown

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

Et voilà ce qu'il me renvoie lorsque je tape ps -fu root (peut-être que ça vous éclairera) :

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 22:44 ?        00:00:01 /sbin/init
root         2     0  0 22:44 ?        00:00:00 [kthreadd]
root         3     2  0 22:44 ?        00:00:00 [migration/0]
root         4     2  0 22:44 ?        00:00:00 [ksoftirqd/0]
root         5     2  0 22:44 ?        00:00:00 [watchdog/0]
root         6     2  0 22:44 ?        00:00:00 [migration/1]
root         7     2  0 22:44 ?        00:00:00 [ksoftirqd/1]
root         8     2  0 22:44 ?        00:00:00 [watchdog/1]
root         9     2  0 22:44 ?        00:00:00 [events/0]
root        10     2  0 22:44 ?        00:00:00 [events/1]
root        11     2  0 22:44 ?        00:00:00 [khelper]
root        46     2  0 22:44 ?        00:00:00 [kblockd/0]
root        47     2  0 22:44 ?        00:00:00 [kblockd/1]
root        50     2  0 22:44 ?        00:00:00 [kacpid]
root        51     2  0 22:44 ?        00:00:00 [kacpi_notify]
root       147     2  0 22:44 ?        00:00:00 [kseriod]
root       189     2  0 22:44 ?        00:00:00 [pdflush]
root       190     2  0 22:44 ?        00:00:00 [pdflush]
root       191     2  0 22:44 ?        00:00:00 [kswapd0]
root       232     2  0 22:44 ?        00:00:00 [aio/0]
root       233     2  0 22:44 ?        00:00:00 [aio/1]
root      1519     2  0 22:44 ?        00:00:00 [ksuspend_usbd]
root      1526     2  0 22:44 ?        00:00:00 [khubd]
root      1529     2  0 22:44 ?        00:00:00 [khpsbpkt]
root      1540     2  0 22:44 ?        00:00:00 [ata/0]
root      1543     2  0 22:44 ?        00:00:00 [ata/1]
root      1544     2  0 22:44 ?        00:00:00 [ata_aux]
root      2284     2  0 22:44 ?        00:00:00 [knodemgrd_0]
root      2300     2  0 22:44 ?        00:00:00 [scsi_eh_0]
root      2301     2  0 22:44 ?        00:00:00 [scsi_eh_1]
root      2336     2  0 22:44 ?        00:00:00 [scsi_eh_2]
root      2337     2  0 22:44 ?        00:00:00 [scsi_eh_3]
root      2369     2  0 22:44 ?        00:00:00 [scsi_eh_4]
root      2373     2  0 22:44 ?        00:00:00 [scsi_eh_5]
root      2511     2  0 22:44 ?        00:00:00 [scsi_eh_6]
root      2513     2  0 22:44 ?        00:00:00 [usb-storage]
root      2620     2  0 22:44 ?        00:00:00 [kjournald]
root      2915     1  0 22:44 ?        00:00:00 /sbin/udevd --daemon
root      3588     2  0 22:44 ?        00:00:00 [irda_sir_wq]
root      3658     2  0 22:44 ?        00:00:00 [rt61pci]
root      4567     1  0 22:44 ?        00:00:00 /sbin/mount.ntfs /dev/sda1 /medi
root      4570     1  0 22:44 ?        00:00:00 /sbin/mount.ntfs /dev/sda5 /medi
root      4749     2  0 22:44 ?        00:00:00 [rpciod/0]
root      4750     2  0 22:44 ?        00:00:00 [rpciod/1]
root      4767     1  0 22:44 ?        00:00:00 /usr/sbin/rpc.idmapd
root      4931     1  0 22:44 tty4     00:00:00 /sbin/getty 38400 tty4
root      4932     1  0 22:44 tty5     00:00:00 /sbin/getty 38400 tty5
root      4934     1  0 22:44 tty2     00:00:00 /sbin/getty 38400 tty2
root      4937     1  0 22:44 tty3     00:00:00 /sbin/getty 38400 tty3
root      4938     1  0 22:44 tty6     00:00:00 /sbin/getty 38400 tty6
root      5118     1  0 22:44 ?        00:00:00 /usr/sbin/acpid -c /etc/acpi/eve
root      5147     2  0 22:44 ?        00:00:00 [kondemand/0]
root      5148     2  0 22:44 ?        00:00:00 [kondemand/1]
root      5289     1  0 22:44 ?        00:00:00 /bin/dd bs 1 if /proc/kmsg of /v
root      5329     1  0 22:44 ?        00:00:00 /usr/sbin/NetworkManager --pid-f
root      5343     1  0 22:44 ?        00:00:00 /usr/sbin/NetworkManagerDispatch
root      5356     1  0 22:44 ?        00:00:00 /usr/bin/system-tools-backends
root      5430     1  0 22:44 ?        00:00:00 /usr/sbin/cupsd
root      5528     2  0 22:44 ?        00:00:00 [lockd]
root      5529     2  0 22:44 ?        00:00:00 [nfsd4]
root      5530     2  0 22:44 ?        00:00:00 [nfsd]
root      5531     2  0 22:44 ?        00:00:00 [nfsd]
root      5532     2  0 22:44 ?        00:00:00 [nfsd]
root      5533     2  0 22:44 ?        00:00:00 [nfsd]
root      5534     2  0 22:44 ?        00:00:00 [nfsd]
root      5535     2  0 22:44 ?        00:00:00 [nfsd]
root      5536     2  0 22:44 ?        00:00:00 [nfsd]
root      5537     2  0 22:44 ?        00:00:00 [nfsd]
root      5541     1  0 22:44 ?        00:00:00 /usr/sbin/rpc.mountd
root      5578     1  0 22:44 ?        00:00:00 /usr/sbin/nmbd -D
root      5580     1  0 22:44 ?        00:00:00 /usr/sbin/smbd -D
root      5615  5580  0 22:45 ?        00:00:00 /usr/sbin/smbd -D
root      5648     1  0 22:45 ?        00:00:00 /usr/sbin/winbindd
root      5701  5648  0 22:45 ?        00:00:00 /usr/sbin/winbindd
root      5702     1  0 22:45 ?        00:00:00 /usr/sbin/dhcdbd --system
root      5724     1  0 22:45 ?        00:00:00 /usr/sbin/console-kit-daemon
root      5725  5721  0 22:45 ?        00:00:00 hald-runner
root      5804  5725  0 22:45 ?        00:00:00 /usr/lib/hal/hald-addon-cpufreq
root      5815  5725  0 22:45 ?        00:00:00 hald-addon-input: Listening on /
root      5831  5725  0 22:45 ?        00:00:00 hald-addon-storage: polling /dev
root      5833  5725  0 22:45 ?        00:00:00 hald-addon-storage: polling /dev
root      5835  5725  0 22:45 ?        00:00:00 hald-addon-storage: polling /dev
root      5837  5725  0 22:45 ?        00:00:00 hald-addon-storage: polling /dev
root      5840  5725  0 22:45 ?        00:00:00 hald-addon-storage: polling /dev
root      5865     1  0 22:45 ?        00:00:00 /usr/sbin/hcid -x -s
root      5876     2  0 22:45 ?        00:00:00 [btaddconn]
root      5877     2  0 22:45 ?        00:00:00 [btdelconn]
root      5896     2  0 22:45 ?        00:00:00 [krfcommd]
root      5899  5865  0 22:45 ?        00:00:00 /usr/lib/bluetooth/bluetoothd-se
root      5931  5865  0 22:45 ?        00:00:00 /usr/lib/bluetooth/bluetoothd-se
root      5969     1  0 22:45 ?        00:00:00 /usr/sbin/gdm
root      5972  5969  0 22:45 ?        00:00:00 /usr/sbin/gdm
root      5976  5972  2 22:45 tty7     00:00:16 /usr/bin/X :0 -br -audit 0 -auth
root      6052     1  0 22:45 ?        00:00:00 /usr/sbin/cron
root      6167     1  0 22:45 ?        00:00:00 /usr/bin/timidity -Os -iAD
root      6186     1  0 22:45 tty1     00:00:00 /sbin/getty 38400 tty1
root      6404     1  0 22:45 ?        00:00:00 /sbin/wpa_supplicant -g /var/run
root      7256     1  0 22:58 ?        00:00:00 shutdown -h +60
root      7257  7256  0 22:58 ?        00:00:00 [shutdown] <defunct>

Merci pour votre patience wink.

Mieg

Dernière modification par Mieg (Le 31/12/2008, à 00:00)

Hors ligne

#13 Le 31/12/2008, à 00:28

ilcorseronero

Re : Crétion d'un script pour déteindre son pc après un certain délais

essaye avec ceci

mieg    ALL=(root) NOPASSWD:/sbin/shutdown -h +60

Hors ligne

#14 Le 31/12/2008, à 00:48

Mieg

Re : Crétion d'un script pour déteindre son pc après un certain délais

Ça ne fonctionne pas non plus ...

Hors ligne

#15 Le 31/12/2008, à 10:38

Ras&#039;

Re : Crétion d'un script pour déteindre son pc après un certain délais

Euh, perso on m'avait fait rajouter ça :

# No need of sudo for the shutdown command
%admin  ALL=NOPASSWD: /sbin/shutdown

(source)


Va t'faire shampouiner par le compteur_V2 en timezone[Canada/Eastern] !
 
Les types awesome n'ont rien à prouver. À personne.
'k bye là

Hors ligne

#16 Le 31/12/2008, à 15:11

Mieg

Re : Crétion d'un script pour déteindre son pc après un certain délais

Marche pas non plus ... ni la méthode graphique ...

Gshutdown ne marche toujours pas après toutes ces modifs et lorsque je tape la commande il me demande toujours mon mot de passe ...

Merci,

Mieg

Hors ligne

#17 Le 31/12/2008, à 15:12

kuri

Re : Crétion d'un script pour déteindre son pc après un certain délais

Ras' a écrit :

Au temps pour moi, pour déteindre son pc il vaut mieux une machine à laver en fait big_smile

damned, j etai venu ici juste pour dire ca, et ... deja dit!

Hors ligne

#18 Le 31/12/2008, à 15:43

Sciensous

Re : Crétion d'un script pour déteindre son pc après un certain délais

dans la partie alias:


# Cmnd alias specification
Cmnd_Alias     HALT = /sbin/shutdown

puis après :
# User privilege specification
root    ALL=(ALL) ALL


#tout compte:
ALL ALL=(ALL) NOPASSWD: HALT

sudo shutdown devrait marcher sans entrer le mot de passe

Dernière modification par Sciensous (Le 31/12/2008, à 15:44)


sous ubuntu LTS de la 06 à la 22.04, puis arrêt pour Debian 12 et antiX 21 ou 23
( sous LXDE et gnome-shell )

Hors ligne

#19 Le 01/01/2009, à 16:12

Mieg

Re : Crétion d'un script pour déteindre son pc après un certain délais

Non ça ne fonctionne pas ...

J'ai été voir avec nautilus si le fichier /sbin/shutdown existait et je l'ai trouvé.  Peut être faut-il changer les permissions de ce fichier ?

Dite moi si je peut faire quelque chose pour vous éclairer.

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Defaults

Defaults	!lecture,tty_tickets,!fqdn

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification
Cmnd_Alias     HALT = /sbin/shutdown

# User privilege specification
root	ALL=(ALL) ALL

# No need of sudo for the shutdown command
# Tout compte
ALL ALL=(ALL) NOPASSWD: HALT

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

Merci pour votre patience wink.

Mieg

Dernière modification par Mieg (Le 01/01/2009, à 16:15)

Hors ligne

#20 Le 01/01/2009, à 16:21

ilcorseronero

Re : Crétion d'un script pour déteindre son pc après un certain délais

regarde dans launchpad s'il y a un bug avec sudoers
parce que la c'est drôle

Hors ligne

#21 Le 01/01/2009, à 22:16

Sciensous

Re : Crétion d'un script pour déteindre son pc après un certain délais

alors avant le #tout compte, rajoute:

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL, NOPASSWD: HALT

sous ubuntu LTS de la 06 à la 22.04, puis arrêt pour Debian 12 et antiX 21 ou 23
( sous LXDE et gnome-shell )

Hors ligne

#22 Le 02/01/2009, à 16:01

Mieg

Re : Crétion d'un script pour déteindre son pc après un certain délais

Comment je lance le launchpad ?

Même avec cette commande en plus il ne veux pas me permettre d'effectuer la commande sans demander mon mot de passe.

J'ai essayé plusieurs trucs qui ont été écrit dans d'autre post ... mais rien à faire.

Voilà à quoi il ressemble maintenant :

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Defaults

Defaults    !lecture,tty_tickets,!fqdn

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification
Cmnd_Alias     HALT = /sbin/shutdown

# User privilege specification
root    ALL=(ALL) ALL

%mieg	ALL=NOPASSWD: /sbin/shutdown


# No need of sudo for the shutdown command
%mieg ALL=(ALL) ALL, NOPASSWD: HALT
%admin ALL=(ALL) ALL, NOPASSWD: HALT
# Tout compte
ALL ALL=(ALL) NOPASSWD: HALT

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

Merci,

Mieg

Hors ligne

#23 Le 02/01/2009, à 16:39

Sciensous

Re : Crétion d'un script pour déteindre son pc après un certain délais

le mien marchant bien, je te fais les modifs correspondantes:

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Defaults

Defaults	env_reset

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification
Cmnd_Alias     HALT = /sbin/shutdown

# User privilege specification
root    ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL, NOPASSWD: HALT
%mieg	ALL=(ALL) NOPASSWD: HALT

# Tout compte
ALL ALL=(ALL) NOPASSWD: HALT

Dernière modification par Sciensous (Le 02/01/2009, à 16:39)


sous ubuntu LTS de la 06 à la 22.04, puis arrêt pour Debian 12 et antiX 21 ou 23
( sous LXDE et gnome-shell )

Hors ligne

#24 Le 03/01/2009, à 20:15

Mieg

Re : Crétion d'un script pour déteindre son pc après un certain délais

Super maintenant ça marche ... Je vais cherché à savoir pourquoi.

Merci beaucoup à tous wink !

Hors ligne

#25 Le 03/01/2009, à 22:27

feeatmod

Re : Crétion d'un script pour déteindre son pc après un certain délais

Bonsoir,

SKIP
pouvait provoquer une réaction de type déteindre
mais script....? connait pas
::P tongue tongue

feeatmod

ps
SKIP = recommandée par les grandes marques de...

Dernière modification par feeatmod (Le 03/01/2009, à 22:29)


"Mourir c'est juste connaitre une dernière fin de MOI difficile" dp ch'ti grain de folie
Membre de l'april  http://www.april.org/
Dell precision 490-deux quad xeons- nvidia quadro 4000 - Raid 5 matériel- UBUNTU studio 64 bits

Hors ligne