Quota Questions

Quota Questions

Post by Klondi » Thu, 13 Jul 1995 04:00:00



I recently installed the new quota patches for 1.2.11.  Everything works great,
except for a couple of things:

1.  In /etc/fstab, the quota docs say to add a defaults,usrquota,grpquota to the
        file system you wish to enable quotas on, e.g.

        /dev/sda1       /       ext2    defaults
        /dev/sda2       /d0     ext2    defaults,usrquota,grpquota
        ...
        ...

    This works fine, but requires that a quota.user and quota.group file be located
        on the root directory of the filesystem with the quotas enabled.  The
        documentation states that you can redefine where these files are located
        with a usrquota=/usr/adm/....... But if you implement this, the quota
        utils cannot locate these files if you wish to use the grpquota.  For example
        if /etc/fstab contains the line:

        /dev/sda2       /d0     ext2    defaults,usrquota=/usr/adm/quota.user,grpquota=/usr/adm/quota.group

        Then quotacheck bombs out with a message (similar to):
        ** Cannot open (/usr/adm/quota.user,grpquota=/usr/adm/quota.group)
        ** file not found.

        It appears that it thinks the user quota filename is actually:
                /usr/adm/quota.user,grpquota/usr/adm/quota.group
                (that is, everything AFTER quotausr= )

        So, whats the fix??

2.  If a user logs on to a system with their home directory linked (NFS) to
        another machine that HAS quotas enabled on the filesystem, a quota -v
        shows that the user has NO quotas enforced.  Yet if the user logs onto
        the machine that actually houses the quota-enabled file system, a quota -v
        shows the correct information.  The rquotad daemon IS running on the
        server with the quotas, so what is the problem??

3.  The grace period "disappears" from time to time.  Every time I add a new user
        to the system, I do a edquota -p quser <newuser> and a quotacheck -avug.
        Is this wrong??  Does this re-initialize the grace period info??  Help!!

 
 
 

Quota Questions

Post by Marco van Wiering » Fri, 14 Jul 1995 04:00:00



>I recently installed the new quota patches for 1.2.11.  Everything works great,
>except for a couple of things:

>1.  In /etc/fstab, the quota docs say to add a defaults,usrquota,grpquota to the
>    file system you wish to enable quotas on, e.g.

>    /dev/sda1       /       ext2    defaults
>    /dev/sda2       /d0     ext2    defaults,usrquota,grpquota
>    ...
>    ...

>    This works fine, but requires that a quota.user and quota.group file be located
>    on the root directory of the filesystem with the quotas enabled.  The
>    documentation states that you can redefine where these files are located
>    with a usrquota=/usr/adm/....... But if you implement this, the quota
>    utils cannot locate these files if you wish to use the grpquota.  For example
>    if /etc/fstab contains the line:

>    /dev/sda2       /d0     ext2    defaults,usrquota=/usr/adm/quota.user,grpquota=/usr/adm/quota.group

>    Then quotacheck bombs out with a message (similar to):
>    ** Cannot open (/usr/adm/quota.user,grpquota=/usr/adm/quota.group)
>    ** file not found.

Correct, that is a problem with the mntent handling within the libs,
options are seperated by comma's and the mntent functions have a function
which gives you a pointer to the option within the option string. It seems
that it return not only the option but the whole following option string.
I will fix that tonight.

Quote:

>    It appears that it thinks the user quota filename is actually:
>            /usr/adm/quota.user,grpquota/usr/adm/quota.group
>            (that is, everything AFTER quotausr= )

>    So, whats the fix??

Right now you could add some code that does a strchr for a comma
and put a \0 at that possition. But I don't know if this works
it may break some other code. I have to take a look myself to be sure.
Quote:

>2.  If a user logs on to a system with their home directory linked (NFS) to
>    another machine that HAS quotas enabled on the filesystem, a quota -v
>    shows that the user has NO quotas enforced.  Yet if the user logs onto
>    the machine that actually houses the quota-enabled file system, a quota -v
>    shows the correct information.  The rquotad daemon IS running on the
>    server with the quotas, so what is the problem??

What does it show, I use it on my own server without any problems. You are using
all Linux machines ?

Quote:

>3.  The grace period "disappears" from time to time.  Every time I add a new user
>    to the system, I do a edquota -p quser <newuser> and a quotacheck -avug.
>    Is this wrong??  Does this re-initialize the grace period info??  Help!!

It should not have any impact anymore, I changed the semantics to only
update the use-counters on an run of quotacheck, this is only true if you use
the latest quotacheck program.

Marco.
--

<HREF="http://www.cistron.nl/~mvw">My private home page</A>

 
 
 

1. Quota Question w/Slackware96

How do i setup quota system for user inside Linux using Slackware96
can anyone e-mail an attachment of information on how to do this things
thx!

PS. plus include any information you might have for starting an SHELL
account
with T1 and router and hub, etc.

Thx.

--
                    "Friendship with oneself is all-important,
                  because without it one cannot be friends with
                            anyone else in the world."
                                        --- by: Eleanor Roosevelt
                                        /
                                       /
                                  ```
                                (O) (O)
----------------------------OOOo--(_)--oOOO-----------------------------------
Name:    Kevin T. Nguyen - Tu          Hobbie: Photography, Internet,
Movies

Andy_Lau
Phone:   (800)  395 - 8410
HTTP: www.earthlink.net/~smilepak

"Treat your friend just like how you like to be treated!"
                --by: ???
------------------------------------------------------------------------------
                              | |    | |
                            (___|  (___|
By: Smilepak

2. X server

3. User Quota Question

4. Top 10 subjects comp.unix.shell

5. printer and quota questions

6. The mouse has the same color as the background in mentor

7. Simple Quota question

8. x11amp 0.7 screeching

9. Mail quota question...

10. Solaris 10 RBAC (quota) question

11. quota question?

12. quota question.

13. Simple quota question