Précédent   Forum des professionnels en informatique > Systèmes > Linux > Applications
Applications Questions sur l'utilisation d'applications, du shell, et des interfaces graphiques (KDE, Gnome, XFCE... )
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 06/01/2005, 17h32   #1
Membre habitué
 
Inscription : avril 2004
Messages : 421
Détails du profil
Informations forums :
Inscription : avril 2004
Messages : 421
Points : 120
Points : 120
Par défaut Installation de sudo

bonjour,j'essaie d'installer sudo, pour lancer plusieurs logiciel en temps qu'utilisateur,
a savoir apt-get update et apt-get install , etc..etc..
pour faire, je suis ceci.

http://www.bxlug.be/articles/85

j'ai bien evidemment changer mon nom , ce qui donne ceci

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
 
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
 
# Host alias specification
Host_Alias LOCALNET = 127.0.0.1
 
# User alias specification
User_Alias ADMIN_TEAM = elekis
 
# Cmnd alias specification
Cmnd_Alias DEBIAN_TOOLS = /usr/bin/apt-get, /usr/bin/auto-apt, \
                /usr/bin/dpkg, /usr/bin/dselect, /usr/sbin/dpkg-reconfigure
 
# User privilege specification
root    ALL=(ALL) ALL
ADMIN_TEAM LOCALNET = NOPASSWD: DEBIAN_TOOLS
mais voila, lorque je tape sudo apt-get update il me met cela.

Code :
1
2
3
4
 
Thu Jan 06 && elekis@carla &&  ~
     #-->sudo apt-get update
elekis is not allowed to run sudo on carla.  This incident will be reported.
carla est le nom de mon pc (vieux fantasme )


qqn serait il comment faire pour enlever ce msg et faire que tout fonctionne . mmerci

a++
elekis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/01/2005, 10h02   #2
Rédacteur
 
Inscription : mars 2004
Messages : 1 298
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 298
Points : 1 450
Points : 1 450
a tu essayé en tapant :
Code :
1
2
 
sudo /usr/bin/apt-get  update
car il se pourrait bien que sudo connaisse mais pas apt-get tout seul
__________________
Marc
Slackware for ever ......
BASH - KSH ( http://marcg.developpez.com/ksh/ )
MarcG est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/01/2005, 15h11   #3
Membre habitué
 
Inscription : avril 2004
Messages : 421
Détails du profil
Informations forums :
Inscription : avril 2004
Messages : 421
Points : 120
Points : 120
Code :
1
2
3
4
 
     #-->sudo /usr/bin/apt-get update
Password:
elekis is not allowed to run sudo on carla.  This incident will be reported.
et heu, bete question, mais je comprend pas pourquoi il me demande mon mot de passe, si j'utilise sudo, c'est justement poru pas le taper tout le temps


merci

a++
elekis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/01/2005, 16h21   #4
Rédacteur
 
Inscription : mars 2004
Messages : 1 298
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 298
Points : 1 450
Points : 1 450
heuu ne serait se pas que tu melange User_Alias avec Host_Alias ?

Code :
1
2
 
ADMIN_TEAM LOCALNET = NOPASSWD: DEBIAN_TOOLS
soit :
Code :
1
2
3
 
ADMIN_TEAM  = NOPASSWD:  DEBIAN_TOOLS
ADMIN_TEAM  LOCALNET =  ALL
__________________
Marc
Slackware for ever ......
BASH - KSH ( http://marcg.developpez.com/ksh/ )
MarcG est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/01/2005, 17h42   #5
Membre habitué
 
Inscription : avril 2004
Messages : 421
Détails du profil
Informations forums :
Inscription : avril 2004
Messages : 421
Points : 120
Points : 120
bon en chipotant un peu et suite a ce que vous m'avez dit, je suis arrivé a ca.
je sais pas si c'est jsute, mais ca fonctionne


Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
 
# Host alias specification
Host_Alias LOCALNET = 127.0.0.1
 
# User alias specification
User_Alias ADMIN_TEAM = elekis
 
# Cmnd alias specification
Cmnd_Alias DEBIAN_TOOLS = /usr/bin/apt-get, /usr/bin/auto-apt, \
                /usr/bin/dpkg, /usr/bin/dselect, /usr/sbin/dpkg-reconfigure
 
# User privilege specification
root    ALL=(ALL) ALL
 
ADMIN_TEAM  ALL= NOPASSWD:  DEBIAN_TOOLS
ADMIN_TEAM  LOCALNET=ALL
elekis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 08/01/2005, 08h37   #6
Expert Confirmé
 
Avatar de Katyucha
 
Inscription : mars 2004
Messages : 3 109
Détails du profil
Informations personnelles :
Âge : 31
Localisation : Allemagne

Informations forums :
Inscription : mars 2004
Messages : 3 109
Points : 3 313
Points : 3 313
La différence entre ce qui marche et ce qui merde, c'est justement le chipotage

Un petit click sur Résolu en bas a gauche?
Katyucha est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 08/01/2005, 08h53   #7
Membre habitué
 
Inscription : avril 2004
Messages : 421
Détails du profil
Informations forums :
Inscription : avril 2004
Messages : 421
Points : 120
Points : 120
voila, merci
elekis est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 06h53.


 
 
 
 
Partenaires

Hébergement Web