Networking :: Samba for File Server



Hi,

I am using DSL as a file server on my home LAN and it works fine.

After re-directing a port (#22) on the router to the 'inside/LAN' NIC (the server also acts as an internet server, thus has two NICs), am also accessing the DSL sever remotely, using ssh, with the great little win utility 'winscp'.

To set up my DSL samba server, I adapted one of the example setups from the www.samba.org online manual, the URL to the relevant chapter is here.

I am using the /dev/hda7 partition for the LAN server, more particularly, a root folder of /dev/hda7, named 'scratch' is the effective 'top' of the server folder tree.  Of course, /mnt/hda7/scratch has to be read/write by all users.

The smb.conf I am using looks like this:

------------------------------------------------------------
[global]
workgroup = YOURLAN
server string = DSL-Server

interfaces = 192.168.1.1/24 127.0.0.1/24
bind interfaces only = yes
hosts allow = 192.168.1. 127.
hosts deny = 0.0.0.0/0

wins support = yes

security = share
encrypt passwords = yes

[scratch]
comment = DSL Server Scratch Area
path = /mnt/hda7/scratch
browseable = yes
read only = no
force user = pcguest
guest ok = yes
nt acl support = no
------------------------------------------------------------

By the way, if you are using a 'frugal' install with samba installed via the mydsl method, use the 'Add2filetool' facility in emelfm, to ensure that the relevant  'opt/samba/smb.conf' is restored, over the default file from samba.dsl.

Then, to ensure that samba starts with the required configuration, add this to the 'bootlocal.sh':

------------------------------------------------------------
mount /dev/hda7

nmbd -D -s /opt/samba/smb.conf
smbd -D -s /opt/samba/smb.conf
------------------------------------------------------------

Hope this helps,

Geoff.


original here.