jmpatagonia
2020-Oct-01 13:06 UTC
[Samba] help to updating resources shares by demand on file pam_mount.conf.xml
Hello, working with pam_mount I need a way to update the shares mapped on the file pam_mount.conf.xml when the resources shares change on fileserver. The shares are mapped correctly and work fine when user logon, but if a new share is created or an existing is deleted how can update this on the ALL clients without move physical to any client. The users dont have permission to edit this file and their dont know how. Basically maintenance of shares mapped in this file. <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd"> <pam_mount> <volume fstype="cifs" server="domain-server2.policia2.rionegro.gov.ar" path="GRUPO_1" mountpoint="/home/POLICIA2/%(USER)/Escritorio/GRUPO_1" Options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME)" > <not> <uid>0-9999</uid> </not> </volume> <volume fstype="cifs" server="domain-server2.policia2.rionegro.gov.ar" path="GRUPO_2" mountpoint="/home/POLICIA2/%(USER)/Escritorio/GRUPO_2" Options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME)" > <not> <uid>0-9999</uid> </not> </volume> <volume fstype="cifs" server="domain-server2.policia2.rionegro.gov.ar" path="GRUPO_3" mountpoint="/home/POLICIA2/%(USER)/Escritorio/GRUPO_3" Options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME)" > <not> <uid>0-9999</uid> </not> </volume> <!-- ... --> <mkmountpoint enable="1" remove="true" /> </pam_mount> Regards.