Howto: Adding share in samba server under Linux or UNIX

by on February 15, 2007 · 5 comments· LAST UPDATED February 15, 2007

in , ,

Q. How do I add share called incoming? This share definitions should be linked up to directory called /home/incoming.

A. You can define a share using samba configuration file itself. Open /etc/samba/smb.conf file and add code snippet as follows:

# vi /etc/samba/smb.conf

Add following code:

[incoming]
   comment = Icomming data
   writable = yes
   path = /home/incoming

Save close the file. Restart Samba :
# /etc/init.d/samba restart
If you are using Redhat/CentOS/Fedora core type:
# service smb restart

See also:

=> A Samba permission howto

=> For more information and samba configuration option read smb.conf man page by typing following command:
man smb.conf

=> Visit official samba web site for more examples and information.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 5 comments… read them below or add one }

1 Nitin Kumar October 5, 2009 at 10:36 am

Hi,
I did the same…but it dint worked…whenever i try to connect samba share it prompts “Network path could not found”

Reply

2 Collin B April 11, 2012 at 11:42 pm

It is advisable to do an include to an extras file and put your samba share configs in there. Isolate your custom changes away from an applications main configuration file if it all possible.

Another great post that I used for quick reference. Thank you for your site!

Reply

3 hassan h August 22, 2012 at 12:43 pm

Well, I think it is “Incoming” in the code : “comment = Icomming data”
if not plz tell me :)

Reply

4 mahesh January 29, 2013 at 6:58 am

What are the steps required if i have to share the same share files and printers (In samba)with Active Directory users as well as local users..

Reply

5 Rod April 9, 2013 at 7:53 pm

Um… don’t you have to create the directory /home/incoming ?
and does it need chmod and chgroup and do I need to add user passwords to samba or will it just work from the windows clients?

Reply

Leave a Comment

Tagged as:

Previous Faq:

Next Faq: