its currently in draft form so dont use it yet!!!!
This HOWTO: will be split into distinct areas,
"Section One" Install and Configure the server
"Section Two" Configure client access.
We will be configuring this with as a wide open share that everybody in the network will have read/write privelege! I have tested this with Linux / M$ win7 & 10
"Section One" Install and Configure the server
Install SAMBA Server and Client
based on
https://www.howtoforge.com/samba-server-ubuntu-14.04-lts#-anonymous-samba-sharing
http://www.howtogeek.com/howto/ubuntu/install-samba-server-on-ubuntu/
https://www.howtoforge.com/samba-server-ubuntu-14.04-lts#-anonymous-samba-sharing
I will be making the following assumptions (just amend to suit your environment)
1. You already have a working system!
2. Your media to be shared is mounted via fstab by its label, in this case Disk1
3. The mounted disk resides in the following folder /media/Disk1
4. this mount has a folder inside called /Data
Configure NFS Server (as root)
mv /etc/samba/smb.conf /etc/samba/smb.conf.old
create a new smb.conf with teh following commands:
touch /etc/samba/smb.conf
nano /etc/samba/smb.conf
copy and past the following into the edited file
**
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
#### Networking ####
#### Debugging/Accounting ####
log file = /tmp/%m.log
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
########## Domains ###########
########## Printing ##########
############ Misc ############
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072
use sendfile = yes
write cache size = 2097152
usershare allow guests = yes
#======================= Share Definitions =======================
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0755
directory mask = 0755
valid users = %S
[Data]
comment = shared media
path = /media
available = yes
read only = no
browseable = yes
public = yes
writable = yes
create mask = 0777
directory mask = 0777
**
Test the Samba conf file for any syntax error:
testparm
If there is any error then it will tell you and show some indication where to look to fix.
if there are no errors you will see "normal" output of the test.
Restart Samba
service samba restart
:: To Continue ::
"Section Two" Configure Linux client access.
To continue based upon https://help.ubuntu.com/community/Samba/SambaClientGuide
"Section Three Configure M$ Win* client access
Really you want help to configure a windows client to access a windows server... go on a microsoft forum and feel really embarassed
This HOWTO: will be split into distinct areas,
"Section One" Install and Configure the server
"Section Two" Configure client access.
We will be configuring this with as a wide open share that everybody in the network will have read/write privelege! I have tested this with Linux / M$ win7 & 10
"Section One" Install and Configure the server
Install SAMBA Server and Client
based on
https://www.howtoforge.com/samba-server-ubuntu-14.04-lts#-anonymous-samba-sharing
http://www.howtogeek.com/howto/ubuntu/install-samba-server-on-ubuntu/
https://www.howtoforge.com/samba-server-ubuntu-14.04-lts#-anonymous-samba-sharing
I will be making the following assumptions (just amend to suit your environment)
1. You already have a working system!
2. Your media to be shared is mounted via fstab by its label, in this case Disk1
3. The mounted disk resides in the following folder /media/Disk1
4. this mount has a folder inside called /Data
Configure NFS Server (as root)
mv /etc/samba/smb.conf /etc/samba/smb.conf.old
create a new smb.conf with teh following commands:
touch /etc/samba/smb.conf
nano /etc/samba/smb.conf
copy and past the following into the edited file
**
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
#### Networking ####
#### Debugging/Accounting ####
log file = /tmp/%m.log
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
########## Domains ###########
########## Printing ##########
############ Misc ############
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072
use sendfile = yes
write cache size = 2097152
usershare allow guests = yes
#======================= Share Definitions =======================
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0755
directory mask = 0755
valid users = %S
[Data]
comment = shared media
path = /media
available = yes
read only = no
browseable = yes
public = yes
writable = yes
create mask = 0777
directory mask = 0777
**
Test the Samba conf file for any syntax error:
testparm
If there is any error then it will tell you and show some indication where to look to fix.
if there are no errors you will see "normal" output of the test.
Restart Samba
service samba restart
:: To Continue ::
"Section Two" Configure Linux client access.
To continue based upon https://help.ubuntu.com/community/Samba/SambaClientGuide
"Section Three Configure M$ Win* client access
Really you want help to configure a windows client to access a windows server... go on a microsoft forum and feel really embarassed