SAMBA Server And Client Config
Samba is a software package that comes with RHEL 6.0 that lets you share file systems and printers on a network with computers that use the Session Message Block (SMB) protocol. SMB is the protocol that is delivered with Windows operating systems for sharing files and printers
You can do four basic things with Samba:
Share a Linux directory tree with Windows and Linux/Unix computers
Share a Windows directory with Linux/Unix computer0073
Share a Linux printer with Windows and Linux/Unix computers
Share a Windows printer with Linux/Unix computers
Configurations Files
1. /etc/samba/smb.conf- Main Configuration File
1. Configurations Samba Server.
[root@server1 ~]# yum install samba*
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Package samba-common-3.5.4-68.el6.i686 already installed and latest version
Package samba-winbind-clients-3.5.4-68.el6.i686 already installed and latest version
Package samba-client-3.5.4-68.el6.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package samba.i686 0:3.5.4-68.el6 set to be updated
---> Package samba-winbind.i686 0:3.5.4-68.el6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================
Package Arch Version Repository Size
===========================================================================
Installing:
samba i686 3.5.4-68.el6 Server 5.0 M
samba-winbind i686 3.5.4-68.el6 Server 3.5 M
Transaction Summary
===========================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 8.5 M
Installed size: 30 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): samba-3.5.4-68.el6.i686.rpm | 5.0 MB 00:00
(2/2): samba-winbind-3.5.4-68.el6.i686.rpm | 3.5 MB 00:00
--------------------------------------------------------------------------------
Total 6.4 MB/s | 8.5 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : samba-winbind-3.5.4-68.el6.i686 1/2
Installing : samba-3.5.4-68.el6.i686 2/2
Installed:
samba.i686 0:3.5.4-68.el6 samba-winbind.i686 0:3.5.4-68.el6
Complete!
[root@server1 ~]#vi /etc/samba/smb.conf
Line No. 74
workgroup = MYGROUP
change this line as follow
workgroup = workgroup
Line No. 289
Add this lines
[Kavi]
comment = sam ram
path = /kavi
public = yes
writable = yes
printable =no
:wq!
[root@server1 ~]# useradd u1
[root@server1 ~]# passwd u1
Changing password for user u1.
New password: * * * * * (u1)
BAD PASSWORD: it is WAY too short
BAD PASSWORD: is too simple
Retype new password: * * * * *(u1)
passwd: all authentication tokens updated successfully.
Adding normal user has samba user.
[root@server1 ~]# smbpasswd -a u1
New SMB password:* * * * * (u1@123)
Retype new SMB password:* * * * *(u1@123)
Added user u1.
enabling u1 user has samba user.
[root@server1 ~]# smbpasswd -e u1
[root@server1 ~]# servicesmb restart
Shutting down SMB services: [ FAILED ]
Starting SMB services: [ OK ]
[root@server1 ~]#chkconfig--level 35 smb on
1.Configurations Samba Client (on windows).
Go to Start-Run-\\200.0.0.1\
type username and password
username - u1
password - *****(u1@123)
Now your are able to access kavi directory and files from it & user u1 home directory as well.
2. Configurations Samba Server without sharing samba user’s home directory.
To hide home directory of Samba User
[root@server1 ~]#vi /etc/samba/smb.conf
Line No . 248
[homes]
comment = Home Directories
browesable = no
; valid users = %S
; valid users = MYDOMAIN\%S
Modify this line as follow
;[homes]
; comment = Home Directories
; browesable = no
; valid users = %S
; valid users = MYDOMAIN\%S
:wq!
[root@server1 ~]# servicesmb restart
Shutting down SMB services: [ OK ]
Starting SMB services: [ OK ]
2.Configurations Samba Client (on windows).
Go to Start-Run-\\200.0.0.1\
type username and password
username - u1
password - *****
Now your are able to see user’s home directory of user u1.
Believe in yourself! Have faith in your abilities! Without a humble but reasonable confidence in your own powers you cannot be successful or happy. See the link below for more info.
ReplyDelete#without
www.mocsbar.com
If you would like to get a good deal from this article then you have to apply such methods to your won website.
ReplyDeletehealthetarians.com |
I just read your blog and get the information which searching everywhere. Now it’s become on my top preference of reading for acquiring the updates without hassle.
ReplyDeletewww.travelwestours.com |
This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.
ReplyDeletetechnews404.com |
This is very interesting news website running 24 hours a day to keep their viewer updated all the time.
ReplyDeleteahome4hope.com |
Thanks for the information! Now I know what i will do the next time i travel. Looking forward to go to Thailand later this year! Thanks for some pointers!
ReplyDeletehttp://www.auto-sprzedam.com |
Hello, i am glad to read the whole content of this blog and am very excited and happy to say that the webmaster has done a very good job here to put all the information content and information at one place.
ReplyDeleteautodetailersplus |
Thanks for taking the time to discuss this, I feel about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.
ReplyDeletestudentsfirstmi.com |
I just read your blog and get the information which searching everywhere. Now it’s become on my top preference of reading for acquiring the updates without hassle.
ReplyDeletehttp://www.hometaxinfo.com |
Hello, I enjoy reading all of your post. I wanted to write a little comment to support you.
ReplyDeleteReal Exterior |
That’s right! I really admire Cary’s work.
ReplyDeletehttp://www.infinetechnologie.com |
Fix yourself a little bit, not bad nothing
ReplyDeletefacebook entrar perfil , facebook entrar mi cuenta , facebook entrar login , facebook entrar , facebook entrar , facebook entrar
2015-07-21song
ReplyDeletecheap soccer jerseys
pandora charms
kate spade bags
cheap jordans free shipping
ray ban sunglasses
cheap jordans uk
hollister outlet
polo ralph lauren uk
michael kors handbags
ray ban outlet
coach outlet
longchamp pliage
chanel handbags
oakley sunglasses wholesale
ralph lauren pas cher
michael kors handbags
cheap beats by dre
ray bans
air force pas cher
gucci bags
burberry outlet
ray ban sunglasses
abercrombie and fitch
michael kors
ray ban outlet
air max uk
replica watches rolex
nike pas cher
cheap oakley sunglasses
michael kors bags
soccer shoes for sale
soccer outlet
true religion jeans
gucci outlet
burberry outlet online
Thanks for giving me the useful information.
ReplyDeletehappy wheels | juegos kizi | mobogenie descargar | agario | agar io | my little pony games | fireboy and watergirl | five nights at freddy's 4 | h1z1 | Gmod
louis vuitton outlet online
ReplyDeletemichael kors outlet sale
north face uk
ugg boots sale
true religion outlet store
toms outlet
coach factory outlet online
oakley sunglasses outlet
coach factory outlet online
jordan retro
zhi20161227
fitflop shoes
ReplyDeleteadidas superstar shoes
yeezy boost
nfl jerseys
discount oakley sunglasses
michael kors outlet clearance
cheap jordans for sale
coach factory outlet
coach outlet online
michael kors outlet store
170602yueqin
michael kors outlet online
ReplyDeletemichael kors outlet online
fitflops uk
coach outlet online
ray ban sunglasses
michael kors outlet
cheap oakley sunglasses
louis vuitton outlet
christian louboutin sale
louis vuitton
chanyuan2017.06.21
prada outlet
ReplyDeletetimberland boots uk
columbia sportswear
coach factory outlet
louboutin pas cher
lebron shoes
boston celtics jerseys
pandora rings
oakley sunglasses wholesale
warriors jerseys
chenlina20170718
adidas outlet store
ReplyDeletemichael kors outlet clearance
coach factory outlet online
air jordan retro
louis vuitton handbags
salvatore ferragamo shoes
supreme uk
michael kors outlet canada
prada shoes
canada goose sale
caiting2018314
With a name like samba.,.
ReplyDeleteferragamo outlet
ReplyDeletedurant shoes
valentino outlet
canada goose
coach factory outlet online
adidas campus shoes
fitflops sale
fitflops uk
adidas outlet
nike outlet store
cc0509
golden goose sneakers
ReplyDeletecheap jordans
hermes belts for men
vapormax
kobe sneakers
tom ford eyewear
air jordans
longchamp outlet
offwhite
lebron 15
2018906 leilei3915
ReplyDeletemulberry outlet
michael kors outlet
coach outlet
fred perry polo
michael kors handbags
nba jersey
adidas outlet store
cheap nike shoes
christian louboutin
coach factory outlet
jordan retro
ReplyDeletegoyard bags
jordan 4
adidas ultra boost
ultra boost
goyard st louis tot
yeezy
kobe basketball shoes
off white shoes
adidas eqt
now present in your city
ReplyDelete