Displaying 2 results from an estimated 2 matches for "localhost2".
Did you mean:
localhost
2009 Mar 07
3
"Master privileges unavailable on UPS" after upgrade to Debian Lenny
...d 'copstick3.nobody with an ip of 10.9.2.9):
hosts.conf
##########
MONITOR copstick_ups at copstick3 "Copstick APC"
ups.conf
########
[copstick_ups]
driver = usbhid-ups
port = /dev/usb/hiddev0
upsd.conf
#########
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACL localhost2 127.0.1.1/32
ACL nobodynet 10.9.2.0/24
#ACCEPT all
ACCEPT localhost
ACCEPT nobodynet
ACCEPT localhost2
REJECT all
upsd.users
##########
[admin]
password = blarblarblarblar
allowfrom = localhost
actions = SET
instcmds = ALL
[monuser]
password = blarblar
allowfrom = localhost
actions = SET...
2014 Jun 25
1
bug in samba?
...d hostname --fqdn (which depends on the resolver), while others want hostname .
getfqdn seems to return a different result than gethostname if the hostname of the machine is an alias.
For example if I have this in /etc/hosts and with some python testing.
127.0.0.1 localhost localhost.localdomain localhost2 localhost2.localdomain2 mypersonaldomainname.tld
?
python -c 'import socket; print socket.getfqdn()'
?
gives localhost.localdomain
?
python -c 'import socket; print socket.gethostname()'
?
gives mypersonaldomainname.tld
?
?
so how does samba get the hostname??
?
?
?
Louis
?
?