autofs/etc/auto.smb aktualisiert
This commit is contained in:
		| @@ -38,7 +38,7 @@ get_krb5_cache() { | ||||
| } | ||||
|  | ||||
| key="$1" | ||||
| opts="-fstype=cifs" | ||||
| opts="-fstype=cifs,file_mode=0777,dir_mode=0777,nounix,gid=tape,uid=bacula,forcegid,forceuid" | ||||
|  | ||||
| for P in /bin /sbin /usr/bin /usr/sbin | ||||
| do | ||||
| @@ -51,14 +51,15 @@ done | ||||
|  | ||||
| [ -x $SMBCLIENT ] || exit 1 | ||||
|  | ||||
|  | ||||
| creds=/etc/creds/$key | ||||
| if [ -f "$creds" ]; then | ||||
|     opts="$opts"',uid=$UID,gid=$GID,credentials='"$creds" | ||||
|     opts="$opts"',credentials='"$creds" | ||||
|     smbopts="-A $creds" | ||||
| else | ||||
|     get_krb5_cache | ||||
|     if [ -n "$cache" ]; then | ||||
|         opts="$opts"',multiuser,cruid=$UID,sec=krb5i' | ||||
|         opts="$opts"',multiuser,cruid=$uid,sec=krb5i' | ||||
|         smbopts="-k" | ||||
|         export KRB5CCNAME=$cache | ||||
|     else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user