Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Samba for File Server, I would like 2 setup a file / print srvr< Next Oldest | Next Newest >
gjhicks Offline





Group: Members
Posts: 108
Joined: April 2004
Posted: Mar. 12 2006,07:49 QUOTE

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.
Back to top
Profile PM 
5 replies since Mar. 08 2006,11:47 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Samba for File Server

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code