Textdoc
Zipdoc
Writeurl
Loading…
******samba****** rpm -qa | grep samba ...to check whether samba is installed or not cd home ....change directory to home mkdir tannu ...make a new directory in home cd tannu ...change directory to tannu touch f1 f2 f3 ...create few files in tannu cat > tannuuser.txt ...write something and click enter then press ctrl+D ls ...to check the listed file ifconfig ... check your eth0 ip address and keep in mind as to edit in interface and host and make sure that network is connected. vi /etc/samba/smb.conf after this press "i" to insert in vi editor and chnage following stuff: [global] workgroup=WORKGROUP ....put the name of workgroup that is in your PC to check it right click on mypc go to properties and see the name of workgroup domain after this uncomment the interface and host ...to uncomment remove the semi colon. interface lo eth0 192.168.... ...the ip address of your linux pc hosts allow 192.168.... ...the ip address of your linux pc at the end of the file add following: [tannu] comment = Tannu samba sharing Stuff path = /home/tannu public=yes writable=yes printables=no broweasable=yes write list= Administrator after this press esc then :wq service smb start service smb restart chkconfig smb on testparm check all the thing in testparm and proceed further service iptables stop service iptables status setenforce 0 getsebool -a setsebool samba_enable_home_dirs=1 getsebool -a ...check whether samba_enable_home_dirs=1 it is on or not useradd tannuchouhan smbpasswd -a tannuchouhan ...write the password ifconfig ....see the eth0 ipaddress and write that only in below command smbclient //192.168.56.101/home/tannu -U tannuchouhan it will ask the password ...just write the password you wrote above service smb restart chmod -R 777 /hpme/tannu now go to place from above top bar and then go to connect to server there change public to window share now write the ip address of your linux pc which you have used above for eg:- in my case it was 192.168.56.101 and click connect after this a folder name tannu will appear if it appear than the project is completed otherwise you have done something wrong.