Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Disk Quotas with Samba

Posted on 2004-09-10
5
Medium Priority
?
2,110 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
[X]
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
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

Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

660 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