Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Disk Quotas with Samba

Posted on 2004-09-10
5
1,971 Views
Last Modified: 2013-12-15
I have Samba 3.0.4 running (samba is working fine) on SuSE 8.2 Personal with Webmin 1.6. I have read the instructions at www.webmin.com and have downloaded and installed the Disk Quota Module. I  have enabled quotas in
in the Disk and Filesystems section for my /usr directory. The weird thing is when I click on disk quotas under system in webmin it says The quotas package does not appear to be installed on your system but when I go into the module configuration there is not place to point to the module file..I installed the module throught the webmin configuration|webmin modules and it said the installation was successful. Can anyone tell me how to do this correctly or how to install and set quotas from the command line step by step. Thanks!
0
Comment
Question by:tamischultz
5 Comments
 
LVL 10

Expert Comment

by:Luxana
ID: 12036485
Hi,

try use your shell for now:

ENABLE QUOTAS

1:
Set options in /etc/fstab

/dev/hda2              /home       ext2              defaults,usrquota,grpquota     1     2

this is important so check you /etc/fstab and add usrquota,grpquota to options.

2:
Create the quota.user and quota.group files on top of the /home filesystem:

# touch /home/quota.user  /home/quota.group
# chmod 600 /home/quota.user  /home/quota.group

3:
Run quotacheck to initialize the databases ( /home/quota.user  /home/quota.group ).

# quotacheck -avug

4:
Then verify that your quota database files have been initialized by noting that they are no longer of size zero.

# ls -al /home/quota.*

5:
Run quotaon to enable the quota system:

# quotaon -a

6:
Verify that your system's initialization script /etc/rc.d/rc.sysinit will turn on quotas when system boots.

if [ -x  /sbin/quotacheck ]
then
    echo " Checking quotas."
    /sbin/quotacheck -avug
    echo " DONE "
fi
if [ -x /sbin/quotaon ]
then

echo " Turning on quotas."
       /sbin/quotaon -avug
fi

---------------------------------------
Try follow my steps mayby you fist missing quota files ano your partition so webming always give errror and then try continue with webmin.


LUXANA

0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 12041764
you sure you want to enable the quota in the /usr folder/directory?? /usr is mainly to contain the applications/system programs and not for data, I hope I misunderstand your question.

or if you need to setup quota in the /usr with some reason, that's fine. but becareful of the quota setting for users. and yes Luxana gave you very good hints on setting up the quota in console mode, and you may missing the quota file as Luxana said which produe there error, try what Luxana suggest and come back if you still got any error.
0
 

Author Comment

by:tamischultz
ID: 15081364
Thanks for your help, I had to upgrade the kernel to enable disk quotas
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 16143753
PAQed with points (250) refunded

DarthMod
Community Support Moderator
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Centos 7 User to Start Apache, MariaDB, LDAP 5 48
Linux mount of Windows Shared Now Fails 8 75
CentOS 7 Linux for HP DL380 G4 32Bits 7 46
LINUX Field Separators 7 37
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question