Configuring Samba?

Associate
Joined
8 Jan 2009
Posts
743
Location
Gidea Park, Essex
Hi Guys,

I'm trying to share files between my two laptop's, they are both debian OSs, Ubuntu 9.10.

I need help to get samba running.

I have done sudo apt-get install samba smbfs

to get the server and client installed on both.

But I also want to configure one system to be able to share files without authentication and the other to share files but you need a username and password.

How can I do this, thanks.
 
Can you post the contents of smb.conf?

An idea might be to install SWAT since this gives you a nice web based configuration interface for samba which might make your life easier.

Code:
sudo apt-get install swat

Edit: otherwise something like this should work. NOTE: This is probably not secure at all! I only use it because I trust everyone on my home LAN.

Code:
[netshare]
        comment = Network Share
        path = /mnt/netshare
        write list = *
        force user = root
        force group = root
        read only = No
        create mask = 0644
        guest ok = Yes

You'll need to
Code:
chown /mnt/netshare root
ie.chown the /mnt/netshare (or your equivalent) to root (or your equivalent).
 
Last edited:
Back
Top Bottom