...
To mount in root account, run below commands:
Code Block |
---|
sudo mount -t cifs //192.168.10.21/repository /mnt/nas -ousername=yourUserName,password=yourPassword,file_mode=0664,dir_mode=0775,uid=root,gid=root |
...
If you want to take it effect right away, run
Code Block |
---|
sudo mount -a |
Otherwise, the samba shared directory will be automatically mounted when you reboot your machine.