<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.qnap.com/mediawiki/index.php?title=How_to_Install_Linux_DiskQuota&amp;feed=atom&amp;action=history</id>
	<title>How to Install Linux DiskQuota - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.qnap.com/mediawiki/index.php?title=How_to_Install_Linux_DiskQuota&amp;feed=atom&amp;action=history"/>
	<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=How_to_Install_Linux_DiskQuota&amp;action=history"/>
	<updated>2022-08-31T22:25:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.qnap.com/mediawiki/index.php?title=How_to_Install_Linux_DiskQuota&amp;diff=942&amp;oldid=prev</id>
		<title>Glenn: +Category:Adding new services</title>
		<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=How_to_Install_Linux_DiskQuota&amp;diff=942&amp;oldid=prev"/>
		<updated>2015-10-26T09:50:49Z</updated>

		<summary type="html">&lt;p&gt;+&lt;a href=&quot;/wiki/Category:Adding_new_services&quot; title=&quot;Category:Adding new services&quot;&gt;Category:Adding new services&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:50, 26 October 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot; &gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If anyone finds a way to feasibly install DiskQuota on the QNAP system without having to do this hack, please let the user community know.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If anyone finds a way to feasibly install DiskQuota on the QNAP system without having to do this hack, please let the user community know.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Adding new services]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Glenn</name></author>
	</entry>
	<entry>
		<id>https://wiki.qnap.com/mediawiki/index.php?title=How_to_Install_Linux_DiskQuota&amp;diff=112&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;This page describes how to install and use [http://sourceforge.net/projects/linuxquota/ Linux DiskQuota] on the QNAP TS-459U-SP+ (but this will probably work on most other QNA...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=How_to_Install_Linux_DiskQuota&amp;diff=112&amp;oldid=prev"/>
		<updated>2015-06-16T09:54:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This page describes how to install and use [http://sourceforge.net/projects/linuxquota/ Linux DiskQuota] on the QNAP TS-459U-SP+ (but this will probably work on most other QNA...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page describes how to install and use [http://sourceforge.net/projects/linuxquota/ Linux DiskQuota] on the QNAP TS-459U-SP+ (but this will probably work on most other QNAP NAS systems too). &lt;br /&gt;
&lt;br /&gt;
The reason for this page is that the QNAP software only comes with user disk quotas for users that are on the QNAP system. I want to use Linux DiskQuota (i.e. quota, edquota, etc.) instead so that I don't have to create an account for each user that I want to set up a quota for. &lt;br /&gt;
&lt;br /&gt;
For example, in my environment, I have close to 100 workstations that mount a QNAP shared folder via NFS. This shared folder contains over 1,000 user home directories. I don't want to create a user account for all those users on my QNAP system, so I use Linux DiskQuota to set a disk quota for each home directory's UID since the QNAP system won't be able to recognize what user the UID belongs to. Once I set the disk quota for a user, it is enforced across all the NFS mounts on all my workstations.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Installation  ==&lt;br /&gt;
&lt;br /&gt;
The following will show how I &amp;quot;installed&amp;quot; DiskQuota. I put installed in quotes because it's sort of a hack. I intended to install DiskQuota by source, but it had too many dependencies most of which were not available as ipkg packages. Compiling DiskQuota requires the &amp;lt;tt&amp;gt;rpcgen&amp;lt;/tt&amp;gt; compiler which is included with glibc-common. To make a long story short, installing glibc from source is a major pain and I eventually gave up on the rabbit trail of dependencies. &lt;br /&gt;
&lt;br /&gt;
The instructions here show a hack that will allow you to get DiskQuota up and running for your needs. Until QNAP enables a more robust Quota feature in their software, this page may be useful. &lt;br /&gt;
&lt;br /&gt;
To start, you will need to access a Linux machine that is using Intel i686 hardware. For me, I used Fedora 12 Intel i686 VM. &lt;br /&gt;
&lt;br /&gt;
Log onto this machine and download DiskQuota. &lt;br /&gt;
&lt;br /&gt;
 # wget http://sourceforge.net/projects/linuxquota/files/quota-tools/4.00-pre1/quota-4.00-pre1.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
DiskQuota requires some prerequisites that hopefully your system already has installed: &lt;br /&gt;
&lt;br /&gt;
*gcc &lt;br /&gt;
*glib &lt;br /&gt;
*glibc &lt;br /&gt;
*glibc-common&lt;br /&gt;
&lt;br /&gt;
On my system these were already installed from RPM packages. &lt;br /&gt;
&lt;br /&gt;
Compile DiskQuota, '''but don't install it on your system'''. &lt;br /&gt;
&lt;br /&gt;
 # tar -xzf quota-4.00-pre1.tar.gz&lt;br /&gt;
 # cd quota-tools&lt;br /&gt;
 # ./configure&lt;br /&gt;
 # make&lt;br /&gt;
&lt;br /&gt;
The binaries are now compiled, but we do not need to run &amp;lt;tt&amp;gt;make install&amp;lt;/tt&amp;gt; since we are intending to put these binaries on our QNAP system. &lt;br /&gt;
&lt;br /&gt;
The default install location for the binaries are configured to go into &amp;lt;tt&amp;gt;/usr/local&amp;lt;/tt&amp;gt;, but you can change this if you want when you run &amp;lt;tt&amp;gt;./configure&amp;lt;/tt&amp;gt;. For the sake of this HOWTO, I will assume it is to go into &amp;lt;tt&amp;gt;/usr/local&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Copy the necessary binaries to the QNAP system. &lt;br /&gt;
&lt;br /&gt;
 # scp -p quotacheck quotaon edquota repquota warnquota quotastats setquota quot xqmstats convertquota rpc.rquotad admin@&amp;amp;lt;QNAP system&amp;amp;gt;:/usr/local/sbin/&lt;br /&gt;
 &lt;br /&gt;
 # scp -p warnquota.conf quotatab quotagrpadmins admin@&amp;amp;lt;QNAP system&amp;amp;gt;:/usr/local/etc/&lt;br /&gt;
 &lt;br /&gt;
 # scp -p quota admin@&amp;amp;lt;QNAP system&amp;amp;gt;:/usr/local/bin/&lt;br /&gt;
 &lt;br /&gt;
 # ssh admin@&amp;amp;lt;QNAP system&amp;amp;gt; ln -sf /usr/local/sbin/quotaon /usr/local/sbin/quotaoff&lt;br /&gt;
 &lt;br /&gt;
 # ssh admin@&amp;amp;lt;QNAP system&amp;amp;gt; mkdir -p /usr/local/include/rpcsvc&lt;br /&gt;
 &lt;br /&gt;
 # scp -p rquota.h rquota.x admin@&amp;amp;lt;QNAP system&amp;amp;gt;:/usr/local/include/rpcsvc&lt;br /&gt;
&lt;br /&gt;
Make sure $PATH is contains &amp;lt;tt&amp;gt;/usr/local/bin&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;/usr/local/sbin&amp;lt;/tt&amp;gt;. If not, add these to your &amp;lt;tt&amp;gt;.profile&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;/etc/profile&amp;lt;/tt&amp;gt; on the QNAP system. &lt;br /&gt;
&lt;br /&gt;
Once I did this, I was able to start using &amp;lt;tt&amp;gt;edquota&amp;lt;/tt&amp;gt; to set up quotas by UIDs of files in my shared folders. The quotas were then enforced on the other systems that NFS mounted the shared folder. &lt;br /&gt;
&lt;br /&gt;
If anyone finds a way to feasibly install DiskQuota on the QNAP system without having to do this hack, please let the user community know.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>