Professional Documents
Culture Documents
1 of 1
Partners
Support
Community
Ubuntu.com
Page History
Login to edit
How to Create a Network Share Via Samba Via CLI (Command-line interface/Linux Terminal) - Uncomplicated, Simple and Brief Way!
About This Guide
In this text, I teach how to create a network share via Samba using the CLI (Command-line interface/Linux Terminal) in an uncomplicated, simple and brief way targeting Windows users.
Procedures
Contents
All commands must be done as root (precede each command with 'sudo' or use 'sudo su').
Install Samba
Make a safe backup copy of the original smb.conf file to your home folder, in case you make an error
sudo cp /etc/samba/smb.conf ~
Once Samba has restarted, use this command to check your smb.conf for any syntax errors
testparm
To access your network share use your username (<user_name>) and password through the path "smb://<HOST_IP_OR_NAME>/<folder_name>/" (Linux users) or "\\<HOST_IP_OR_NAME>\<folder_name>\" (Windows users). Note that "<folder_name>" value is passed in "[<folder_name>]", in other words, the share name you entered in "/etc/samba/smb.conf".
Note: The default user group of samba is "WORKGROUP".
Source
http://www.hardcode.nl/archives_147/article_548-samba-quick-setup-on-ubuntu-1004.htm
How to Create a Network Share Via Samba Via CLI (Command-line interface/Linux Terminal) - Uncomplicated, Simple and Brief Way! (last edited 2015-10-06 20:46:34 by r-2buntu-d @ 97e64b0f.skybroadband.com[151.230.75.15]:r-2buntu-d)
15.11.2016 13:50