Maximum PC

It is currently Tue Apr 21, 2015 4:40 am

All times are UTC - 8 hours

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: LINUX - Samba: Sharing Files with Samba
PostPosted: Fri Jun 11, 2004 7:43 am 
Professional Dork
Professional Dork
User avatar

Joined: Tue May 25, 2004 12:44 pm
Posts: 1246
Location: Cornhole County
Originally posted by Colby

Shares generally go at the bottom of your smb.conf. You want to answer a few questions before you open up any shares: 1. Who should be able to access them and from where? 2. Do they need to be readable only or read-write? 3. Do you need to execute any scripts on the system before someone can access them (example: mount a cdrom)?
After you figure that stuff out, you can set up the shares :o)

If you want to user-protect a directory, you need to make sure your smb.conf global section has "security = user". If you only want to share files, you can use "security = share". You will need to make sure the users exist on your system if you choose security = user, and also make sure that they have an entry in smbpasswd.

Sections in the smb.conf begin with [name], where name is the name of the share (except in the case of global, where it is the global configuration). "homes" is a special name, in that samba treats this to mean the user's home directory.

There are a ton of options for shares, for more info you can see the Samba manual or man smb.conf. I will give some example shares here.

# remember that what is in here is the name of the share
# I only want these hosts to be able to connect.
hosts allow =
# This is what appears in the comment field when someone connects
# or when they view your list of shares.
comment = Mp3 folder
# I don't want someone to dump, just to read.
writable = no
# Don't do any file locking on this directory.
locking = no
# This is the directory on my system that I want to share.
path = /usr/local/share/mp3
# Let everyone who can see my computer know that I have this share.
public = yes

External link to this information

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.