• 0 Posts
  • 2 Comments
Joined 1Y ago
cake
Cake day: Oct 07, 2023

help-circle
rss

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 specifying a user that does exist on your Windows machine. Not quite sure if it will work without a password, but you can try.

https://www.cyberciti.biz/faq/linux-mount-cifs-windows-share/


Try 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 :)