[OpenAFS] Check free space on AFS share before login
Richter, Michael
m.richter@tu-berlin.de
Wed, 1 Feb 2017 10:08:42 +0000
--_000_f4d7c42795534042b2bd2ad49933414fEXMBX02tubitwintuberlin_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
we are using OpenAFS for the home drive. /home/users is a symlink to the A=
FS path with all the home shares. The users home is for example /home/users=
/username.
The users only have 1 GB of space available in that share. It often happens=
that the quota is reached and they are unable to login. Ubuntu doesn't giv=
e a meaningful error message. I think, Ubuntu doesn't know what's the probl=
em, because it sees only "/" as mountpoint, which has enough free space ava=
ilable.
Is there a way to check the free space of the user on login and give the us=
er a good error message if there is not enough free space available in the =
AFS share?
I think about using pam-script to run a script that checks it but I can't s=
ee a way to bring back that message to the user. Also pam-afs-session seems=
not to have some option for that. Is there some other solution?
Greetings
Michael
--
Michael Richter
Technische Universit=E4t Berlin
Universit=E4tsbibliothek
IT-Service
Fasanenstra=DFe 88, 10623 Berlin
Telefon: +49 (0)30 314-76310
m.richter@tu-berlin.de
www.ub.tu-berlin.de
--_000_f4d7c42795534042b2bd2ad49933414fEXMBX02tubitwintuberlin_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"DE" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi,<o:p></o:p></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">we are using OpenAFS for =
the home drive. /home/users is a symlink to the AFS path with all the home =
shares. The users home is for example /home/users/username.<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">The users only have 1 GB of spa=
ce available in that share. It often happens that the quota is reached and =
they are unable to login. Ubuntu doesn’t give a meaningful error mess=
age. I think, Ubuntu doesn’t know what’s the
problem, because it sees only “/” as mountpoint, which has eno=
ugh free space available.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Is there a way to check the fre=
e space of the user on login and give the user a good error message if ther=
e is not enough free space available in the AFS share?<o:p></o:p></span></p=
>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I think about using pam-script =
to run a script that checks it but I can’t see a way to bring back th=
at message to the user. Also pam-afs-session seems not to have some option =
for that. Is there some other solution?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"mso-fareast-language:D=
E">Greetings<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"mso-fareast-language:D=
E">Michael<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"mso-fareast-language:D=
E"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial","sans-serif";mso-fareast-language:DE">--
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial","sans-serif";mso-fareast-language:DE">Mi=
chael Richter<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial","sans-serif";mso-fareast-language:DE"><o=
:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial","sans-serif";mso-fareast-language:DE">Te=
chnische Universit=E4t Berlin<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial","sans-serif";mso-fareast-language:DE">Un=
iversit=E4ts</span><span style=3D"font-size:10.0pt;font-family:"Arial&=
quot;,"sans-serif";mso-fareast-language:DE">bibliothek<o:p></o:p>=
</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ar=
ial","sans-serif";mso-fareast-language:DE">IT-Service<o:p></=
o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ar=
ial","sans-serif";mso-fareast-language:DE"><o:p> </o:p>=
</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ar=
ial","sans-serif";mso-fareast-language:DE">Fasanenstra=DFe 8=
8, 10623 Berlin<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ar=
ial","sans-serif";mso-fareast-language:DE">Telefon: +49 =
(0)30 314-76310<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ar=
ial","sans-serif";mso-fareast-language:DE">m.richter@tu-berl=
in.de<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ar=
ial","sans-serif";mso-fareast-language:DE"><o:p> </o:p>=
</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ar=
ial","sans-serif";mso-fareast-language:DE">www.ub.tu-berlin.=
de<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
--_000_f4d7c42795534042b2bd2ad49933414fEXMBX02tubitwintuberlin_--