0% found this document useful (0 votes)
21 views2 pages

Configuring Samba Server OEL 5.8

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Configuring Samba Server OEL 5.8

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Samba Server configuration in Liinux 5.

8
-----------------------------------------
required package:
----------------
samba-3.0*
samba-common-3*
samba-client-3*

smb, portmap, xinetd service should be on


------------------------------------------
service portmap restart
service xinetd restart
chkconfig portmap on
chkconfig xinetd on

service portmap status


running.......
service xinetd status
running.........

adds user
-------------------
useradd vinita
passwd vinita
123456

create directory with permission


---------------------------------
mkdir /data
chmod 777 /data

configure samba
------------------
vi /etc/samba/smb.conf

[data]
comment = shared
path = /data/shared
guest ok = yes
read only = no
public = yes
writable = yes
:wq

create samba password for user


-----------------------------
smbpasswd -a vinita
123456

start samba service


-------------------
chkconfig smb on
service smb start
service smb status
smbd running.......
nmbd running.......

service smb restart


check from windows
------------------
open run
write the link
\\192.168.2.167\

enter username and password

check current status of samba server


-------------------------------------
smbstatus

check samba demon is running or not


------------------------------
ps aux | grep smbd
or,
ps -ef | grep smbd

-----------done-------------------
=========================================
group access
------------------------
[accounting]
comment = Accounting Department Directory
writable = yes
valid users = @account
path = /home/samba/accounting
create mode = 0660
directory mode = 0770

# mkdir /home/samba/accounting
# chgrp account /home/samba/accounting
# chmod 770 /home/samba/accounting

force create mode = 0660


force directory mode = 0770
force user = linux
force group = linux

===========================================
to check smb connection form windows client(to close connection without logoff)
---------------------------------------
cmd
net use
net use \\192.168.2.167\data /delete
net use

to check from linux samba server


-------------------------------
smbstatus

You might also like