Added option 'noperm' of mounting Samba resources (Home,Disks,FTP),

because without it OpenOffice work correct not always.
develop
root 15 years ago
parent c1710a578c
commit 2db662b288

@ -1643,11 +1643,11 @@ or ld_bind_dn or ld_bind_pw")
return foundTwoSession
def mountSambaRes(self,userName,userPwd,uid,gid,res,path,
mountUidList=['ftp','share']):
mountUidList=['ftp','home','share']):
"""Монтирует Samba ресурсы"""
if res in mountUidList:
# Монтируем директории c uid
mountStr="mount -t cifs -o user=%s,uid=%s,gid=%s"\
mountStr="mount -t cifs -o user=%s,uid=%s,gid=%s,noperm"\
%(userName,uid,gid) +\
" //%s/%s %s" %(self.clVars.Get("cl_remote_host"),
res, path)

Loading…
Cancel
Save