Friday, November 20, 2009

SWAT Without Root User

Ubuntu and other debian based distros typically haven't got a root user on the system, since its expected that system administrator tasks happen through the sudo command.

SWAT however, by default, expects you to log in with the root user to make it possible to change any settings. A very nice discovery i found by googling a while, is that the actual user doesn't matter, as long as the user you log in as have write access to the samba configuration file.

Adding my own normal user to a new "admin" group, and giving that group write access to /etc/samba/smb.conf made everything work without creating a root user for the entire system.