Howto: Adding share in samba server under Linux or UNIX

by Vivek Gite on February 15, 2007 · 1 comment

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.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 1 comment… read it below or add one }

1 Nitin Kumar October 5, 2009

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

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 6 + 12 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: