<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Trebuchet MS">Dear members of the Systemd mailing list,<br>
<br>
for a long time I have been struggling with a problem which sounds
relatively easy:<br>
I have a cifs file server and a Linux (CentOS 7) client. On the
client I want to mount a share from the file server using
Kerberos.<br>
Only the root user can perform the mount but typically it has no
Kerberos ticket. A user, on the other hand, has a Kerberos ticket
but must not mount anything. <br>
That means the mount has to be done by the root user and the uid
of a user who has a valid Kerberos ticket has to be used as an
option. For example:<br>
mount.cifs //path_to_file_server/share /mount_point -o
sec=krb5,cruid=123456<br>
So far so good. However, on the client there are multiple users
and each one wants to be able to mount the share to the same
directory.<br>
As to my knowledge, autofs is the only tool which provides a
solution for that (you can use something like "$USER" in the
autofs configuration file).<br>
<br>
Systemd has a automount functionality as well and I was hoping to
replace autofs by systemd/automount since autofs is very unstable
(as to my experience).<br>
Despite heavy googling I could not find a solution using
systemd/automount (or any other than autofs). My problem is that I
cannot specify the user-ID dynamically but only as a static string
in the ".mount" unit file (or fstab).<br>
Does anyone of you know if this is possible with systemd?<br>
<br>
Kind regard,<br>
<br>
Sebastian<br>
<br>
</font>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<style type="text/css">
p {
margin: 0px;
}
.gns-systems-link:visited {
color: #ffb400 !important;
}
.gns-systems-link {
color: #ffb400 !important;
}
</style>
<div>
<p><span style="font-size:10.0pt;font-family:"Trebuchet
MS",sans-serif"> Mit freundlichen Grüßen<br>
<b>Dr. Sebastian Treiber</b> | Systemanalytiker<br>
</span></p>
</div>
<br>
<div> <a href="http://www.gns-systems.de"><img alt="GNS Systems -
IT Dienstleistungen für Engineering"
src="cid:part1.E839A139.13CA4340@gns-systems.de" height="59"
width="235"></a><br>
<img src="cid:part3.529D355B.2D5D69F4@gns-systems.de"
height="33" width="235"><br>
</div>
<div>
<p><span style="font-size:10.0pt;font-family:"Trebuchet
MS",sans-serif"> GNS Systems GmbH<br>
Fronäckerstraße 36/1<br>
71063 Sindelfingen<br>
Tel.: +49 (0)7031/68838-66<br>
Fax: +49 (0)7031/68838-11 </span></p>
</div>
<br>
<div>
<p><span style="font-size:10.0pt;font-family:"Trebuchet
MS",sans-serif"> Geschäftsführer: Christopher Woll<br>
Sitz des Unternehmens: Braunschweig<br>
Registergericht: Amtsgericht Braunschweig<br>
Registernummer: HRB 4890<br>
<a style="color:#FFB400" href="http://www.gns-systems.de"><span
style="color:#FFB400">gns-systems.de</span></a> </span></p>
</div>
<br>
<br>
</div>
</body>
</html>