Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

nested samba share

$
0
0

For some reason the share //192.168.1.5/NonMedia/QEveline won't mount by /etc/fstab contents.The error is

mount error(13): Permission denied

Why can't I mount a share as another user?this is the relevant part of fstab

#//192.168.1.5/QMedia /mnt/Proxmox5/QMedia cifs ,username=guyf,password=redacted,vers=3.0,sec=ntlmv2,iocharset=utf8,gid=1003,uid=1001,file_mode=0750,dir_mode=0750 0 0//192.168.1.5/NonMedia/QEveline /mnt/Proxmox5/QEveline cifs ,username=eveline,password=redacted,workgroup=workgroup,iocharset=utf8,file_mode=0770,dir_mode=0770 0 0#//192.168.1.5/NonMedia /mnt/Proxmox5/NonMedia cifs ,username=guyf,password=redacted,vers=3.0,sec=ntlmv2,iocharset=utf8,gid=1003,uid=1001,file_mode=0750,dir_mode=0750 0 0#//192.168.1.5/NonMedia/guyf /mnt/Proxmox5/guyf cifs ,username=guyf,password=redacted,vers=3.0,sec=ntlmv2,iocharset=utf8,gid=1001,uid=1001,file_mode=0750,dir_mode=0750 0 0

Proxmox is serving the files with samba.I have different usernames (elizabeth,lieslotte,guyf,eveline) they are all in the qnap group.Every user has his own share which is nested on a //192.168.1.4/NonMedia/username. Only the username should be able to read/edit and delete these usernameshare/files.I also have shares like //192.168.1.4/NonMedia/QDocuments //192.168.1.4/NonMedia/QGame etc...these shares need to be accessible/editable by every user.Only the creator of the file can delete his file.

This is an extract of my smb.conf file

[QMedia]path = /mnt/Data/Mediaread only = Noguest ok = yesvalid users = guyf eveline @qnapforce create mode = 770force directory mode = 1770inherit permissions = yeswriteable = yesforce user = guyfforce group = qnap[QEveline]comment = Hier staat mediapath = /mnt/QData/NonMedia/QEvelineread only = Noguest ok = Novalid users = evelineforce create mode = 770force directory mode = 1770inherit permissions = yeswriteable = yesforce user = evelineforce group = eveline[guyf]path = /mnt/QData/NonMedia/guyfread only = Noguest ok = yesvalid users = guyf force create mode = 770force directory mode = 1770inherit permissions = yeswriteable = yesforce user = guyf       force group = guyf[NonMedia]path = /mnt/QData/NonMediaread only = Noguest ok = Novalid users = guyf eveline @qnapforce create mode = 700force directory mode = 1770inherit permissions = yeswriteable = yesforce user = guyf       force group = qnap

How does one mount nested shares with different permissions?

Thanks for reading,Guy


Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>