mount.cifs 无需再次输入用户密码

mount.cifs 无需再次输入用户密码

我已经使用用户登录并生成 kerberos 文件:

#klist
Ticket cache: FILE:/tmp/krb5cc_625342619
Default principal: [email protected]

Valid starting     Expires            Service principal
15/12/16 14:22:17  16/12/16 00:22:17  krbtgt/[email protected]
    renew until 16/12/16 00:22:17

然后我尝试挂载共享:

mount.cifs -o domain=MYDOMAIN.CORPDOMAIN.COM,sec=krb5,user=USER,vers=2.1 //share.sharedomain.corpdomain.com/folder/folder /home/USER/sharefolder --verbose

但他总是给我:

mount error(95): Operation not supported

如果我手动输入密码,一切正常:

mount.cifs //share.sharedomain.corpdomain.com/folder/folder /home/USER/sharefolder -o user=USER domain=DOMAIN sec=krb5 --verbose

或者

mount -t cifs --verbose --source //share.sharedomain.corpdomain.com/folder/folder /home/USER/sharefolder -o user=USER,domain=DOMAIN,password="XPTOPWD666"

有什么建议吗?

相关内容