Upload
rahul-sood
View
213
Download
0
Embed Size (px)
DESCRIPTION
Learn about Samba and its uses.
Citation preview
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Samba can be used to allow connectivity between
Linux and Windows(xp,vista,2003,2008). Samba can be
used to share printers, share directories, connect to an
2003 domain, and many other useful features. However,
this tutorial explains the steps involved in basic
configuring Samba for file and print sharing.
SAMBA
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
Packages : Samba,samba-common,samba-clientDaemons : /usr/sbin/nmbd, /usr/sbin/smbd
Script : /etc / init.d /smb
Port : Tcp: 445(-ds)
Configuration : /etc /samba /*
Related : system-config-samba, testparm
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
The /etc/samba/smb.conf file is the main configuration file you'll need to edit. It is split into five major sections, they are
Section Description
[global] General Samba configuration parameters
[printers] Used for configuring printers Used for configuring printers
[homes] Defines treatment of user logins
[netlogon] A share for storing logon scripts.
[profile] A share for storing domain logon information such as "favorites" and desktop icons.
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
Creating common share directory : vi /etc /samba /smb.conf
[my share]
comment = share for john and jerry
path = /data/test
valid user = john sam
public = no
writable = yes
printable = no
create mask = 0765
SAMBA
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
Installing the samba package using the yum
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
Installing the samba-config-samba package
using the yum
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
The dependency has been resolved
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
The samba package has been installed successfully
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
Now installing the samba-devel package
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
This is the share name of the samba folder
This is the comment for the samba folder
This is the path of the samba folder
The valid users can be listed here
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The name of the samba share is samba share
The path of the samba share folder is /home
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The smb service is restarted to changes take effect
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The smb service is restarted successfully
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Now go to windows machine, open run and type the samba
shared ip, and enter. followed by backward slash “\\”
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The samba username and password are prompting to
access the samba share
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The samba username and password are given
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The samba shared folder is viewed. i.e samba share
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Now the user john home directory is also available
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Now creating the new directory in the user john
home directory
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
It has been created successfully
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Edit the samba configuration file
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Enter the domain name
Enable the time server
Enable the domain logon
Enable the preferred master
Time the o/s level 65
Enable the domain master
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Create a user for windows accounts
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Add the user for vectra$
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Create a smbpasswd for root user
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
View the samba passwd file.
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Check the sbmb configration files in any
syntax error.
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Samba domain configuration displayed
hear.
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Change the computer name
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Enter the samba domain name
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Sabma domain sues fully connected .
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Now restart the computer
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Enter the samba domain user name password and
domain name.
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Samba home folder also mounted automatically.
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30