Outils pour utilisateurs

Outils du site


informatique:linux:debian:lenny:debian_-_creer_un_utilisateur_sudo

On rajoute une ligne pour cet utilisateur dans le fichier /etc/sudoers , cela lui permettra de lancer des commandes en tant que “root” en utilisant le programme sudo :

# nano /etc/sudoers
> exemple  ALL=(ALL) ALL 

exemple de fichier sudo

# /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	env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root	ALL=(ALL) ALL


# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
informatique/linux/debian/lenny/debian_-_creer_un_utilisateur_sudo.txt · Dernière modification : 2022/04/10 17:48 de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki