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:
=> 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.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 4 comments… read them below or add one }
Hi,
I did the same…but it dint worked…whenever i try to connect samba share it prompts “Network path could not found”
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!
Well, I think it is “Incoming” in the code : “comment = Icomming data”
if not plz tell me :)
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?