It’s using the current user “root” as a login user for the share. You can specify a different share user using following command:
`# mkdir /mnt/cifs
mount -t cifs //server-name/share-name /mnt/cifs -o username=shareuser,password=sharepassword,domain=nixcraft
mount -t cifs //192.168.101.100/sales /mnt/cifs -o username=shareuser,password=sharepassword,domain=nixcraft`
Try specifing a user that does exist on your Windows machine. Not quite sure if it will work without a password, but you can try.
thorbot@lemmy.world 1 year ago
I’d just create a generic file share username and password locally in windows and use that from linux. It’s better to have some sort of credentials for your share anyway