The fastest way (and also the most unsecure) for me to make a working samba configuration on debian stable/lenny is as follows:
As root:
- Code: Select all
# apt-get install samba
# vi /etc/samba/smb.conf
Instead of vi you could use whichever editor you preffer.
here search for the line which starts with
- Code: Select all
# security=
and after the equals sign enter the word "share" and delete the # sign from the begining of the line
now you must also define your shares by inserting a few lines for every share like this:
- Code: Select all
[samba-rw-share]
comment = RW share
browseable = yes
writable = yes
path = /path/to/folder/you/want/to/share
guest ok = yes
samba-rw-share will be the name of the share, browseable and guest ok lines are required for samba to not ask for any passwords whatsoever when connecting to the share. path is the path to folder which you would like to share. and also if you include the writeable line your share will be writable also. There are a bunch of other options also, i suggest reading man smb.conf.
I would like to empasize again that this is the most unsecure way one could set up samba (but the fastest), but if you have a home network with a few machines only for your own usage, there is no particular danger setting up samba like this. At least this works for me.
cheers..
Edit: i forgot, after you make these changes you must restart samba. As root:
- Code: Select all
# /etc/init.d/samba restart
Omnes homines natura scire desiderant.