Samba setup on Gentoo Linux
I had tried to setup Samba a couple of times before because I thought it would be cool, but never really got it going. I finally invested some effort and followed the steps from this tutorial and got it working. That tutorial provides instructions on how to setup samba for network printing as well as being a windows file server, but I’m only using the folder sharing.
It now works perfectly. Here are the exact steps that I did:
#1. emerge net-fs/samba //emerge the script
#2. nano /etc/samba/smb.conf //setup the config, includes the following information
#——-
[global]
workgroup = IWGroup
server string = Samba Server %v
log file = /var/log/samba3/log.%m
max log size = 50
interfaces = lo eth0
bind interfaces only = yeshosts allow = 144. 127.
hosts deny = 0.0.0.0/0
security = share
guest account = guest
guest ok = yes[VideoCardDrivers]
comment = drivers
path = /home/VideoCardDrivers
browseable = yes
writeable = yes
public = yes
create mode = 0766
guest ok = yes
#—-
#3. mkdir /home/VideoCardDrivers //make the shared directory
#4. smbpasswd -a root //created the user ‘root’, but i don’t think i’ll use it
#5. nano -w /etc/nsswitch.conf //edited the line hosts to be {hosts: files dns wins}
#6. chmod 755 /home/VideoCardDrivers //make the directory properly permission’d up
#7. /usr/bin/testparm //make sure the settings worked fine
#8. rc-update add samba default //adds samba to run at startup
#9. /etc/init.d/samba start //starts samba
Works like a charm.

times.