Search H3r3

Monday 28 January 2019

Install TeamViewer on CentOS 5.x/6.x/7.x

Install TeamViewer on CentOS 5.x/6.x, RHEL, Fedora 15/16/17/18/19

 

1. cd /opt

2. wget http://download.teamviewer.com/download/version_9x/teamviewer_linux.rpm

3.  yum localinstall teamviewer_linux.rpm

Start TeamViewer:

4.  teamviewer

 

Sunday 27 January 2019

Samba installation on RHEL/CentOS 7

Samba installation on RHEL/CentOS 7:

1. yum install samba samba-client samba-common -y

2. vi /etc/samba/smb.conf

[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = centos
security = user
map to guest = bad user
dns proxy = no
[anonymous]
path = /samba/anonymous
browsable =yes
writable = yes
guest ok = yes
read only = no

[dcp]
path = /samba/dcp
browsable =yes
writable = yes
guest ok = yes
read only = no


3. mkdir -p /samba/anonymous

4. systemctl enable smb nmb.service

5. systemctl restart smb nmb.service

6. firewall-cmd --permanent --zone=public --add-service=samba

7. firewall-cmd --reload

8. chmod -R 0777 anonymous/

9. chown -R nobody:nobody anonymous/

10. chcon -t samba_share_t anonymous/


 Create User and Password :


11. useradd ajeeth

12. groupadd smbgrp

13. usermod -a -G smbgrp ajeeth

14. smbpasswd -a ajeeth

    [root@localhost]# smbpasswd -a rasho
    New SMB password:  YOUR SAMBA PASS
    Retype new SMB password:   REPEAT YOUR SAMBA PASS
    Added user rasho.

   

15. mkdir /home/yusari

16. chown -R ajeeth:smbgrp /home/yusari/

17. chmod -R 0777 /home/yusari/

18. chcon -t samba_share_t /home/yusari/

19. vi /etc/samba/smb.conf

    [yusari]
    path = /home/yusari
    valid users = @smbgrp
    guest ok = no
    writable = yes
    browsable = yes
    read only = no


20.systemctl restart smb nmb.service