Edit "/etc/sudoers" file, and append the following line.
To mount a shared folder you must install this package, otherwise you will get a very confusing error message when mounting a folder.
mount: /home/xavierlin/source: cannot mount xxx read-only.
Reference: https://askubuntu.com/questions/1113874/mount-t-cifs-results-in-cannot-mount-readonly-error
user
is the user name you pass to the server as credentials.uid
is the user name on the client that is mounting the share.Use this method if you are not able to acquire sudoer permission for mount/umount.
Note that though you can mount a shared folder, you will still have several permission limitations on the mounted folder.
Solution: Use gio mount
util.
gio mount smb://10.77.215.100/hdp
Password required for share hdp on 10.77.215.100
User [xavierlin]: (your Windows user name)
Domain [WORKGROUP]: (type enter to use default value)
Password: (your Windows password)
id
to see your user id on Ubuntu.ln -s
to create a link to the shared folder.