I have a samba shares drive that is mounted at boot that works as I intend. Here is the fstab file:
//192.168.1.2/ext4tb /mnt/ext4tb cifs ,credentials=/home/frepie/.smbcredentials,iocharset=utf8,vers=1.0,sec=ntlm,user 0 0
When this works normally, I have total read,write and execute privileges on that share
Sometimes, for reasons that I ignore, that shared drive is not mounted at boot. Trying to resolve the issue without rebooting, I used the command
sudo mount.cifs //192.168.1.2/ext4tb /mnt/ext4tb
And the command requests the root password on the samba server
Password for root@//192.168.1.2/ext4tb: ********
The problem is the when doing so, I don't have the write privileges that I have when the mount at boot works normally.
$ mv /home/frepie/Music/Dark\ Latin\ Groove\ -\ La\ Quiero\ A\ Morir /mnt/ext4tb/media/Audio/
mv: cannot create regular file '/mnt/ext4tb/media/Audio/Dark Latin Groove - La Quiero A Morir': Permission denied
Somehow, I am not granted the same privileges when the mount is performed by fstab at boot.
mount
only consults thefstab
file if either the device OR mountpoint is given: does it work if you simply dosudo mount /mnt/ext4tb
for example?sudo mount -a
? That usesfstab
.