quota

2004-08-15 Thread alexus
Is it possible to set a quota not for a username but for a userid or groupid
and not a group name.. I have bunch of virtual users but I do not want to
create them as a real users on the system, even without no passwords and/or
shells.

alexus

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


quota

2003-12-05 Thread Alexandr S. Yatulchik



hi all!

root#haron[p0]/etc/rc.d>uname -a
FreeBSD [skip] 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Fri Nov 21
15:10:56 EET 2003 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/kernel  i386
root#haron[p0]/etc/rc.d>



root#haron[p0]/etc/rc.d>edquota alex
Quotas for user alex:
/home/users: kbytes in use: 0, limits (soft = 18000, hard = 2)
inodes in use: 0, limits (soft = 0, hard = 0)
root#haron[p0]/etc/rc.d>

then:

root#haron[p0]/etc/rc.d>quota alex
Disk quotas for user alex (uid 1006): none
root#haron[p0]/etc/rc.d>


---
[EMAIL PROTECTED]/home/users/local/alex>quota -u
Disk quotas for user alex (uid 1006): none
[EMAIL PROTECTED]/home/users/local/alex>quota

why don`t work?
-
fstab:
root#haron[p0]/home/users/local/nemo>less /etc/fstab
[skip]
/dev/ad0s1f /home/users ufs rw,userquota,noexec 2
2
[skip]
root#haron[p0]/home/users/local/nemo>

kernel config :

options QUOTA

P.S. how I can solve my problem?

--
wbr, Alex aka Nemo

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Quota

2003-12-28 Thread fbsd_user
Is quota an auto load binary module or does it have to be compiled
into the kernel?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


quota advice

2013-06-01 Thread Pol Hallen
Hello all :-)

I using quota and I've a doubt: many howto advice to put to cron
something like:

quotacheck -vguma

but the problem is:

quotacheck: Quota for users is enabled on mountpoint /data so quotacheck
might damage the file.
Please turn quotas off or use -f to force checking.

So... can be a good idea, put:

quotaoff -a
quotacheck -vguma
quotaon -a

to script to do this check or there is another way?

thanks for help!

Pol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Quota problems

2005-03-09 Thread Skylar Thompson
I'm having some problems getting quotas enabled on a FreeBSD 4.11-RELEASE
box. I already have quotas enabled on two filesystems, and need to extend
that to a third (presently unquota'd) filesystem. I added
"userquota,groupquota" to the line in /etc/fstab for the filesystem,
touched the files quota.user and quota.group, and rebooted. The sytem came
back up fine, but hung after a few minutes of normal activity. I rebooted,
and the same thing happened. Turning of the quotas on just that filesystem
solved the problem. Has anyone else had problems like this?

-- 
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


pgpIai3q0Ncst.pgp
Description: PGP signature


Printing quota ?

2005-10-20 Thread Frank Bonnet

Hello

I'm searching for a free software that perform print accounting
interface with CUPS welcome.

Thank you
Frank
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Quota message

2005-11-07 Thread Asier Cuevas
Hello list,

I have FreeBSD + SendMail + Option Quota enable. If a user disk quota
exceeded, I have receive this message:

/var/mail/aj.bunyola: Disc quota exceeded
Warning: message still undelivered after 4 hours Will keep trying
until message is 5 days old

How can modify this message?

Thanks

PD: Sorry, my english is very bad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FreeBSD, quota

2009-02-19 Thread Pieter Donche

to be able to impose file and disk quotas on individual users
the kernel had to support it.

Is this supported in FreeBSD7 ? How can one check if which options
are supported?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


quota printing ?

2006-06-07 Thread Frank Bonnet

Hello

I'm searching for a centralized quota printing solution that would run
over CUPS or LPRNG , I've reviewed pyquota but it doesn't fit our needings.

Ideally it could use a SYBASE database system as backend as we have a SYBASE
server ...

Thanks a lot.
--
Cordialement
Frank Bonnet

 To be or not to be  -- Shakespeare
 To do is to be  -- Nietzsche
 To be is to do  -- Kant
 Do be do be do  -- Sinatra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Disk Quota

2003-12-21 Thread hanoz elavia

   Hi,

I just installed freeBSD 5.1 and want to setup Disk Quota for all
   users on my machine. I read trhu your articles on the same but the my
   system does not allow me to mount /home on any devices. It says
   operation denied. Moreover the script MAKEDEV is not longer available
   to create new devices. Can u please tell me the alternative or any way
   to work around this.

   Regards,

   Hanoz.
 _

   Add glamour to your desktop. Let your screen sizzle. [1]Download the
   hottest wallpapers.

References

   1. http://g.msn.com/8HMBENIN/2752??PS=
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Quota

2003-12-28 Thread Jakob Breivik Grimstveit
On Mon, 2003-12-29 at 00:26, fbsd_user wrote:

> Is quota an auto load binary module or does it have to be compiled
> into the kernel?

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/quotas.html
doesn't specify anything about loadable modules, so I assume that you
have to recompile your kernel to be able to use quotas.

-- 
Jakob Breivik Grimstveit, http://www.grimstveit.no/~jakob, +47 48298152 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mailbox quota

2004-03-01 Thread flux
Hi,

How do I define mailbox quota in my FreeBSD system running sendmail
and using procmail for local mail delivering?
Thank you.

-- 
Best regards,
 flux  mailto:[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Quota problem

2002-09-21 Thread Ihsan Junaidi Ibrahim

Hello all,

I  originally  posted  this topic under "How do i know a disk is bad" thread but
didn't get any replies.

Well  I've narrowed down the problem towards disk quotas. It turns out that when
I  disable  quotas, everything works fine. When I first setup quotas on /home, I
did   not  place  any quota on the user nor group, with the intention of placing
for one later. I think I know the specific problems but I'm not that sure.

1)  Does  file/dir  ownership  of another user counts? I have a single directory
with files with someone else ownership.

2) Does quotas have problem with this kind of thing?

3)  I  ran  file  quota.user  and  the output says it's a text file without line
terminators  but  when  I  did less on it, all I got is a repetitive sequence of
'@@@' character. When I tried to edit it, all I got is a blank screen. Is this a
sign  of  the  quota.user/quota.group  is  corrupted?

When I ran these tests, I removed userquota,groupquota from /home's fstab entry.

Please help. Thanks in advance.

-- 
Thank you for your time,
Ihsan

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Quota help

2002-12-06 Thread Andrew Knapp
Does anyone out there know how to change the grace period on file-system
quotas? I know the default is 7 days, but if I wanted to change it,
where would I look? The man pages don't seem to be of any help on this,
and I didn't find anything in the archive.

Thanks,
Andy


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Quota problem.

2003-01-07 Thread Aleksey I. Yurlov
Have a nice time.
A little question about quotas in 4.7-S
I'll give output of commands, because it will be more natural by my opinion.

There is a ordinary user "some" on my box with:
# uname -a
FreeBSD ZzZ 4.7-STABLE FreeBSD 4.7-STABLE #0: Wed Oct 16 20:56:02 GMT 
2002 root@ZzZ:/usr/obj/usr/src/sys/ZzZ i386
#
Quotas for user some:
/usr: kbytes in use: 6245624, limits (soft = 700, hard = 710)
inodes in use: 23, limits (soft = 0, hard = 0)
, but :
# du -k /usr/home/some/
4913828  /usr/home/some/

Imho, 6245624 != 4913828 ;-(

User "some" have ftp access to his $HOME in "CHROOT" by proftpd (I 
checked, that there is no files on /usr filesystem owned by him),
and shell is /usr/bin/false. "quotacheck -a, rehash, sync,..., reboot" 
didn't helps.

If you know some solution in this situation - reply please.

ps: By now I will go to update my box, may be there is patches & fixes 
about quotas?!

---
Best regards, Aleksey I. Yurlov
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Quota problems

2005-03-09 Thread Dan Nelson
In the last episode (Mar 09), Skylar Thompson said:
> I'm having some problems getting quotas enabled on a FreeBSD
> 4.11-RELEASE box. I already have quotas enabled on two filesystems,
> and need to extend that to a third (presently unquota'd) filesystem.
> I added "userquota,groupquota" to the line in /etc/fstab for the
> filesystem, touched the files quota.user and quota.group, and
> rebooted. The sytem came back up fine, but hung after a few minutes
> of normal activity. I rebooted, and the same thing happened. Turning
> of the quotas on just that filesystem solved the problem. Has anyone
> else had problems like this?

The entire system hung how?  Did the cursor stop flashing?  If you
switch to another vty and try to log in, does it let you enter your
username and then hang?  If so, hit ^T and tell us what's in the square
brackets.

Also, running "quotacheck /filesystem" is a better way to create the
quota files than touching them.  It ensures that existing files on the
filesystem are correctly accounted for.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Quota problems

2005-03-09 Thread Skylar Thompson
Dan Nelson wrote:
In the last episode (Mar 09), Skylar Thompson said:
 

I'm having some problems getting quotas enabled on a FreeBSD
4.11-RELEASE box. I already have quotas enabled on two filesystems,
and need to extend that to a third (presently unquota'd) filesystem.
I added "userquota,groupquota" to the line in /etc/fstab for the
filesystem, touched the files quota.user and quota.group, and
rebooted. The sytem came back up fine, but hung after a few minutes
of normal activity. I rebooted, and the same thing happened. Turning
of the quotas on just that filesystem solved the problem. Has anyone
else had problems like this?
   

The entire system hung how?  Did the cursor stop flashing?  If you
switch to another vty and try to log in, does it let you enter your
username and then hang?  If so, hit ^T and tell us what's in the square
brackets.
 

The system is still running and accepting NFS traffic on a separate 
filesystem (/clients), but all disk I/O on the filesystem I'm enabling 
on (/usr) is stopped.

Also, running "quotacheck /filesystem" is a better way to create the
quota files than touching them.  It ensures that existing files on the
filesystem are correctly accounted for.
 

OK. The handbook should be clearer on this. Where it says:
===
For finer control over your quota startup, there is an additional 
configuration variable available. Normally on bootup, the quota 
integrity of each file system is checked by the quotacheck(8) 
<http://www.FreeBSD.org/cgi/man.cgi?query=quotacheck&sektion=8> program. 
The quotacheck(8) 
<http://www.FreeBSD.org/cgi/man.cgi?query=quotacheck&sektion=8> facility 
insures that the data in the quota database properly reflects the data 
on the file system. This is a very time consuming process that will 
significantly affect the time your system takes to boot. If you would 
like to skip this step, a variable in /etc/rc.conf is made available for 
the purpose:

check_quotas="NO"
===
And:
===
At this point you should reboot your system with your new kernel. 
/etc/rc will automatically run the appropriate commands to create the 
initial quota files for all of the quotas you enabled in /etc/fstab, so 
there is no need to manually create any zero length quota files.

===
there should be changes to mention that /etc/rc will only create the 
files with check_quota enabled, and also that creating zero-length files 
is not only unnecessary, but also dangerous.

In any case, I have more downtime scheduled early Friday morning, so I 
can see if using quotacheck solves my problems.

--
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


signature.asc
Description: OpenPGP digital signature


Re: Quota problems

2005-03-09 Thread Dan Nelson
In the last episode (Mar 09), Skylar Thompson said:
> there should be changes to mention that /etc/rc will only create the
> files with check_quota enabled, and also that creating zero-length
> files is not only unnecessary, but also dangerous.

I don't know that the 0-byte quota files are the source of your
problem; I only know that they're not doing any good :)  

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Quota problems

2005-03-09 Thread Skylar Thompson
Dan Nelson wrote:
In the last episode (Mar 09), Skylar Thompson said:
 

there should be changes to mention that /etc/rc will only create the
files with check_quota enabled, and also that creating zero-length
files is not only unnecessary, but also dangerous.
   

I don't know that the 0-byte quota files are the source of your
problem; I only know that they're not doing any good :)  

 

When I remove the zero-length quota files, quotas aren't enabled 
properly, but there are no problems. I guess we'll know for sure when I 
try out quotacheck Friday morning.

--
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


signature.asc
Description: OpenPGP digital signature


Re: Quota problems

2005-03-11 Thread Skylar Thompson
On Wed, Mar 09, 2005 at 03:06:55PM -0600, Dan Nelson wrote:
> In the last episode (Mar 09), Skylar Thompson said:
> > there should be changes to mention that /etc/rc will only create the
> > files with check_quota enabled, and also that creating zero-length
> > files is not only unnecessary, but also dangerous.
> 
> I don't know that the 0-byte quota files are the source of your
> problem; I only know that they're not doing any good :)  

It looks like they were the problem. I took the server down to single-user
mode, deleted the zero-size quota.{user,group} files, and then ran
quotacheck on that filesystem. After booting back up, the system ran
normally without hanging.

-- 
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


pgpQfGvPWfWfB.pgp
Description: PGP signature


Re: Printing quota ?

2005-10-20 Thread Erik Norgaard

On Thu, 20 Oct 2005, Frank Bonnet wrote:


I'm searching for a free software that perform print accounting
interface with CUPS welcome.


You are entering into one of the most troublesome things in system 
administration. There are two problems:


* Relyably determining who's printing
* Relyably determining the number of pages

I don't know anything about CUPS but I once wrote a script for 
LPRng which may be changed to work with CUPS.


LPRng calls the script with user information as command line 
options and the document on STDIN. The script determines the user 
from the command line option and counts pages in postscript 
documents by parsing STDIN.


If the document doesn't look enough like postscript it is 
discarded. Windows users have a hard time getting it right.


I can send it to you if you're interested.

Cheers, Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Printing quota ?

2005-10-20 Thread Olivier Nicole
> LPRng calls the script with user information as command line 
> options and the document on STDIN. The script determines the user 
> from the command line option and counts pages in postscript 
> documents by parsing STDIN.

> If the document doesn't look enough like postscript it is 
> discarded. Windows users have a hard time getting it right.

What I wrote will query the printer for page count before and afterthe
job.

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Printing quota ?

2005-10-20 Thread Erik Norgaard

On Thu, 20 Oct 2005, Olivier Nicole wrote:


If the document doesn't look enough like postscript it is
discarded. Windows users have a hard time getting it right.


What I wrote will query the printer for page count before and afterthe
job.


We tried that also, however, then you have problems if printerjobs 
are cancelled halfway.


Also, the "sanity" check works against accepting print jobs that 
will cause the the printer to print endless pages with strange 
characters untill it runs out of paper or the job is cancelled. We 
had a lot of those because of misconfigured windows machines.


Cheers, Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Printing quota ?

2005-10-20 Thread Olivier Nicole
> > What I wrote will query the printer for page count before and afterthe
> > job.
> 
> We tried that also, however, then you have problems if printerjobs 
> are cancelled halfway.

For us it is OK to forget to count a job from time to time, as the
filter queries the printer before and after, the next job will start a
new count anyway.

> Also, the "sanity" check works against accepting print jobs that
> will cause the the printer to print endless pages with strange 
> characters untill it runs out of paper or the job is cancelled. We 
> had a lot of those because of misconfigured windows machines.

Well, I have my guy install the printers on the machines for the
users, so they use the right driver :)

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Printing quota ?

2005-10-20 Thread Lee Capps
At 09:46 Thu 20 Oct 2005, Frank Bonnet wrote:
> Hello
> 
> I'm searching for a free software that perform print accounting
> interface with CUPS welcome.
> 

PyKota:

http://www.librelogiciel.com/software/PyKota/action_Presentation

-- 
Lee Capps
Technology Specialist
CTE Resource Center


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Printing quota ?

2005-10-20 Thread Frank Bonnet

Erik Norgaard wrote:



LPRng calls the script with user information as command line options and 
the document on STDIN. The script determines the user from the command 
line option and counts pages in postscript documents by parsing STDIN.


If the document doesn't look enough like postscript it is discarded. 
Windows users have a hard time getting it right.


well ... we use PostScript and PCL so it is not suitable to discard
non postscript jobs
anyway thanks for your answer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Printing quota ?

2005-10-20 Thread Erik Norgaard

On Thu, 20 Oct 2005, Frank Bonnet wrote:

LPRng calls the script with user information as command line options and 
the document on STDIN. The script determines the user from the command line 
option and counts pages in postscript documents by parsing STDIN.


If the document doesn't look enough like postscript it is discarded. 
Windows users have a hard time getting it right.


well ... we use PostScript and PCL so it is not suitable to discard
non postscript jobs
anyway thanks for your answer


IIRC There is very little difference between PS and PCL, some 
codes at the beginning, and not enough that my script discarded 
it. PDF was the big problem.


Cheers, Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Quota message

2005-11-08 Thread Jerry McAllister
> 
> Hello list,
> 
> I have FreeBSD + SendMail + Option Quota enable. If a user disk quota
> exceeded, I have receive this message:
> 
> /var/mail/aj.bunyola: Disc quota exceeded
> Warning: message still undelivered after 4 hours Will keep trying
> until message is 5 days old

Well, you have to check some things.
  How much disk does user 'aj.bunyola' have filled up
and what is it being used for.   Maybe the mailbox is 
already huge or the user has saved some large mail files
or whatever.   The 'ls -l'  and 'du -dk *' commands in
appropriate directories will help with this.   NOTE that
quota is by file system and not just directories.   So a user
may be using disk in more than one place.   You can also use find(1)
to locate all the disk a user is occupying in a file system.

  What is user aj.bunyola quota set at.   
From root run  'quota -u af.bunyola'  to find out
what is set for each file system with quotas turned on.
I suspect that the quota for this user might be set at some
unreasonably low amount on the /var filesystem.

  You might not want quotas turned on for the /var filesystem if
  it is not part of another filesystem.

> 
> How can modify this message?

By either: 

  - Turning off quotas on that file system
  - raising the user's quota
  - getting the user to clean out old files until their use
gets below the quota.

jerry

> 
> Thanks
> 
> PD: Sorry, my english is very bad.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 
> 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


quota with OWM

2006-04-01 Thread Marwan Sultan

Hello Gurus,

This problem is related to DiskQuotas and OpenWebMail package, but no one 
replied back
in OWM mailing list, I'm sending in here hope someone knows a good way to 
solve this.


I'm On FreeBSD 4.8, latest openwebmail version,(upgraded)
Openwebmail is a .pl scripts.

Lately i have enabled quota on my OS, because my users are increasing with 
time

and some of them hit 200MB!

Well i hgave setup openwebmail to read DiskQuotas from Unix File system 
(Soft, hard limits)


Lets asume the user test has quota system soft 45 and hard 50
when you go to (Folder) option in that user OWM you will see the follow in 
bottom


Total 19MB Quota usage: 16.6MB (36.9%)  Quota limit: 45MB

The actual user mail quota is 19MB, but then it says 16.6MB !!
If you delete any email from inbox then quota will be increase in the time 
it should be

decreased! and the 19MB it will decrease!

As i Understod that, QUota module reading the user SHELL account, and 
ignoring the /var/mail

thats why We see 16.6MB which is the shell account quota.
but spool will read the /var/mail and ignore SHELL account! (this the 
problem viseversa)

thats why we read 19MB (19 is the INBOX)

Weill (Spool_limit) is an option you set in OWM to limit the INBOX ONLY, 
(spool reads /var/mail)


well impossible to fix the quota system in this way! because the user maybe 
will have

45MB in his inbox(/var/mail) and 45MB in his private folder(homedir).
with total 90MB becuase the spool_limit will allow him upto 45MB in 
/var/mail

and the quota will allow him 45MB in the SHELL account!

How would i controll that please?
Simply I just want to limit his complete MailBox (inbox, trush..etc..) to 
just 45MB, for example.

any simple easy way to make it read this and that?

Thank you and really sorry for the long email.

Marwan.

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Quota and webmail

2006-05-05 Thread Marwan Sultan

Hello everyone,

  I'm on FreeBSD 4.8R
  Latest sendmail is the default MTA, and latest Openwebmail is the webmail 
client.

  Quota has been enabled in my kernel
  The problem is whenever I set the quota limit and configure openwebmail 
to read the unix quota
  limit, then it reads the limit of the account user which located in 
/home/user

  but ignores the /var/mail/user  limit.

  yes there is away in openwebmail to makes it reads both /home/user and 
/var/mail/user

  but it will be seperated limits not as a total 1 box limit.

  Is there away, script or any solution PLEASE to make the kernel quota 
reads the /home/user
 and adds to it /var/mail/user and the result comes as 1 size limit? 1 box 
limit?


 a link in the user home directory to /var/mail/user will do it? How would 
we do this please.


 Marwan

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Quota high watermark?

2006-02-17 Thread Skye Poier
Hi, is there anyway to query for users' max disk usage with the quota 
system?

(and reset the high water mark after reading?)

If not, I can just write a daemon script that polls quota(1) every 
couple of minutes and stores the max value for each user in some 
file just leaves a hole between polls where they could upload a 
file and then delete it quickly.


Thanks,
Skye

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Per disk quota

2005-07-10 Thread Alexandre D.
Hi guys,

I'm searching for a way to set a limit per directory.
for example:

directory   limit
/web/dir1   1Go
/web/dir2   10Mo
/web/dir3   100Mo
/web/dir4   175Mo

This system would be used by only one program (image grabber)

Do you have any idea?

cheers

Alex
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


strange quota behaviour

2009-10-18 Thread Stefan Miklosovic
hi list,

I am going to add user "test" in system:
~/:sudo pw useradd test -m

then, I am going to check quotas
~/:sudo quota -u -v test
Disk quotas for user test (uid 2022):
 Filesystem   usage   quota   limit   grace   files   quota   limit
grace
  /home  36   0   0   9   0
0

Now, I am going to add another user, named "12345"
~/:sudo pw useradd 12345 -m
Password for '12345' is: qdmjPx4YVP

then, I am going to check quotas
~/:sudo quota -u -v 12345
Disk quotas for user (no account) (uid 12345):
 Filesystem   usage   quota   limit   grace   files   quota   limit
grace
  /home   0   0   0   0   0
0

Please, note that in quota output for user 12345, it says, there is no such
user
> Disk quotas for user (no account) (uid 12345):

if I do this:
~/odoslat:sudo pw useradd m12345 -m
Password for 'm12345' is: 8bqhCfMjZREr5D8
~/odoslat:sudo quota -u -v m12345
Disk quotas for user m12345 (uid 2024):
 Filesystem   usage   quota   limit   grace   files   quota   limit
grace
  /home  36   0   0   9   0
0

everything is fine.

So question, I am able to create user 12345, but I cant set quotas for him?
Isn't this a bug?

FreeBSD notebook 7.2-STABLE FreeBSD 7.2-STABLE #0: Thu Oct 15 22:38:28 CEST
2009 r...@notebook:/usr/obj/usr/src/sys/NOTEBOOK  i386

thank you
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD, quota

2009-02-19 Thread Matias Surdi

Have you looked at the official documentation?

http://www.freebsd.org/doc/en/books/handbook/book.html#QUOTAS



Pieter Donche wrote:

to be able to impose file and disk quotas on individual users
the kernel had to support it.

Is this supported in FreeBSD7 ? How can one check if which options
are supported?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"freebsd-questions-unsubscr...@freebsd.org"




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD, quota

2009-02-19 Thread Wojciech Puchar

the kernel had to support it.

Is this supported in FreeBSD7 ? How can one check if which options
are supported?


 options QUOTA

man 7 ffs for more
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


jail+quota problem!

2007-09-20 Thread Wojciech Puchar
i have multi-jail server, moved every jail to a separate UFS partition, 
and turned on quota on some of them (where vserver customer asked for it).


repquota shows all right, edquota works, then repquota shows right things 
but after few syncs or just waiting a minute quota setting disappears!


mount as seen from master server:

/dev/mirror/szymon.eli on /jail/szymon (ufs, local, noatime, with quotas, 
soft-updates)

[EMAIL PROTECTED] ~]# ls -l /jail/szymon/quota*
-rw-r-  1 root  operator  2097120 20 wrz 22:00 /jail/szymon/quota.group
-rw-r-  1 root  operator  2097120 20 wrz 22:00 /jail/szymon/quota.user

[EMAIL PROTECTED] ~]# jexec 8 usr/bin/su -
[EMAIL PROTECTED] ~]# cat /etc/fstab
/dev/mirror/szymon.eli / ufs rw,userquota,groupquota 0 0


(i did it to make repquota work at all, with empty fstab doesn't, i found 
putting anything instead of /dev/mirror/szymon.eli make it work too)



then repquota works OK, edquota works, but is quickly losing the 
data. (typing sync once is enough)



any idea?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Freebsd quota & sendmail

2008-02-27 Thread Ofloo

I'm putting this under freebsd because there is no forum for sendmail, and it
does concern freebsd as well.

My problem is this, when i set quota in /var/mail directory to each user and
this user creates a cronjob, that doesn't forward all data to /dev/null, and
keeps on generating mail, ..

Well after a while the mail file reaches it's quota and sendmail isn't
allowed to write to that file anymore, so it will start and fill the mailq,
.. 

The point is after a while the whole system will just crash what can I do
about it, sorry for rambling.
-- 
View this message in context: 
http://www.nabble.com/Freebsd-quota---sendmail-tp15719728p15719728.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota printing ?

2006-06-07 Thread Erik Nørgaard
Frank Bonnet wrote:

> I'm searching for a centralized quota printing solution that would run
> over CUPS or LPRNG , I've reviewed pyquota but it doesn't fit our needings.
> 
> Ideally it could use a SYBASE database system as backend as we have a
> SYBASE
> server ...

This is one of the admin tasks that almost always cause headache. I
think the standard solution is to hack up some Perl script that suits
your needs.

For LPRng, you might want to take a look at ifhp for a start. It doesn't
do accounting but it may be useful to get every job into a particular
format so you can count pages in that.

I once made a script that counted pages in ps-files using the page
separation tag in the code and rejected everything that didn't seem
enough PostScript like.

Once you have your Perl to count, you can do pretty much anything you
like with the numbers. And there is a Sybase DB driver for Perl.

Cheers, Erik
-- 
Ph: +34.666334818  web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9


smime.p7s
Description: S/MIME Cryptographic Signature


6.1 quota issues?

2006-07-07 Thread Charles Sprickman

Hi all,

Any idea what this is indicating?

[EMAIL PROTECTED]/home/staff/micro/tmp]# quota micro
Disk quotas for user micro (uid 5315):
 Filesystem   usage   quota   limit   grace   files   quota   limit 
grace

  / 1630026 300 310   13393   0   0
[EMAIL PROTECTED]/home/staff/micro/tmp]# chown micro index.html
chown: index.html: Disc quota exceeded
[EMAIL PROTECTED]/home/staff/micro/tmp]#

Thanks,

Charles
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mailbox quota

2004-03-01 Thread Matthew Seaman
On Mon, Mar 01, 2004 at 05:50:26PM +0300, flux wrote:

> How do I define mailbox quota in my FreeBSD system running sendmail
> and using procmail for local mail delivering?

By setting up filesystem quotas on the /var partition -- assuming your
mailboxes are in the default place in /var/mail. procmail understands
how to deal with the EQUOTA error and causes sendmail to bounce
over-quota messages with an appropriate error message.

To set up quotas:

i) Compile kernel with 'options QUOTA' added to the config file.
   Reboot with new kernel.

   ii) Add:

  check_quotas="YES"
  enable_quotas="YES"

   to /etc/rc.conf

  iii) Edit /etc/fstab to tell the system to enforce quotas on the
   /var partition:

/dev/da0s1e /var ufs rw,nosuid,userquota 2 2

   See fstab(5) for details of the userquota and groupquota
   options.

   iv) Reboot -- quotacheck(8) will be run to count up how many files
   and bytes are owned by each of the different userids, and the
   quota system will be enabled by running quotaon(8).

v) Running repquota(8) will now give you a nice little report
   showing how much space each userid is using up on the
   partition:

  % repquota -av

   vi) However, no usage limits have yet been set.  Use edquota(8) to
   set them:

  # edquota username

   This will put you into the $EDITOR editor (or vi if $EDITOR is
   unset) showing how many files and how many bytes are in use for
   that username on each of the partitions with quota limits.
   Fill in appropriate numbers in the 'limits' sections: anything
   you leave at '0' will be unlimited.

   Save the file, and then check that the settings were registered OK:

  # quota -v username

And that's all there is to it.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: Quota problem

2002-09-22 Thread Matthew Seaman

On Sun, Sep 22, 2002 at 03:01:02PM +0800, Ihsan Junaidi Ibrahim wrote:

 
> Well I've narrowed down the problem towards disk quotas. It turns
> out that when I disable quotas, everything works fine. When I first
> setup quotas on /home, I did not place any quota on the user nor
> group, with the intention of placing for one later. I think I know
> the specific problems but I'm not that sure.

OK.  Here's a brief rundown of what you need to do to get filesystem
quotas working.

i) Read through these man pages:

quota(1)
edquota(8)
quotacheck(8)
quotaon(8)
repquota(8)
fstab(5)

   Additionally, any of the other pages turned up by 'man -k quota' 

   ii) Prepare your system.  You need to add 'options QUOTA' to your
   kernel config and compile yourself a new kernel, or the system
   simply won't support quotas.

  iii) Add:

enable_quotas="YES"
check_quotas="YES"

   to /etc/rc.conf.  Now, when you reboot into your new kernel you
   would see 

Checking quotas : done
Enabling quotas : done

   printed on the console.  You don't need to reboot just yet
   though.

   iv) At this point no filesystems have been marked as using quotas.
   I'm going to use my /var partition as an example.

   Edit /etc/fstab to enable quotas on the partition.  As I don't
   want the quota files cluttering up the root of the filesystem,
   I'm going to move them into a subdirectory.

/dev/da0s1e /varufs 
rw,userquota=/var/quota/var.user,groupquota=/var/quota/var.group  2   2

   Create the /var/quota directory, and generate baseline quota
   files.  quotacheck(8) should be run when the filesystem is
   quiescent for best results:

mkdir /var/quota
quotacheck -v /var
   
   Now, set up the per-uid or per-group limits with edquota(8)

edquota -f /var username

   If you've got lots of users, set up one with default values and
   use 'edquota -p defaultuser 1000-2000' to copy the settings to
   a range of UIDs in one go.

   All of the above can be done without having quotas enabled in
   the kernel yet (although you will see many warning messages to
   that effect).

v) Turn on quotas on the partition.  If you had to modify the
   kernel in step ii), then you've got to reboot at this point.
   Otherwise you can just run:

quotaon -v /var

   vi) Check that everything seems to be working by running
   repquota(8) and quota(1).  Try adding some big files and
   testing that quota limits are enforced.

Repeat as necessary for other filesystems.  That's all there is to it.

> 1) Does file/dir ownership of another user counts? I have a single
> directory with files with someone else ownership.

The quota system keeps track of the ownership of every entity created
on the file system, be it a plain file, a directory or some other
thing.  It keeps track of the changes in the number of bytes and the
number of inodes used by each UID by having hooks into the system
calls (like open(2), truncate(2), write(2), etc) that can create or
destroy files or change their size.  The quotacheck(8) command should
be used to establish a baseline when setting up quotas for the first
time, and on reboot (check_quotas="YES" in /etc/rc.conf) to ensure
sanity.

The quota system will add a small amount of overhead to file IO on the
partition, but for normal usage for shell accounts and the like it's
not significant.  

> 2) Does quotas have problem with this kind of thing?

No.  It doesn't matter if a directory contains files owned by any
number of different users, or if a users' files are scattered all over
the partition.  It doesn't matter either if you've only specified
quota limits for some of your users --- the rest will default to
having an unlimited quota.

> 3) I ran file quota.user and the output says it's a text file
> without line terminators but when I did less on it, all I got is a
> repetitive sequence of '@@@' character. When I tried to edit it, all
> I got is a blank screen. Is this a sign of the
> quota.user/quota.group is corrupted?

No --- the quota.user file consists of a list of fixed size records,
and uses the UID of the user as an index into the file to locate the
data for that user.  (Similarly, it uses the GID in the quota.group
file).  That means that if you have, say, a /home partition and you
are the only user with any files on the partition and your user id is
1000, then the quota.user file will consist of 1001 records, most of
which will be unused and empty.  The unused stuff is usually filled
with ascii NULL characters, often represented as '^@' when viewing 

User Quota Settings

2002-10-30 Thread Lefteris Tsintjelis
Hi all,

How can I set quota for all users? This command I was using doesn't seem
to work for me any more. Can anyone please recomend me any good package(s)
that set and monitor user quotas and send them warnings automatically?

edquota -p someone `awk -F: '$3 > 1000 && $3 < 65534 {print $1}' /etc/passwd`

Thank you



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Quota help

2002-12-06 Thread David Schultz
Thus spake Andrew Knapp <[EMAIL PROTECTED]>:
> Does anyone out there know how to change the grace period on file-system
> quotas? I know the default is 7 days, but if I wanted to change it,
> where would I look? The man pages don't seem to be of any help on this,
> and I didn't find anything in the archive.

See edquota(8).

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



UsersFiles and Quota

2004-05-24 Thread Chris Collins
Hello All

Is there a way to list files on my system that belong to a certain user. I
have quotas enabled and cannot find out where all the space is being used. 

Thanks
Chris
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problems with quota

2003-02-24 Thread William R . Dickson
Hi all,

I've got a system on which quotas are active, but are not being 
enforced.

- I built a kernel with options QUOTA
- I have enable_quotas="YES" and check_quotas="YES" in /etc/rc.conf
- I have "userquota" set on the device
- I rebooted
And yet this user:

/usr/home: blocks in use: 306098, limits (soft = 51200, hard = 51200)
inodes in use: 5019, limits (soft = 0, hard = 0)
Disk quotas for user sampleuser (uid 1010):
 Filesystem   usage   quota   limit   grace   files   quota   limit 
  grace
  /home  306098*  51200   51200none5019   0   0

...can still upload files via ftp.

Any thoughts?

Thanks,

-Bill

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Quota Questions 5.3 Release

2005-02-15 Thread Jon Adams
Hi,
~   Theres a high probablility this is a stupid question, but I
must ask it
Heres the situation:  I am leasing a server from a relatively well
known ISP in the DC area... It is installed w/ FreeBSD 5.3 Release
(Generic)
These geniuses gave me the box without the ports tree or the kernel
sources...  This wouldnt be a problem, except that, among other
things, they didnt compile in the quota support.  I desperately need it.
Questions:
1. Is there a kernel module to implement quota support (I have googled
incessantly trying to find it w/o much luck)
2. Is there a trivial way to get the kernel sources and ports tree
(and more importantly, how safe (in terms of the box coming back) is
it to recompile the kernel if I can get the sources) - they pretty
much killed about 50% of my reason for getting FBSD by leaving out the
ports WTF??.
3. Finally, out of curiousity, does anyone know why quota support is
left our of the stock FreeBSD Kernel, I am assuming there must be a
compelling reason for this... and are there any alternatives (short of
me writing lots of ugly code - which I have lacking time and
motivation for)
--
...
Jon Adams - [EMAIL PROTECTED] / [EMAIL PROTECTED]
Graduate Student, SCIS, Nova Southeastern University
http://www.scis.nova.edu/~jonaadam/
"Opportunities multiply as they are seized." - Sun Tzu
(202) 494-2469 .:cell:.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Questions on disk quota

2005-12-04 Thread Edwin
Hi

I am using FreeBSD 6.0 Release. I have enabled disk quota in kernel,
things look fine but I have some questions:

1. The quota information seems static. It does not update immediately
according to user's disk usage. Is it normal?

2. I found that those quota files are not accessible by non-privileged
user, but normal user should be able to use /usr/bin/quota to check
their own disk quota. In default installation, /usr/bin/quota is own
by root:wheel and have the permission of 555. My solution is chown to
root:operator and make it sgid. I wonder why the default doesn't allow
normal user to access the quota information.

Thank you very much
Edwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


quota and /var/mail

2006-05-19 Thread Marwan Sultan

Hello everyone,

 I want to set quota for my users mail,
 The quota reads the shell account size, but ignores the /var/mail/USER

 Please is there away to tell quota reads user shell and /var/mail/user 
file

 and give the total result?

 Your advise is highly appreciated.

 Thank you.
 Marwan

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Per disk quota

2005-07-11 Thread Igor Robul

Alexandre D. wrote:


Hi guys,

I'm searching for a way to set a limit per directory.
for example:

directory   limit
/web/dir1   1Go
/web/dir2   10Mo
/web/dir3   100Mo
/web/dir4   175Mo

This system would be used by only one program (image grabber)

Do you have any idea?
 


use file backed md(4) devices. And then mount these devices.
Example (newfs is nessesary only first time):

# dd if=/dev/zero of=dir2md bs=1m count=10
10+0 records in
10+0 records out

# mdconfig -a -t vnode -f dir2md
md0

#newfs /dev/md0
/dev/md0: 10.0MB (20480 sectors) block size 16384, fragment size 2048
   using 4 cylinder groups of 2.52MB, 161 blks, 384 inodes.
super-block backups (for fsck -b #) at:
160, 5312, 10464, 15616

#mount /dev/md0 /web/dir2 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Per disk quota

2005-07-11 Thread alexandre . delay
> Alexandre D. wrote:
>
> >Hi guys,
> >
> >I'm searching for a way to set a limit per directory.
> >for example:
> >
> >directorylimit
> >/web/dir11Go
> >/web/dir210Mo
> >/web/dir3100Mo
> >/web/dir4175Mo
> >
> >This system would be used by only one program (image grabber)
> >
> >Do you have any idea?
> >
> >
> use file backed md(4) devices. And then mount these devices.
> Example (newfs is nessesary only first time):
>
> # dd if=/dev/zero of=dir2md bs=1m count=10
> 10+0 records in
> 10+0 records out
>
> # mdconfig -a -t vnode -f dir2md
> md0
>
> #newfs /dev/md0
> /dev/md0: 10.0MB (20480 sectors) block size 16384, fragment size 2048
> using 4 cylinder groups of 2.52MB, 161 blks, 384 inodes.
> super-block backups (for fsck -b #) at:
>  160, 5312, 10464, 15616
>
> #mount /dev/md0 /web/dir2
>


Nice idea! I didn't think about it!

I have a wonder about that. Does this procedure include a delay in file access
time?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Per disk quota

2005-07-11 Thread Igor Robul

[EMAIL PROTECTED] wrote:


Nice idea! I didn't think about it!

I have a wonder about that. Does this procedure include a delay in file access
time?
 

I cant give you exact numbers, but I think that for _one_ application 
you'll not get big performance reduction.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Quota support in GENERIC

2005-04-29 Thread Ihsan Junaidi Ibrahim
Hi all,
Is there any technical reason why quota support is not included in GENERIC 
kernel or at least be made a loadable module? I know it's not hard to recompile 
the kernel but why the hassle of doing that when a module or built-in feature 
can be included?

I would like to utilize freebsd-update binary patching mechanism for all the 
boxes I maintain but it only supports GENERIC kernel. I don't have a dedicated 
build machine and most boxes are located offsite so having a binary update can 
really help cut down on the tangible and intangible costs.

It is my opinion after using FreeBSD for quite some time that quota is an 
essential feature that should be part of the GENERIC kernel.

I hope I can get a good explanation for this.
--
Thank you for your time,
Ihsan,
http://ihsan.synthexp.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: strange quota behaviour

2009-10-18 Thread Stefan Miklosovic
hi again,

I correct my post, of course I can set
quotas for that user, by setquota command,
but I cant see quotas for that user, only by
repquota.

I need to see it by quota command because I
write a script where I depend on it.

On Sun, Oct 18, 2009 at 2:13 PM, Stefan Miklosovic <
miklosovic.free...@gmail.com> wrote:

> hi list,
>
> I am going to add user "test" in system:
> ~/:sudo pw useradd test -m
>
> then, I am going to check quotas
> ~/:sudo quota -u -v test
> Disk quotas for user test (uid 2022):
>  Filesystem   usage   quota   limit   grace   files   quota   limit
> grace
>   /home  36   0   0   9   0
> 0
>
> Now, I am going to add another user, named "12345"
> ~/:sudo pw useradd 12345 -m
> Password for '12345' is: qdmjPx4YVP
>
> then, I am going to check quotas
> ~/:sudo quota -u -v 12345
> Disk quotas for user (no account) (uid 12345):
>  Filesystem   usage   quota   limit   grace   files   quota   limit
> grace
>   /home   0   0   0   0   0
> 0
>
> Please, note that in quota output for user 12345, it says, there is no such
> user
> > Disk quotas for user (no account) (uid 12345):
>
> if I do this:
> ~/odoslat:sudo pw useradd m12345 -m
> Password for 'm12345' is: 8bqhCfMjZREr5D8
> ~/odoslat:sudo quota -u -v m12345
> Disk quotas for user m12345 (uid 2024):
>  Filesystem   usage   quota   limit   grace   files   quota   limit
> grace
>   /home  36   0   0   9   0
> 0
>
> everything is fine.
>
> So question, I am able to create user 12345, but I cant set quotas for him?
>
> Isn't this a bug?
>
> FreeBSD notebook 7.2-STABLE FreeBSD 7.2-STABLE #0: Thu Oct 15 22:38:28 CEST
> 2009 r...@notebook:/usr/obj/usr/src/sys/NOTEBOOK  i386
>
> thank you
>
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Disk Quota Full Error

2009-06-22 Thread Karp
FreeBSD spark.ofloo.net 7.2-RELEASE-p1 FreeBSD 7.2-RELEASE-p1 #2: Mon Jun 22
14:20:07 UTC 2009 of...@spark.ofloo.net:/usr/obj/usr/src/sys/
OFL  amd64
-
-(kar...@spark.ofloo.net)-(22:06:40)

-(~)-> mkdir
vor2

mkdir: vor2: Disc quota exceeded


Any help appricated. Is this a problem on my end, or server side?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Freebsd quota & sendmail

2008-02-27 Thread Chuck Swiger

On Feb 27, 2008, at 10:29 AM, Ofloo wrote:
I'm putting this under freebsd because there is no forum for  
sendmail, and it

does concern freebsd as well.


Well, there's comp.mail.sendmail on Usenet.

My problem is this, when i set quota in /var/mail directory to each  
user and
this user creates a cronjob, that doesn't forward all data to /dev/ 
null, and

keeps on generating mail, ..

Well after a while the mail file reaches it's quota and sendmail isn't
allowed to write to that file anymore, so it will start and fill the  
mailq,

..


What you've described seems to be normal system operation.  Solutions  
include people fixing their cron jobs, having people actually read and  
delete their emails before they fill their allocated quota, or  
spending more admin cycles cleaning up when you notice someone getting  
to this problem condition.  I suppose you could also get more disk  
space for /var...


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Freebsd quota & sendmail

2008-02-27 Thread Derek Ragona

At 12:29 PM 2/27/2008, Ofloo wrote:


I'm putting this under freebsd because there is no forum for sendmail, and it
does concern freebsd as well.

My problem is this, when i set quota in /var/mail directory to each user and
this user creates a cronjob, that doesn't forward all data to /dev/null, and
keeps on generating mail, ..

Well after a while the mail file reaches it's quota and sendmail isn't
allowed to write to that file anymore, so it will start and fill the mailq,
..

The point is after a while the whole system will just crash what can I do
about it, sorry for rambling.


Why are you setting these quotas on /var/mail.  These days with disk so 
cheap, why bother?  If you are trying to better control sendmail, you 
should exercise the control there.  You can adjust sendmail for maximum 
message size, number of messages, etc.  Or if SPAM is the issue use 
mailscanner to control how spam is handled.


Adding disk quotas outside of sendmail as you found is not a good approach 
as it will bring the system down.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Freebsd quota & sendmail

2008-02-28 Thread Ted Mittelstaedt


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Derek Ragona
> Sent: Wednesday, February 27, 2008 10:49 AM
> To: Ofloo; freebsd-questions@freebsd.org
> Subject: Re: Freebsd quota & sendmail
>
>
> At 12:29 PM 2/27/2008, Ofloo wrote:
>
> >I'm putting this under freebsd because there is no forum for
> sendmail, and it
> >does concern freebsd as well.
> >
> >My problem is this, when i set quota in /var/mail directory to
> each user and
> >this user creates a cronjob, that doesn't forward all data to
> /dev/null, and
> >keeps on generating mail, ..
> >
> >Well after a while the mail file reaches it's quota and sendmail isn't
> >allowed to write to that file anymore, so it will start and fill
> the mailq,
> >..
> >
> >The point is after a while the whole system will just crash what can I do
> >about it, sorry for rambling.
>
> Why are you setting these quotas on /var/mail.  These days with disk so
> cheap, why bother?

It depends on how he has his server setup.

Suppose he had a 250-employee company where for reasons of
data security (remember the courts have ruled e-mail is
company documentation and subject to document retention
laws) everyone is running IMAP to the mailserver and
most of the employees are very lazy about deleting old
mail, or downloading attachments they get to local
systems (or better yet, NOT using the e-mail system
as a file-sharing network, good luck with that) and he
has a 200GB hard disk.  I can see the desire to limit people
to 500-700MB per mailbox.

The other thing is with a server, the disk space is usually
a lot more expensive because it's raided or mirrored, it's
high-speed drives, etc.

Ted

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Disk Quota Question

2004-02-17 Thread Joel Eddy
I've followed the manual on FreeBsd 5.1. Recompiled the kernel with quota
options. It is on the  /usr file system. everything appears to be running
correctly.
I've made entries to fstab by the manual also.

mail# cat /etc/fstab
# DeviceMountpoint  FStype  Options DumpPass#
/dev/da0s1b noneswapsw  0   0
/dev/da0s1a /   ufs rw  1   1
/dev/da0s1e /tmpufs rw  2   2
/dev/da0s1f /usrufs rw  2   2
/dev/da0s1d /varufs rw  2   2
/dev/cd0/cdrom  cd9660  ro,noauto   0   0
/dev/da0s1f /usrufs rw,userquota,groupquota 1
2


But when I quota -u USERID I get

mail# quota -u USERID
Disk quotas for user USERID (uid 1001): none

Either I'm missing something or something isn't working. Where do I look next.


Sincerely,

Joel Eddy
Iowa Connect, Inc.
http://www.iowaconnect.com
Ph. 641-456-5964
Fax 641-456-5912



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Disk Quota Question

2004-02-17 Thread Jerry McAllister
> 
> I've followed the manual on FreeBsd 5.1. Recompiled the kernel with quota
> options. It is on the  /usr file system. everything appears to be running
> correctly.
> I've made entries to fstab by the manual also.
> 
> mail# cat /etc/fstab
> # DeviceMountpoint  FStype  Options DumpPass#
> /dev/da0s1b noneswapsw  0   0
> /dev/da0s1a /   ufs rw  1   1
> /dev/da0s1e /tmpufs rw  2   2
> /dev/da0s1f /usrufs rw  2   2
> /dev/da0s1d /varufs rw  2   2
> /dev/cd0/cdrom  cd9660  ro,noauto   0   0
> /dev/da0s1f /usrufs rw,userquota,groupquota 1
> 2
> 
> 
> But when I quota -u USERID I get
> 
> mail# quota -u USERID
> Disk quotas for user USERID (uid 1001): none

Well, what did you set quotas for [USERID] at?
I don't see that in your narrative.

jerry

> 
> Either I'm missing something or something isn't working. Where do I look next.
> 
> 
> Sincerely,
> 
> Joel Eddy
> Iowa Connect, Inc.
> http://www.iowaconnect.com
> Ph. 641-456-5964
> Fax 641-456-5912
> 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Disk Quota Question

2004-02-18 Thread JJB
Try
http://www.freebsd.org/cgi/man.cgi?query=quotaon&sektion=8&apropos=0
&manpath=FreeBSD+5.2-RELEASE+and+Ports


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Joel Eddy
Sent: Tuesday, February 17, 2004 6:11 PM
To: [EMAIL PROTECTED]
Subject: RE: Disk Quota Question

I've followed the manual on FreeBsd 5.1. Recompiled the kernel with
quota
options. It is on the  /usr file system. everything appears to be
running
correctly.
I've made entries to fstab by the manual also.

mail# cat /etc/fstab
# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/da0s1b noneswapsw  0
0
/dev/da0s1a /   ufs rw  1
1
/dev/da0s1e /tmpufs rw  2
2
/dev/da0s1f /usrufs rw  2
2
/dev/da0s1d /varufs rw  2
2
/dev/cd0/cdrom  cd9660  ro,noauto   0
0
/dev/da0s1f /usrufs
rw,userquota,groupquota 1
2


But when I quota -u USERID I get

mail# quota -u USERID
Disk quotas for user USERID (uid 1001): none

Either I'm missing something or something isn't working. Where do I
look next.


Sincerely,

Joel Eddy
Iowa Connect, Inc.
http://www.iowaconnect.com
Ph. 641-456-5964
Fax 641-456-5912



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Disk Quota Question

2004-02-19 Thread Matt Navarre
You've got /dev/da0s1f listed twice. I'm not sure what mount does in that 
case, but it's probably worth fixing.

On Tuesday 17 February 2004 15:10, Joel Eddy wrote:
> I've followed the manual on FreeBsd 5.1. Recompiled the kernel with quota
> options. It is on the  /usr file system. everything appears to be running
> correctly.
> I've made entries to fstab by the manual also.
>
> mail# cat /etc/fstab
> # DeviceMountpoint  FStype  Options Dump   
> Pass# /dev/da0s1b noneswapsw  0
>   0 /dev/da0s1a /   ufs rw  1  
> 1 /dev/da0s1e /tmpufs rw  2   2
> /dev/da0s1f /usrufs rw  2   2
> /dev/da0s1d /varufs rw  2   2
> /dev/cd0/cdrom  cd9660  ro,noauto   0   0
> /dev/da0s1f /usr    ufs rw,userquota,groupquota 1 2
>
>
> But when I quota -u USERID I get
>
> mail# quota -u USERID
> Disk quotas for user USERID (uid 1001): none
>
> Either I'm missing something or something isn't working. Where do I look
> next.
>
>
> Sincerely,
>
> Joel Eddy
> Iowa Connect, Inc.
> http://www.iowaconnect.com
> Ph. 641-456-5964
> Fax 641-456-5912
>
>
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

-- 
[EMAIL PROTECTED]
it was a hard sell, since he's a database person, and as far as I've seen, 
once those database worms eat into your brain, it's hard to ever get anything 
practical done again. To a database person, every nail looks like a thumb. Or 
something like that. - jwz
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Disk Quota Question

2004-02-19 Thread Matthew Seaman
On Wed, Feb 18, 2004 at 11:45:27PM -0500, JJB wrote:
> Try
> http://www.freebsd.org/cgi/man.cgi?query=quotaon&sektion=8&apropos=0
> &manpath=FreeBSD+5.2-RELEASE+and+Ports
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Joel Eddy
> Sent: Tuesday, February 17, 2004 6:11 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Disk Quota Question
> 
> I've followed the manual on FreeBsd 5.1. Recompiled the kernel with
> quota
> options. It is on the  /usr file system. everything appears to be
> running
> correctly.
> I've made entries to fstab by the manual also.

[...]

> But when I quota -u USERID I get
> 
> mail# quota -u USERID
> Disk quotas for user USERID (uid 1001): none
> 
> Either I'm missing something or something isn't working. Where do I
> look next.

I sounds to me as if you've enabled all of the quota machinery, but
that you need to actually initialise the system and set some quotas
for each user on the partition.  You need to run quotacheck(8) to
initialise the quota.user and/or quota.group files -- that should
happen automatically when you reboot, or you can run it manually by:

# quotacheck -v -a

That may take some time to run, and there shouldn't be any activity on
the filesystem while it is being checked -- best way to ensure that is
to drop to single user mode while you run it.

Having done that, what's the output of:

% repquota /usr

To set up the quota limits for each user use edquota(1).

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: Disk Quota Question

2004-02-19 Thread Jerry McAllister
> 
> You've got /dev/da0s1f listed twice. I'm not sure what mount does in that 
> case, but it's probably worth fixing.

It probably takes the first one and ignores the second one.
Sorry I missed that before.

jerry

> 
> On Tuesday 17 February 2004 15:10, Joel Eddy wrote:
> > I've followed the manual on FreeBsd 5.1. Recompiled the kernel with quota
> > options. It is on the  /usr file system. everything appears to be running
> > correctly.
> > I've made entries to fstab by the manual also.
> >
> > mail# cat /etc/fstab
> > # DeviceMountpoint  FStype  Options Dump   
> > Pass# /dev/da0s1b noneswapsw  0
> >   0 /dev/da0s1a /   ufs rw  1  
> > 1 /dev/da0s1e /tmpufs rw  2   2
> > /dev/da0s1f /usrufs rw  2   2
> > /dev/da0s1d /varufs rw  2   2
> > /dev/cd0/cdrom  cd9660  ro,noauto   0   0
> > /dev/da0s1f /usrufs rw,userquota,groupquota 1 2
> >
> >
> > But when I quota -u USERID I get
> >
> > mail# quota -u USERID
> > Disk quotas for user USERID (uid 1001): none
> >
> > Either I'm missing something or something isn't working. Where do I look
> > next.
> >
> >
> > Sincerely,
> >
> > Joel Eddy
> > Iowa Connect, Inc.
> > http://www.iowaconnect.com
> > Ph. 641-456-5964
> > Fax 641-456-5912
> >
> >
> >
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED]"
> 
> -- 
> [EMAIL PROTECTED]
> it was a hard sell, since he's a database person, and as far as I've seen, 
> once those database worms eat into your brain, it's hard to ever get anything 
> practical done again. To a database person, every nail looks like a thumb. Or 
> something like that. - jwz
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


squirrel/qmail/quota question ??

2004-03-09 Thread rfa

I was recently assigned to take charge of creation of email accounts and
maintenance and just hit a problem.

I don't have any mail experience yet[and very minimal bsd experience], and
still reading the documentation, also the previous admin is not around. I
deduced from pkg_info that we have

courier-imap-1.7.1
qmail-1.03_1
squirrelmail-1.4.0

running the mail processes. They are working fine, although I received an
important email with a 1.2MB attachment and wanted to read that.
Unfortunately, when I access that, it says

Fatal error: Allowed memory size of 9437240 bytes exhausted at (null):0
(tried to allocate 79 bytes) in
/usr/local/www/data-dist/webmail/functions/mime.php on line 113

So now I'm stuck with a large file and no way to access it. I'm not sure
if this is a quota problem but i ran #quota -v and it shows

Filesystem usage quota limit grace files quota limit grace
/var 7638 0 0 511 0 0

so i dont think its a quota problem although im not sure.
i did manage to get the file though and try putting it my mailbox although
it seems that the same problem arises.

I only actually want to get the document attached to the file so I can
forward that to the real recipient

If anyone can help, it would be great. [My head is splitting reading all
the documentation and experimenting and it seems all for naught!]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re[2]: Quota problem

2002-09-22 Thread Ihsan Junaidi Ibrahim

Hello all,

 Thanks  Matthew,  it  works  now.  I  no  longer  have the hangup in apache and
 file   operations.  But  I'm still stumped on why it happened, since I'm pretty
 sure I followed all the guidelines.

 Thanks again.
-- 
Thank you for your time,
Ihsan

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: UsersFiles and Quota

2004-05-24 Thread Rob
Chris Collins wrote:
Hello All
Is there a way to list files on my system that belong to a certain user. I
have quotas enabled and cannot find out where all the space is being used. 
This may work for you:
   find / -user foobar -exec du {} \;
Replace foobar by any username on the system.
'man du' tells you more about the output.
R.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: UsersFiles and Quota

2004-05-24 Thread Michal Pasternak
Chris Collins [Mon, May 24, 2004 at 11:58:30PM -0500]:
> Is there a way to list files on my system that belong to a certain user. I
> have quotas enabled and cannot find out where all the space is being used. 

Common procedure is to read the docs before asking! :) man find, EXAMPLES
section, 2nd example counting from top. HTH, 
-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: UsersFiles and Quota

2004-05-25 Thread Uwe Doering
Chris Collins wrote:
Hello All
Is there a way to list files on my system that belong to a certain user. I
have quotas enabled and cannot find out where all the space is being used. 
With quotas enabled this should be easy.  Use 'repquota' and sort the 
list by allocated disk space:

  repquota -u /path/to/filesystem | sort -rn +2 -3
That's less taxing on the system than using 'find', and it also takes 
into account files that a user might have deleted but still holds open 
and therefore allocated.

   Uwe
--
Uwe Doering |  EscapeBox - Managed On-Demand UNIX Servers
[EMAIL PROTECTED]  |  http://www.escapebox.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: UsersFiles and Quota

2004-05-25 Thread Mat Kovach
* [EMAIL PROTECTED] [2004-05-24 23:58:30 -0500]:

> Is there a way to list files on my system that belong to a certain user. I
> have quotas enabled and cannot find out where all the space is being used. 

man find

something like :

find / -type ff -user > username_files should work for you.

-- 
Mat Kovach
Cleveland, Ohio
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Quota Questions 5.3 Release

2005-02-15 Thread Benjamin Dover
On Tue, 15 Feb 2005 16:57:20 -0500, Jon Adams <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> ~   Theres a high probablility this is a stupid question, but I
> must ask it
> 
> Heres the situation:  I am leasing a server from a relatively well
> known ISP in the DC area... It is installed w/ FreeBSD 5.3 Release
> (Generic)
> 
> These geniuses gave me the box without the ports tree or the kernel
> sources...  This wouldnt be a problem, except that, among other
> things, they didnt compile in the quota support.  I desperately need it.
> 
> Questions:
> 
> 1. Is there a kernel module to implement quota support (I have googled
> incessantly trying to find it w/o much luck)

Take a look at this section of the handbook
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/quotas.html

> 
> 2. Is there a trivial way to get the kernel sources and ports tree
> (and more importantly, how safe (in terms of the box coming back) is
> it to recompile the kernel if I can get the sources) - they pretty
> much killed about 50% of my reason for getting FBSD by leaving out the
> ports WTF??.

I would use sysinstall to install the ports tree.  if your not
familiar with it type man sysinstall
> 
> 3. Finally, out of curiousity, does anyone know why quota support is
> left our of the stock FreeBSD Kernel, I am assuming there must be a
> compelling reason for this... and are there any alternatives (short of
> me writing lots of ugly code - which I have lacking time and
> motivation for)

Its not left out its just not an standard option.  Compiling a kernel
is not a difficult task.  It sounds more difficult than it really is.
> 
> --
> ...
> Jon Adams - [EMAIL PROTECTED] / [EMAIL PROTECTED]
> Graduate Student, SCIS, Nova Southeastern University
> http://www.scis.nova.edu/~jonaadam/
> "Opportunities multiply as they are seized." - Sun Tzu
> (202) 494-2469 .:cell:.
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Quota Questions 5.3 Release

2005-02-15 Thread Jacob S
On Tue, 15 Feb 2005 16:57:20 -0500
Jon Adams <[EMAIL PROTECTED]> wrote:


> 2. Is there a trivial way to get the kernel sources and ports tree
> (and more importantly, how safe (in terms of the box coming back) is
> it to recompile the kernel if I can get the sources) - they pretty
> much killed about 50% of my reason for getting FBSD by leaving out the
> ports WTF??.

"/stand/sysinstall" is your friend. I just got done doing the same thing
on three remote 1U Dell machines without any problems. The first time I
recompiled the kernel was to get smp support for the Xeon with
hyperthreading and the second time was to enable quota support.

Here are the two urls that helped me with ports and compiling the
kernel. As long as you are careful to follow the instructions for
compiling the kernel, you should not have any problems.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html

Sorry I don't have the answers to any of your other questions.

HTH,
Jacob
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Quota Questions 5.3 Release

2005-02-15 Thread Jon Adams
Benjamin Dover wrote:
Take a look at this section of the handbook
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/quotas.html
 

Yes, I've read this and am aware of the process of recompiling the 
kernel to implement quotas (done it before). 
What I am looking for is an alternative to recompiling the kernel due to 
the cripppled box I have.

Its not left out its just not an standard option.  Compiling a kernel
is not a difficult task.  It sounds more difficult than it really is.
 

I agree...  I have FreeBSD 5.3 and a 5.1 box I have lazily not yet 
updated on a pair of poweredges in my apt,
I rebuilt the 5.3 kernel a couple of time when I was experimenting with 
trying to install Oracle 8i on it (before giving up in frustration due 
to the Oracle make files exiting emulation)

Thanks for the tip on sysinstall... D'oh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Quota Questions 5.3 Release

2005-02-15 Thread Chad Leigh -- Shire . Net LLC
On Feb 15, 2005, at 3:28 PM, Jon Adams wrote:
Benjamin Dover wrote:
Take a look at this section of the handbook
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/quotas.html
Yes, I've read this and am aware of the process of recompiling the 
kernel to implement quotas (done it before). What I am looking for is 
an alternative to recompiling the kernel due to the cripppled box I 
have.

Its not left out its just not an standard option.  Compiling a kernel
is not a difficult task.  It sounds more difficult than it really is.
I agree...  I have FreeBSD 5.3 and a 5.1 box I have lazily not yet 
updated on a pair of poweredges in my apt,
I rebuilt the 5.3 kernel a couple of time when I was experimenting 
with trying to install Oracle 8i on it (before giving up in 
frustration due to the Oracle make files exiting emulation)

Thanks for the tip on sysinstall... D'oh
I replied to Jon off list but wanted to stick it in here for the 
archives

You should be able to just install cvsup and then make an appropriate 
cvsupfile.  This will get you the sources and ports etc if you do it 
right.  One easy thing :-)

best
Chad
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Quota support in GENERIC kernel

2005-04-29 Thread Ihsan Junaidi Ibrahim
i all,
Is there any technical reason why quota support is not included in GENERIC 
kernel or at least be made a loadable module? I know it's not hard to recompile 
the kernel but why the hassle of doing that when a module or built-in feature 
can be included?

I would like to utilize freebsd-update binary patching mechanism for all the 
boxes I maintain but it only supports GENERIC kernel. I don't have a dedicated 
build machine and most boxes are located offsite so having a binary update can 
really help cut down on the tangible and intangible costs.

It is my opinion after using FreeBSD for quite some time that quota is an 
essential feature that should be part of the GENERIC kernel.

I hope I can get a good explanation for this.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Remotely edit user disk quota

2009-05-28 Thread Olivier Nicole
Hi,

I am writing a Perl script to run on our web server. This script will
be used to create user accounts.

I can do almost every thing on the web server:

- create the home directory
- add a user in LDAP
- create the MySQL database for that user

The only thing I cannot do is to set the disk quota: the home
directory is NFS mounted from another machine acting as file server,
the quota must be edited on the file server.

How could I nicely and securely connect from the script on the web
server to the file server, in order to edit the quota? It should be
nice and secure and without password.

TIA

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Disk Quota Full Error

2009-06-22 Thread Wojciech Puchar

OFL  amd64
-
-(kar...@spark.ofloo.net)-(22:06:40)

-(~)-> mkdir
vor2

mkdir: vor2: Disc quota exceeded


Any help appricated. Is this a problem on my end, or server side?
___


you've got the exact message. why you don't read them?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Postfix quota per virtual domain

2008-01-21 Thread Olivier Nicole
Hello,

I am working on a Postfix email server for virtual domain. I was
requested to implement quota per domain, not per user, have you ever
seen something like that?

Best regards,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


quota on samba file server

2007-06-23 Thread Zbigniew Szalbot
Hello,

I have Freebsd 6.2 installed with file quota on. Today I have installed
samba and enbaled network share for Windows machines. Now I would like to
set quota for this share. I am not sure if I should do this from the swat
panel or set the quota via command line in freebsd?

All hints gladly welcome. Thank you in advance!

-- 
Zbigniew Szalbot

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota and /var/mail

2006-05-19 Thread Mike Tancsa
On Fri, 19 May 2006 19:42:11 +, in sentex.lists.freebsd.questions
you wrote:

>Hello everyone,
>
>  I want to set quota for my users mail,
>  The quota reads the shell account size, but ignores the /var/mail/USER
Are you sure quota is enabled on /var/mail ?  What does the output of

mount

show ?

---Mike

Mike Tancsa, Sentex communications http://www.sentex.net
Providing Internet Access since 1994
[EMAIL PROTECTED], (http://www.tancsa.com)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota and /var/mail

2006-05-21 Thread Marwan Sultan



Hello Mike,

 Thank you for your answer, as im stuck on this point and lost with my 
users,

 beside none answering this question on the list!

 No when I enabled quota I did the configuration on /usr
 shall i enable it on /var to?
 then how to make the sendmail or the shell reads the user quota on his 
home directory and

 his /var/mail/$username ?

 When i check my webmin, the section of "read user mail" will give you the 
total amount

 of user useage (including /var/mail/$userInbox)
 but if i go to quota in my webmin it will show only home directory quota.
 I'm telling you this information, not because i care about webmin, but i 
ment to say
 if webmin can read the home directory quota and add to it the 
/var/mail/$userInbox size

 then for sure I can do it some how?

 Please Advise.

 Marwan


On Fri, 19 May 2006 19:42:11 +, in sentex.lists.freebsd.questions
you wrote:

>Hello everyone,
>
>  I want to set quota for my users mail,
>  The quota reads the shell account size, but ignores the /var/mail/USER
Are you sure quota is enabled on /var/mail ?  What does the output of

mount

show ?

---Mike

Mike Tancsa, Sentex communications http://www.sentex.net
Providing Internet Access since 1994
[EMAIL PROTECTED], (http://www.tancsa.com)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota and /var/mail

2006-05-21 Thread Mike Tancsa

At 07:37 PM 21/05/2006, Marwan Sultan wrote:



 No when I enabled quota I did the configuration on /usr
 shall i enable it on /var to?
 then how to make the sendmail or the shell reads the user quota on 
his home directory and

 his /var/mail/$username ?



Hi,
It all depends on how you have it mounted.  Quotas follow 
the partition. So if you have /var/mail as its own partition, you 
need to do it there. If you have /var/mail as a subdirectory of /var 
than do it on /var.


What is the contents of /etc/fstab on the box ?

 if webmin can read the home directory quota and add to it the 
/var/mail/$userInbox size

 then for sure I can do it some how?


I dont use webmin so I am not sure how it calculates things.

---Mike 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota and /var/mail

2006-05-23 Thread Marwan Sultan

Hello Mike,

 Thank you again for your support, this is the output of mount and fstab

# DeviceMountpoint  FStype  Options Dump
Pass#

/dev/ad0s1b noneswapsw  0   0
/dev/ad0s1a /   ufs rw  1   1
/dev/ad0s1e /tmpufs rw  2   2
/dev/ad0s1f /usrufs rw,userquota,groupquota  
   2   2

/dev/ad0s1g /varufs rw  2   2
/dev/acd0c  /cdrom  cd9660  ro,noauto   0   0
proc/proc   procfs  rw  0   0
$ mount
/dev/ad0s1a on / (ufs, local)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, with quotas, soft-updates)
/dev/ad0s1g on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)

I just want the quota to read the Shell user (home directory) size plus the 
INBOX mails

which stay in /var/mail/$UserName

 Currently the quota reads the home directory and ignores the $inbox
 Thak you mike

 Marwan


At 07:37 PM 21/05/2006, Marwan Sultan wrote:



 No when I enabled quota I did the configuration on /usr
 shall i enable it on /var to?
 then how to make the sendmail or the shell reads the user quota on his 
home directory and

 his /var/mail/$username ?



Hi,
It all depends on how you have it mounted.  Quotas follow the 
partition. So if you have /var/mail as its own partition, you need to do it 
there. If you have /var/mail as a subdirectory of /var than do it on /var.


What is the contents of /etc/fstab on the box ?

 if webmin can read the home directory quota and add to it the 
/var/mail/$userInbox size

 then for sure I can do it some how?


I dont use webmin so I am not sure how it calculates things.

---Mike

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota and /var/mail

2006-05-23 Thread Mike Tancsa

At 07:43 PM 23/05/2006, Marwan Sultan wrote:


# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/ad0s1b noneswapsw  0   0
/dev/ad0s1a /   ufs rw  1   1
/dev/ad0s1e /tmpufs rw  2   2
/dev/ad0s1f /usrufs rw,userquota,groupquota
   2   2
/dev/ad0s1g /varufs rw  2   2
/dev/acd0c  /cdrom  cd9660  ro,noauto   0   0
proc/proc   procfs  rw  0   0
$ mount
/dev/ad0s1a on / (ufs, local)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, with quotas, soft-updates)
/dev/ad0s1g on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)


Hi,
You want to make sure /var/mail is mounted with quotas 
enabled as well.

The line in /etc/fstab should read

/dev/ad0s1g /varufs 
rw,userquota,groupquota  2   2


Make the change and then reboot and you will have quotas enforced on 
/var/mail as well.


---Mike 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota and /var/mail

2006-05-24 Thread patrick

If you want to only have one set of quotas, you might consider
switching to a Postfix/Maildir setup where your users' inboxes will be
located in their home folder rather than in /var/mail.

It's a fairly easy switch: install Postfix from
/usr/ports/mail/postfix, and then you just need to configure one line
in your Postfix's main.cf to turn on Maildir support:

http://www.postfix.org/faq.html#maildir

Though, there might be a bit of a learning curve with respect to the
differences between Sendmail and Postfix to convert the rest of your
configuration over. It all depends on how complicated your current
setup is.

Patrick


On 5/23/06, Marwan Sultan <[EMAIL PROTECTED]> wrote:

Hello Mike,

  Thank you again for your support, this is the output of mount and fstab

# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/ad0s1b noneswapsw  0   0
/dev/ad0s1a /   ufs rw  1   1
/dev/ad0s1e /tmpufs rw  2   2
/dev/ad0s1f /usrufs rw,userquota,groupquota
2   2
/dev/ad0s1g /varufs rw  2   2
/dev/acd0c  /cdrom  cd9660  ro,noauto   0   0
proc/proc   procfs  rw  0   0
$ mount
/dev/ad0s1a on / (ufs, local)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, with quotas, soft-updates)
/dev/ad0s1g on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)

I just want the quota to read the Shell user (home directory) size plus the
INBOX mails
which stay in /var/mail/$UserName

  Currently the quota reads the home directory and ignores the $inbox
  Thak you mike

  Marwan

>At 07:37 PM 21/05/2006, Marwan Sultan wrote:
>
>
>>  No when I enabled quota I did the configuration on /usr
>>  shall i enable it on /var to?
>>  then how to make the sendmail or the shell reads the user quota on his
>>home directory and
>>  his /var/mail/$username ?
>
>
>Hi,
> It all depends on how you have it mounted.  Quotas follow the
>partition. So if you have /var/mail as its own partition, you need to do it
>there. If you have /var/mail as a subdirectory of /var than do it on /var.
>
>What is the contents of /etc/fstab on the box ?
>
>>  if webmin can read the home directory quota and add to it the
>>/var/mail/$userInbox size
>>  then for sure I can do it some how?
>
>I dont use webmin so I am not sure how it calculates things.
>
> ---Mike
>
>___
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to
>"[EMAIL PROTECTED]"

_
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota and /var/mail

2006-05-24 Thread Mike Tancsa
On Wed, 24 May 2006 11:02:44 -0700, in sentex.lists.freebsd.questions
you wrote:

>If you want to only have one set of quotas, you might consider
>switching to a Postfix/Maildir setup where your users' inboxes will be
>located in their home folder rather than in /var/mail.
>
>It's a fairly easy switch: install Postfix from
>/usr/ports/mail/postfix, and then you just need to configure one line
>in your Postfix's main.cf to turn on Maildir support:
>
>http://www.postfix.org/faq.html#maildir
>
>Though, there might be a bit of a learning curve with respect to the
>differences between Sendmail and Postfix to convert the rest of your
>configuration over. It all depends on how complicated your current
>setup is.
>
Maildir is certainly a better way to go.  If you want to stick with
sendmail, you can also use procmail as your LDA.  However, again, it
requires a bit of learning as it works differently.

---Mike

Mike Tancsa, Sentex communications http://www.sentex.net
Providing Internet Access since 1994
[EMAIL PROTECTED], (http://www.tancsa.com)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota and /var/mail

2006-05-24 Thread GiL A. Virtucio
:) just another comment about quotas in emails.. (though its also not for 
sendmail) you might also want to check QMAIL. theres a very nice 
installation guide for FreeBSD in http://freebsd.qmailrocks.org/  you'll 
just have to follow the step-by-step installation and in the end you'll have 
a nice web-based interface for maintaining users/virtual domains, with 
spam/virus filtering and other stuff :)



=
Gil A. Virtucio
Janitor/Kolektor/Messenger/Driver
Asia Solution Phillippines Inc.
28/F Antel Global Corporate Center
3 Doña Julia Vargas Avenue,
Ortigas Center, Pasig
Office # : +63-2-687-0692 loc. 103
Mobile # : +63-916-3989695
http://www.gihl.eu.org/
=
- Original Message - 
From: "patrick" <[EMAIL PROTECTED]>

To: "Marwan Sultan" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, May 25, 2006 2:02 AM
Subject: Re: quota and /var/mail


If you want to only have one set of quotas, you might consider
switching to a Postfix/Maildir setup where your users' inboxes will be
located in their home folder rather than in /var/mail.

It's a fairly easy switch: install Postfix from
/usr/ports/mail/postfix, and then you just need to configure one line
in your Postfix's main.cf to turn on Maildir support:

http://www.postfix.org/faq.html#maildir

Though, there might be a bit of a learning curve with respect to the
differences between Sendmail and Postfix to convert the rest of your
configuration over. It all depends on how complicated your current
setup is.

Patrick


On 5/23/06, Marwan Sultan <[EMAIL PROTECTED]> wrote:

Hello Mike,

  Thank you again for your support, this is the output of mount and fstab

# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/ad0s1b noneswapsw  0   0
/dev/ad0s1a /   ufs rw  1   1
/dev/ad0s1e /tmpufs rw  2   2
/dev/ad0s1f /usrufs rw,userquota,groupquota
2   2
/dev/ad0s1g /varufs rw  2   2
/dev/acd0c  /cdrom  cd9660  ro,noauto   0   0
proc/proc   procfs  rw  0   0
$ mount
/dev/ad0s1a on / (ufs, local)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, with quotas, soft-updates)
/dev/ad0s1g on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)

I just want the quota to read the Shell user (home directory) size plus 
the

INBOX mails
which stay in /var/mail/$UserName

  Currently the quota reads the home directory and ignores the $inbox
  Thak you mike

  Marwan

>At 07:37 PM 21/05/2006, Marwan Sultan wrote:
>
>
>>  No when I enabled quota I did the configuration on /usr
>>  shall i enable it on /var to?
>>  then how to make the sendmail or the shell reads the user quota on his
>>home directory and
>>  his /var/mail/$username ?
>
>
>Hi,
> It all depends on how you have it mounted.  Quotas follow the
>partition. So if you have /var/mail as its own partition, you need to do 
>it
>there. If you have /var/mail as a subdirectory of /var than do it on 
>/var.

>
>What is the contents of /etc/fstab on the box ?
>
>>  if webmin can read the home directory quota and add to it the
>>/var/mail/$userInbox size
>>  then for sure I can do it some how?
>
>I dont use webmin so I am not sure how it calculates things.
>
> ---Mike
>
>___
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to
>"[EMAIL PROTECTED]"

_
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota and /var/mail

2006-05-25 Thread Alex Zbyslaw

patrick wrote:


It's a fairly easy switch: install Postfix from
/usr/ports/mail/postfix, and then you just need to configure one line
in your Postfix's main.cf to turn on Maildir support:

http://www.postfix.org/faq.html#maildir

Though, there might be a bit of a learning curve with respect to the
differences between Sendmail and Postfix to convert the rest of your
configuration over. It all depends on how complicated your current
setup is.


O'Reilly does a great Postfix book and there are lots of FAQ's out 
there.  If you have experience of mail admin then postfix is dead easy 
to pick up.


--Alex


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Mail when users over quota

2006-06-01 Thread Bart Braem
We are implementing quota on our servers and it worked out fine. But we
would like to warn users with a mail when they are over quota. Is there a
tool that does that? We found warnquota for linux but nothing for FreeBSD.
We are not the only users of quota who want to warn their users with a
mail, right?

Regards,
Bart

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: squirrel/qmail/quota question ??

2004-03-09 Thread Peter Risdon
[EMAIL PROTECTED] wrote:

I was recently assigned to take charge of creation of email accounts and
maintenance and just hit a problem.
I don't have any mail experience yet[and very minimal bsd experience], and
still reading the documentation, also the previous admin is not around. I
deduced from pkg_info that we have
courier-imap-1.7.1
qmail-1.03_1
squirrelmail-1.4.0
running the mail processes. They are working fine, although I received an
important email with a 1.2MB attachment and wanted to read that.
Unfortunately, when I access that, it says
Fatal error: Allowed memory size of 9437240 bytes exhausted at (null):0
(tried to allocate 79 bytes) in
/usr/local/www/data-dist/webmail/functions/mime.php on line 113
 

I take it you were using squirrelmail (your webmail system) to try to 
access this attachment. Have you tried using an ordinary mail client and 
the imap, as opposed to pop, protocol to collect this mail?

It won't solve the webmail/large attachment problem (if that's what it 
is), but will get you your document.

PWR.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: squirrel/qmail/quota question ??

2004-03-09 Thread Jeff Hinrichs
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 09, 2004 5:17 AM
Subject: squirrel/qmail/quota question ??


> 
> courier-imap-1.7.1
> qmail-1.03_1
> squirrelmail-1.4.0
> 
> running the mail processes. They are working fine, although I received an
> important email with a 1.2MB attachment and wanted to read that.
> Unfortunately, when I access that, it says
> 
> Fatal error: Allowed memory size of 9437240 bytes exhausted at (null):0
> (tried to allocate 79 bytes) in
> /usr/local/www/data-dist/webmail/functions/mime.php on line 113
> 
You php.ini file most likely has memory_limit = 8M set.  This is why you 
get the error.  Try upping the limit to 16M and see if that solves your 
problem.

-jeff
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Bug with quota over NFS?

2003-01-30 Thread Eric Osterweil
Hey everyone,

Has anyone seen a problem with the quota command (off
of 4.7-Stable) whereby quotas are misrepresented?  I
have a NetApp filer that hosts my NIS users' home
dirs, and I have setup 6Gig quotas.  When I run quota
on one of my FreeBSD boxes I get:

Disk quotas for user eoster (uid 1000): 
 Filesystem   usage   quota   limit   grace  
files   quota   limit   grace
/.amd_mnt/california/home
852 2097152 2097152 
53  358400  358400


When I run quota on a Linux box on the same network I
get:

Disk quotas for user eoster (uid 1000): 
 Filesystem  blocks   quota   limit   grace  
files   quota   limit   grace
california:/home/
852  6291456 6291456 
53  358400  358400

I've looked online for reports of this behavior, and
all I have found is a bug report from 1995 that
suggests a patch to quota.c.  The patch simply casts
limit variables to u_quad_t.  Does this behavior sound
familiar?  I am a little leary of adding a patch from
7 years ago.

Thanks in advance,

Eric

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



About QUOTA support in stock kernel

2012-12-21 Thread Patrick Dung
Hi,

I would like to know why quota is not enabled in the stock kernel..

I remembered that it is not enabled since freebsd 3.5 or freebsd 4 generation.
Now in freebsd 9.0, it still neeed a kernel rebuild.

I have heard it has performance issue (GIANT lock) about quota.

Regards,
Patrick
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Quota as a boot time module

2013-02-16 Thread Fbsd8
I was reading the handbook quota section and it says quota has to be 
compiles into the kernel. I thought it can also be loaded as a boot time 
module?


If so, how is it done.

If so, I will also file a pr to get the handbook quota section updated.

Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: quota deadlock on 6.1-RC1

2006-05-05 Thread dick hoogendijk
On 05 May Pawel Jakub Dawidek wrote:
> It isn't good to release a software with known, documented bugs, but
> its better than shipping an untested software with god-one-knows
> unknown bugs.

Very well said. Hear hear. EOD? ;-)

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ The Power to Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problem with chroot, uid's and quota

2004-12-21 Thread David E. Meier
I have installed openssh-portable with the chroot option enabled. Users
can login and execute the commands I supplied in their chroot'ed home
directory. I included an /etc/fstab file for the quota enabled devices and
hard linked the quota.user file to the base direcotry of the chroot. In
addidtion I copied the entries for the root and chroot'ed user as well as
the relevant groups to /etc/passwd and /etc/group in the chroot directory.
So far so good.

If I login as the chrooted user and type the command quota by itself I get
the correct values returned:

$ quota
Disk quotas for user (no account) (uid 1003):
 Filesystem   usage   quota   limit   grace   files   quota   limit  
grace
  /   8  512000  563200   4   0   0

However, when executing the quota command with the user name appended I get:

$ quota myuser
quota: myuser: unknown user

Similar with ls:

$ ls -al
total 96
drwxr-xr-x8 0wheel 512 Dec 21 17:41 .
drwxr-xr-x8 0wheel 512 Dec 21 17:41 ..
dr-x--x--x2 0wheel 512 Dec 21 16:53 bin
drwxr-xr-x2 0wheel 512 Dec 21 17:42 dev
dr-xr-xr-x2 0wheel 512 Dec 21 16:54 etc
drwxr-xr-x4 1003 mygroup   512 Dec 21 16:47 home
dr-x--x--x2 0wheel 512 Dec 21 16:47 lib
dr-x--x--x2 0wheel 512 Dec 21 16:47 libexec
-rw-r-3 0operator  2097120 Dec 21 17:44 quota.user

Somehow the gid's can get mapped to names but the uid's can't. Can anyone
point out what I need to adjust or is required to get uid's working with
names as well?

Dave

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


edit users quota in a script

2009-02-07 Thread Nicolas Letellier
Hello.

I use a script to create automatically my users (with pw, and mkdir, etc...). I 
use quota, and I have to excute 'edquota -u user', and enter quota 
informations. So, the process can not be automaticated. And cannot be part of 
my script.

I don't find informations in edquota(8) manpages about editing user quota 
without open a file.

Is an other solution exists? I'm looking for a solution in command line (for my 
script).

Regards,

-- 
 -Nicolas.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Remotely edit user disk quota

2009-05-28 Thread Wojciech Puchar

- create the MySQL database for that user

The only thing I cannot do is to set the disk quota: the home
directory is NFS mounted from another machine acting as file server,
the quota must be edited on the file server.

How could I nicely and securely connect from the script on the web
server to the file server, in order to edit the quota? It should be


use rsh and .rhosts :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Remotely edit user disk quota

2009-05-28 Thread Olivier Nicole
> > How could I nicely and securely connect from the script on the web
> > server to the file server, in order to edit the quota? It should be
> use rsh and .rhosts :)

I do that already, not really what I call secure ;) As I put up a new
machine, I'd prefer something else.

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Remotely edit user disk quota

2009-05-28 Thread Wojciech Puchar

use rsh and .rhosts :)


I do that already, not really what I call secure ;)


Could you please explain why it is not secure in your case?

I don't know exactly the environment in your case so i can't answer for 
sure, but most probably it's perfectly secure.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Remotely edit user disk quota

2009-05-28 Thread Chris Rees
2009/5/28 Olivier Nicole :
>> > How could I nicely and securely connect from the script on the web
>> > server to the file server, in order to edit the quota? It should be
>> use rsh and .rhosts :)
>
> I do that already, not really what I call secure ;) As I put up a new
> machine, I'd prefer something else.
>
> Olivier

You could use ssh and ssh keys. That's what I use in my scripts.

rsh and ssh are so similar in use there's really no point in using rsh
at all any more. The security gained by ssh is so great that any (very
small) overhead is well worth it.

Chris


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


  1   2   >