Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: jane on January 21, 2003, 09:38:24 AM
-
I found this
/sbin/e-smith/db configuration set maxAccNameLength 15
to set the maximum account name length to 15 characters and
/sbin/e-smith/db accounts set $username user FirstName $firstname LastName $lastname PasswordSet no Uid $number Gid $number
to create user accounts. What I'm currently looking for is how to set the quota. Anybody knows? Any idea?
-
I have same problem, i need this request..
-
Simply run
/sbin/e-smith/db accounts set $username user FirstName $firstname LastName $lastname PasswordSet no Uid $number Gid $number MaxBlocksSoftLim ${size in kb (has to be a multiple of 1024)} MaxBlocks ${size in kb (has to be a multiple of 1024)}
/sbin/e-smith/signal-event user-modify $username
The MaxBlocksSoftLim is when users will begin recieving warnings, and MaxBlocks is the absolute limit - the user stops recieving emails, being able to add files to ibays etc.....
Hope this is useful
Chris Sarginson
Expotel Technical Support
-
Hi Chris,
Failed!!! :(, but it still doesn't update the quota by looking at the repquota -avu....
If the account is already created, can it be modify by using the command line???
Thank you.
Daley
-
Block limits File limits
User used soft hard grace used soft hard grace
csargiso -- 2060 10240 10240 61 0 0
aley -- 160 0 0 42 0 0
rcolduck -- 180 0 0 49 0 0
ldasey -- 80 2048 3072 22 0 0
-
Here is a snip from my repquota -avu....
Block limits File limits
User used soft hard grace used soft hard grace
csargiso -- 2060 10240 10240 61 0 0
aley -- 160 0 0 42 0 0
rcolduck -- 180 0 0 49 0 0
ldasey -- 80 2048 3072 22 0 0
I created the users through the web interface, and then through the CLI ran /sbin/e-smith/db accounts set $username user FirstName $firstname LastName $lastname PasswordSet no Uid $number Gid $number MaxBlocksSoftLim ${size in kb (has to be a multiple of 1024)} MaxBlocks ${size in kb (has to be a multiple of 1024)}
followed by /sbin/e-smith/signal-event user-modify $username,
and have had no problems since.
Chris
-
i think i have the kernel VFS error, based on the below snapshot..., however, the quota setting is unable to apply the quota file, which can be confirm by the repquota -avu.
May 2 00:37:00 sme kernel: VFS: Can't read quota structure for id 5084.
May 2 00:37:01 sme kernel: VFS: Quota for id 5087 referenced but not present.
May 2 00:37:01 sme kernel: VFS: Can't read quota structure for id 5087.
May 2 00:37:01 sme kernel: VFS: Quota for id 5090 referenced but not present.
May 2 00:37:01 sme kernel: VFS: Can't read quota structure for id 5090.
May 2 00:37:01 sme kernel: VFS: Quota for id 5116 referenced but not present.
May 2 00:37:01 sme kernel: VFS: Can't read quota structure for id 5116.
May 2 14:47:25 sme kernel: VFS: find_free_dqentry(): Data block full but it shouldn't.
May 2 14:47:25 sme kernel: VFS: Error -5 occured while creating quota.
Please help.
Thank you.
Daley