Linux Server Diary

The trials and tribulations of a Linux newbie trying to setup a home server.

Friday, November 17, 2006

More Samba Setup

It seems to be working OK. I can create files and directories in my new share, and the groups and permissions look good.

However, my guides are telling me that a little more setup is needed.

Enable WINS host resolution
Edit /etc/nsswitch.conf and change hosts: files dns to hosts: files wins dns
Add the root user to the SAMBA password database
sudo smbpasswd -a root
Setup the Adminstrator alias in /etc/samba/smbusers
sudo echo "root = Administrator" > /etc/samba/smbusers
Setup the default domain groups for windows
sudo net groupmap modify ntgroup="Domain Admins" unixgroup=root
sudo net groupmap modify ntgroup="Domain Users" unixgroup=users
sudo net groupmap modify ntgroup="Domain Guests" unixgroup=nogroup
Restart the service daemon
sudo /etc/init.d/samba restart

Unless I want to setup a printer someday, the Samba config should be done.

Labels:

0 Comments:

Post a Comment

<< Home