The initial install and config is very straight forward. For the purposes of this guide I am setting up a share called backupdata for a new user called backup:
1. yum install samba samba-client
samba is the actual server side software. samba-client is just to test connectivity for step 7
2. useradd backup
3. passwd backup - set a password
4. smbpasswd -a backup - enter same password as above
5. vim /etc/samba/smb.conf
under the [global] tag, add in ntlm auth = yes
create a new tag at the bottom such as the following:
[data]
        comment = Backup Data  #describe what the share is
        browseable = Yes 
        writeable = Yes
        path = /backupdata  #path to directory to share
        valid users = backup root  #users to allow login
        create mask = 0765 #permissions on new files, adjust as appropriate
6. systemctl restart smb - restarts the samba service
7. smbclient -L servername -U backup - tests what shares are available on your server to the user backup. It should return asking for the password then the following: 
[root@servername~]# smbclient -L branchbackups -U backup
Enter SAMBA\backup's password:
        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk      Printer Drivers
        data            Disk      Backup Data
        IPC$            IPC       IPC Service (Samba 4.8.3)
        backup          Disk      Home Directories
Reconnecting with SMB1 for workgroup listing.
        Server               Comment
        ---------            -------
        Workgroup            Master
        ---------            -------
Providing this is there, you should be able to map it from Windows
No comments:
Post a Comment