Accessing a network smb share in linux

Welcome to the forum!

Check this out:

You may want to try

//192.168.1.93/mnt/user/Media /mnt/Media cifs credentials=/home/user/.smbcreds,uid=1000,gid=1000,iocharset=utf8,rw,file_mode=0660,dir_mode=0770 0 0

You can find the UID and GID of your user by running id user. Usually the first user created starts at 1000.

It’s possible that the password may interfere with the mount. Also, it’s not secure to keep your password in a world-readable file, like fstab. Buffy described in the post I linked how to create the .smbcreds file. After you are done, chmod 600 /home/user/.smbcreds to make it readable and writable only by your user.

If it keeps giving you headaches, do as the mount command says and run sudo dmesg | grep -i -e cifs -e smb

1 Like