autofs/etc/auto.smb aktualisiert
This commit is contained in:
parent
3445086dc5
commit
48a75ea45f
@ -38,7 +38,7 @@ get_krb5_cache() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
key="$1"
|
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
|
for P in /bin /sbin /usr/bin /usr/sbin
|
||||||
do
|
do
|
||||||
@ -51,14 +51,15 @@ done
|
|||||||
|
|
||||||
[ -x $SMBCLIENT ] || exit 1
|
[ -x $SMBCLIENT ] || exit 1
|
||||||
|
|
||||||
|
|
||||||
creds=/etc/creds/$key
|
creds=/etc/creds/$key
|
||||||
if [ -f "$creds" ]; then
|
if [ -f "$creds" ]; then
|
||||||
opts="$opts"',uid=$UID,gid=$GID,credentials='"$creds"
|
opts="$opts"',credentials='"$creds"
|
||||||
smbopts="-A $creds"
|
smbopts="-A $creds"
|
||||||
else
|
else
|
||||||
get_krb5_cache
|
get_krb5_cache
|
||||||
if [ -n "$cache" ]; then
|
if [ -n "$cache" ]; then
|
||||||
opts="$opts"',multiuser,cruid=$UID,sec=krb5i'
|
opts="$opts"',multiuser,cruid=$uid,sec=krb5i'
|
||||||
smbopts="-k"
|
smbopts="-k"
|
||||||
export KRB5CCNAME=$cache
|
export KRB5CCNAME=$cache
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user