My setup:
I have a server (ubuntu server 20.04) which is connected with a netgear NAS.
I have mounted the NAS via iscsiadm login procedures mentioned in a guide-link: Ubuntu 20.04 – How to setup iSCSI initiator
My Issue:
After doing so, I am able to access the NAS drive on my server, and I am able to do all read/write operations. Now I am sharing a specific folder of the NAS drive, named "vod", from the server using samba. So I edited the smb.conf
file and added the following block at the end of the config file:
[VideoOnDemand]
comment = Samba on Ubuntu
path = /mnt/opps_fsipl/ops_fsipl/web_apps/Jadu/server/dist/public/vod
read only = no
writeable = yes
browsable = yes
After doing so, I am able to the following things:
1. On a windows machine in the same local network: I am able to map a new network drive by connecting to \\server-ip\videoondemand\
and entering the correct login credentails (as configured in the setup of samba), I am able to access the desired folder mentioned in the smb.conf
file, and do all read and write operations on it.
2. On an Ubuntu 20.04 machine in the same local network: I am able to connect using nautilus using smb://server-ip/videoondemand/
and also do all read and write operations.
However, on same Ubuntu 20.04 machine, I am trying to mount //server-ip/videoondemand/ using the following command:
sudo -S mount -t cifs -w -o username=${usernamehere} -o password=${password-here},dir_mode=0777,file_mode=0777,nounix //${server-ip}/videoondemand/ /home/fsmds/Video_on_Demand
To this I get the following error:
mount: /home/fsmds/Video_on_Demand: //${server-ip}/videoondemand/ is write-protected but explicit read-write mode requested.
I am not able to understand why I am getting this message, and I have checked the permission of the folder being shared: 90210945 drwxrwxrwx 2 server server 4096 Aug 17 13:23 vod
Thanks in advance!