linux to windows file share

jabad

New Member
Joined
May 30, 2023
Messages
1
Reaction score
0
Credits
12
like i have linux server so and i have windows server i required everyday one single file gose to windows D: drive location this configureaiton without SMB protocal how to use which protocal give us advice
 


What distro?

You don't need the entire Samba suite, but you'll need some samba tools.

Add something similar to this, to your /etc/fstab file.

//mywindowsServer.windows.net/windowsShare /mnt/windowsShare cifs nofail,vers=3.0,credentials=/etc/smbcredentials/windowsShare.cred,dir_mode=0777,file_mode=0777,serverino

For redhat/centos/rocky/alma/fedora type distro's you''ll need to install cifs-utils

You will also need credentials for the windows server. ( username/password )

Then make a file in /etc/smbcredentials/windowsShare.cred
It should look something like this.

username=windowsUsder
password=0ooZSOG/PGhabcdefghijklmnopqrst123456789huQj5zYPJYJfst9Y+rhw==

Obviously your windows server, user name, and password hash will be different.
 

Members online


Top