I'm trying to setup 2 samba shares (actual Linux permissions on them are 777):
- Volume_1 (cifs username is firstUser)
- Volume_1/someSubDir (cifs username is secondUser)
I get this error when second user tries to access Volume_1/someSubDir:
mount error(13): Permission denied
Is this how samba supposed to work?
Does secondUser username has to be added to Volume_1 access list also?
Is there a way to give all users access to Volume_1 and restrict access to Volume_1/someSubDir?
works:
sudo mount -t cifs -o username=firstUser,password=firstUserPassword,_netdev,noatime //192.168.10.199/Volume_1 /media/Volume_1
Doesn't:
sudo mount -t cifs -o username=secondUser,password=secondUserPassword,_netdev,noatime //192.168.10.199/Volume_1/someSubDir /media/someSubDir