miércoles, 10 de julio de 2013

Activar sudo en Fedora XFCE 19

Como sabemos en Fedora no trae instalado el sudo por default así que para activarlos hacemos lo siguiente

Abrimos una terminal y escribimos

su -c "leafpad /etc/sudoers"

nos pedirá la contraseña

nos presentara el contenido del archivo no movemos hasta abajo y veremos algo como esto


## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL

## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

## Allows members of the users group to mount and unmount the
## cdrom as root
# %users  ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom

## Allows members of the users group to shutdown this system
# %users  localhost=/sbin/shutdown -h now

## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d

y en la ultima linea escribimos nuestro usuario como vemos aquí hasta abajo que yo lo agregué en negrilla

## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

## Allows members of the users group to mount and unmount the
## cdrom as root
# %users  ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom

## Allows members of the users group to shutdown this system
# %users  localhost=/sbin/shutdown -h now

## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
pepitofedora ALL=(ALL)  ALL

No hay comentarios:

Publicar un comentario