Hi all!
I have a question about FFS on Windows. I set up a NAS for the back up, and for safety reasons (eg ransomware could enter and lock the NAS) i do not want to store the credentials in windows. So FFS every time, correctly, prompts me for the credentials.
Is there a way to set up FFS to pass the credentials in some command line automated way, so i can launch the backup without everytime prompting me for the share credentials?
By the way, if i have an user with writing permission that i want to use with FFS for the backups and a user with read only permission that i want to use for normal use, is there a way to manage them (assuming windows cannot manage more users connected at the same time with the same share; only way is net use and delete?)
Thanks in advance
access NAS folder automatically with not stored credentials
- Posts: 2
- Joined: 19 Mar 2021
-
- Posts: 4867
- Joined: 11 Jun 2019
FFS doesn't offer this but you can look into cmd, "net use"
- Posts: 1202
- Joined: 8 May 2006
Heh.
Something along the lines of:
\\NAS\backups is what you want to log into
fedepr is user username you want to log in with
123456789 is your password to that share
You could run that from a batch file, that then calls FFS.
Something along the lines of:
net use \\NAS\backups /user:fedepr 123456789
fedepr is user username you want to log in with
123456789 is your password to that share
You could run that from a batch file, that then calls FFS.
The syntax of this command is:
NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
NET USE {devicename | *} [password | *] /HOME
NET USE [/PERSISTENT:{YES | NO}]
-
- Posts: 4867
- Joined: 11 Jun 2019
And then
"net use \\NAS\backups /delete"
"net use \\NAS\backups /delete"
- Posts: 2
- Joined: 19 Mar 2021
hi, thanks for answering, that's more or less what i've figured out, but is there a way to insert the bat files into the FFS process in some way, so I don't have to launch bat files manually first and after?
-
- Posts: 4867
- Joined: 11 Jun 2019
You can run FFS from command line. Just put that command in the batch script
https://freefilesync.org/manual.php?topic=command-line
https://freefilesync.org/manual.php?topic=command-line