Comment on Best Network File Sharing before a NAS
NightEagle@lemmy.world 1 year agoTry using the IP address instead of the NETBIOS name, it’s usually more reliable that way. Also the error you are getting is because the /mn folder needs to be created beforehand (the mount command doesn’t create the mount point for you). Also make sure you have the cifs package installed for your distro. Hope this helps :)
Okus@lemmy.dbzer0.com 1 year ago
Ok thanks. I have created /mn, but now it prompts for a password for root@//192.168.69.69/sharedmain
But I didn’t set a password
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
NightEagle@lemmy.world 1 year ago
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.
cyberciti.biz/…/linux-mount-cifs-windows-share/
BearOfaTime@lemm.ee 1 year ago
Windows expects to see a user account from it’s own domain. Without specifying a username/password in the mount command, there’s no credentials for windows to use to allow access to the share.