sudo gethostbyname() error
Thanks in advance.
I've got debian and wanted to allow user to reboot or poweroff, and tried sudo. The first problems were understanding the syntax, i think i got it. Now it's going on this:
#####as simple user######
rod@rod-deb:~$ sudo /sbin/reboot
sudo: unable to lookup rod-deb.localdomain via gethostbyname()
rod@rod-deb:~$ sudo /sbin/reboot
sudo: unable to lookup rod-deb.localdomain via gethostbyname()
rod@rod-deb:~$ sudo /sbin/reboot
sudo: unable to lookup rod-deb.localdomain via gethostbyname()...
many times until suddenly seems to connect and reboot.
No idea what could it be, so here are some files:
# 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
# User alias specification
User_Alias MORTALES = rod, leda
# Cmnd alias specification
Cmnd_Alias APAGADO = /sbin/poweroff, /sbin/reboot
# User privilege specification
MORTALES rod-deb =NOPASSWD:APAGADO
root ALL=(ALL) ALL
/etc/hostname:
rod-deb.localdomain
/etc/hosts:
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
127.0.0.1 localhost
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.0.1 rod-deb
### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
/etc/network/interfaces
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
hostname rod-deb
### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
|