Solved

Disk Quotas with Samba

Posted on 2004-09-10
5
1,915 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
AWS Advice on using WHM/cPanel 1 60
MySQL/Linux: Get Table Names from MySQL Dump 1 50
Parse DNS log 3 33
LINUX, CPANEL & WHM 5 22
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

758 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now