autofs/etc/auto.smb aktualisiert

This commit is contained in:
Peter Reichart 2024-06-25 23:35:17 +00:00
parent 3445086dc5
commit 48a75ea45f

View File

@ -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