Linux.com

Using host file to find where users are is a bad idea.

Posted by: Anonymous [ip: 211.27.180.104] on October 05, 2007 12:00 AM
smbstatus is more trustable.

/etc/hosts is better replaced with a machine lookup. nslookup followed by a lookup on who is using that machine. Since using a host file is completely useless in a dhcp network. I even have a file that does like this for nfs shares. Also for smb shares I end up just using smbstatus reason machines running thin clients. So there might be more than one user on them. Ie 1 in 200 users is not a good place to be looking.

Very big mistake thinking that only one user would be using the machine.

#

Return to A script to tell which workstations are using Samba shares