How to Do SAMBA

View previous topic View next topic Go down

How to Do SAMBA

Post  Admin on Thu Sep 24, 2009 9:19 pm

How to Do SAMBA
#yum search samba
#rpm -ql samba
#rpm -qa| grep samba
#yum intall samba
#chkconfig --list smb
#chkconfig --level 35 smb on
#service smb status
#ps -ef| grep smb
#vim /etc/samba/smb.conf
< Workgroup=should be same
set the public directory--with specified location
give all the required permission>
#chcon -R -t samba_share_t /home/<location> --> if you want to access the location with selinux ON
#getenforce
#setenforce 0 --> turn selinux to premissive
#smbpasswd -a dhan
#service smb restart
#ifconfig
#smbclient -L http://192.168.1.188/public -U dhan
#smbclient http://192.168.1.188/homes -U dhan
#smbclient http://server.glowfute.com -U root

<once logged in type "help" for more option in ftp envi>

Check firewall
Check iptables
Check Selinux

#man smb.conf ---> to modify and to give permission

###with selinux
Allowing AccessYou can alter the file context by executing chcon -R -t samba_share_t './nfsserver' You must also change the default file context files on the system in order to preserve them even on a full relabel. "semanage fcontext -a -t samba_share_t './nfsserver'" The following command will allow this access:
#chcon -R -t samba_share_t './nfsserver'
#chcon -R -t samba_share_t /home/


if nothing is working try nfsing the folder which you want to share with samba
#showmount -e
#vim /etc/exports --> create nfs to shared thro samba

This is just a basic configuration
To get more detail and understanding on SAMBA
visit this :http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch10_:_Windows,_Linux,_and_Samba
###plz comment and add your valuable suggestions#### Arrow
avatar
Admin
Admin

Posts : 32
Join date : 2009-09-13
Age : 31
Location : Chennai

View user profile http://linux.nsguru.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum