[go: up one dir, main page]

0% found this document useful (0 votes)
43 views4 pages

Samba Server Setup Guide

The document provides instructions for setting up a Samba file sharing server on a Linux system. It involves installing Samba, creating a shared directory and user, configuring Samba permissions in smb.conf, restarting services, disabling the firewall, and mounting the shared folder on Windows and Linux clients.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views4 pages

Samba Server Setup Guide

The document provides instructions for setting up a Samba file sharing server on a Linux system. It involves installing Samba, creating a shared directory and user, configuring Samba permissions in smb.conf, restarting services, disabling the firewall, and mounting the shared folder on Windows and Linux clients.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Samba Server

 yum install samba -y

 make a directory
mkdir /share

 Add user
useradd jack--add user

 Create a password for smb user


smbpasswd -a jack

 --> chmod 777 /share


 6.edit configuration file of samba

 vim /etc/samba/smb.conf
copy last 7 line
[public]
comment=public Stuff
path= /share
valid user = jack
public = yes
writable = yes
printable = yes
write list = +staff
 7. service smb restart
8. service smb restart

 clear

 9. now disable firewall

 10 .--> service smb restart

 lets go to windows clients

 add windows machine to admin workgroup


it will asks to restart the machine
 To Mount Samba Shared Directory On Linux Client
# smbclient –L 192.168.1.1 –U smbuser
 This command will show u what is shared through samba
from 192.168.1.1

#mount.cifs –o username=samba //192.168.1.1/smbshared


/mnt
 This command will mount samba shared directory on
mnt

You might also like