quota advice
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 as a boot time module
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 as a boot time module
On Sat, 16 Feb 2013 09:32:32 -0500, Fbsd8 wrote: 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 I remember correctly, quota is still one of the few things you cannot load as a module, which implies you have to compile it into your (custom) kernel. In /usr/src/sys/conf/NOTES there is an entry for quota. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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
About QUOTA support in stock kernel
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
strange quota behaviour
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: strange quota behaviour
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
Quota support in GENERIC or as loadable module?
Hello, Right now quota support is not available by default in the GENERIC kernel. As far as I know there is no way to compile quota support as a loadable module, am I correct? If so, what are the reasons for not including this feature in the GENERIC kernel and/or providing it as a loadable module? I would very much like to use the freebsd-update tool on my servers, but I can't because I am forced to use a custom kernel to be able to use quotas. I can imagine quotas is not being included in the GENERIC kernel because it's only useful for servers and not for desktop users. However, the freebsd-update tool seems to me especially useful for servers and now can't be used on those systems because of the custom kernel (assuming many, if not most, servers enforce quotas). Therefore I don't understand why there isn't the option to include quota support by a loadable module. Does anybody have an explanation and/or a solution for this problem? Thanks for your help in advance! Kind regards, Wouter de Vries ___ 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
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
Disk Quota Full Error
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: Remotely edit user disk quota
same user password somewhere else. The whole point of ssh is to prevent this sort of thing, by encrypting the message traffic over this insecure communication channel. I think most people using ssh already know it. or maybe not?:) An attacker may be able to intercept the encrypted traffic, but it will take a skilled cryptanalyst and a lot of CPU time -- or the attacker will have to be very lucky -- to decrypt the message and recover the passwords while they are still valid. All of this things are strong enough to require billions of years to crack or more. From the beginning my point of this discussion is to stop stupidly repeating golden rules like - program a is secure - program b is insecure - so just don't use program b Because it teaches people not to think. There are difference between insecure program and program without extra security. (You *do* change passwords periodically, don't you?) Of course! ___ 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/5/29 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl: Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: Even 15 seconds of thinking is enough to understand that logging to other user and then su - gives completely no extra security. I don't buy this, given that root's login name is well known :) if someone can intercept the passwords you type, then he/she will intercept both user password you log in and then su password you type. He/she actually can gain more if you use su, as you may use the same user password somewhere else. But we're talking about vulnerability to dictionary and brute-force attacks. You'd have to first: Ascertain a username in the wheel group. Brute-force that password. THEN, you need to brute-force root's password. 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
Re: Remotely edit user disk quota
But we're talking about vulnerability to dictionary and brute-force attacks. You'd have to first: Ascertain a username in the wheel group. As time needed to brute-force crack any of my password is incomparably longer than the age of universe, this is not an argument. It's just a matter to use good passwords ___ 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
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: Even 15 seconds of thinking is enough to understand that logging to other user and then su - gives completely no extra security. I don't buy this, given that root's login name is well known :) if someone can intercept the passwords you type, then he/she will intercept both user password you log in and then su password you type. He/she actually can gain more if you use su, as you may use the same user password somewhere else. The whole point of ssh is to prevent this sort of thing, by encrypting the message traffic over this insecure communication channel. An attacker may be able to intercept the encrypted traffic, but it will take a skilled cryptanalyst and a lot of CPU time -- or the attacker will have to be very lucky -- to decrypt the message and recover the passwords while they are still valid. (You *do* change passwords periodically, don't 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: Remotely edit user disk quota
2009/5/28 Kirk Strauser k...@strauser.com: On Thursday 28 May 2009 02:34:02 pm Wojciech Puchar wrote: And yes - i do log as root by insecure rsh and telnet. OK, I'm now promoting you to batshit insane. Seriously, there's no excuse for running telnet - even in a secure (ha!) environment - when so much better alternatives exist. Let me shoot you a hypothetical: your webserver gets compromised. Something I pointed out earlier. 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
Re: Remotely edit user disk quota
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: Even 15 seconds of thinking is enough to understand that logging to other user and then su - gives completely no extra security. I don't buy this, given that root's login name is well known :) If a system accepts remote root logins, an attacker need only guess or intercept one thing -- the root password -- to log in with root privileges. If it does not accept remote root logins, that attacker must guess or intercept three things: the login name of a user in the wheel group, that user's password, and also the root password. ___ 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
for running telnet - even in a secure (ha!) environment - when so much better alternatives exist. Let me shoot you a hypothetical: your webserver gets compromised. Something I pointed out earlier. and what? assuming it will actually be possible to get root access at all because of bug it such buggy things like PHP, mysql etc. (unlikely) what he will do? arp attack from within jail? But just please accept that other people are DIFFERENT than you. You prefer just repeating things that you considered simply the best once (like ssh), i prefer something 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
Re: Remotely edit user disk quota
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: Even 15 seconds of thinking is enough to understand that logging to other user and then su - gives completely no extra security. I don't buy this, given that root's login name is well known :) if someone can intercept the passwords you type, then he/she will intercept both user password you log in and then su password you type. He/she actually can gain more if you use su, as you may use the same user password somewhere else. ___ 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
Remotely edit user disk quota
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: Remotely edit user disk quota
- 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
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
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/5/28 Olivier Nicole o...@cs.ait.ac.th: 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
Re: Remotely edit user disk quota
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. Because rsh/rlogin etc. is unsecure in any case. I don't remember the details, I think it has to do with the way it checks (or do not check) that the hosts are the one they pretend they are. 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
rsh and ssh are so similar in use there's really no point in using rsh at all any more. there is a point. Just try to think why instead of simply repeating a phrase ssh is secure, rsh is not, don't use it. ___ 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/5/28 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl: rsh and ssh are so similar in use there's really no point in using rsh at all any more. there is a point. Just try to think why instead of simply repeating a phrase ssh is secure, rsh is not, don't use it. rlogin has several serious security problems: * All information, including passwords, is transmitted unencrypted (making it vulnerable to interception). * The .rlogin (or .rhosts) file is easy to misuse (potentially allowing anyone to login without a password) - for this reason many corporate system administrators prohibit .rlogin files and actively search their networks for offenders. * The protocol partly relies on the remote party's rlogin client providing information honestly (including source port and source host name). A corrupt client is thus able to forge this and gain access, as the rlogin protocol has no means of authenticating other machines' identities, or ensuring that the rlogin client on a trusted machine is the real rlogin client. * The common practice of mounting users' home directories via NFS exposes rlogin to attack by means of fake .rhosts files - this means that any of NFS's security faults automatically plague rlogin. Due to these serious problems rlogin was rarely used across untrusted networks (like the public internet) and even in closed deployments it has fallen into relative disuse (with many Unix and Linux distributions no longer including it by default). Many networks which formerly relied on rlogin and telnet have replaced it with SSH and its rlogin-equivalent slogin. -- 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
Re: Remotely edit user disk quota
sure, but most probably it's perfectly secure. Because rsh/rlogin etc. is unsecure in any case. I don't remember the very bad you don't remember the details. Let i give you an example. I throw 1000$ on my table in my flat. Is this money insecure? The answer is - maybe, it's just as secure as my doors and windows cause you have to enter my flat first to get it. Other case - i put this 1000$ into hardened steel coffer. Is it secure? The answer is - The coffer provides EXTRA security over just throwing it on table. The question - do i need an extra cost of coffer? the answer depends again of how good my doors and windows are! Same with rsh. If your servers are connected by LAN and there are only your servers there, there are not possible to: 1) sniff your traffic as potential sniffer isn't in LAN 2) cheat from outside your inside's IP. So you simply don't need a coffer. As coffer is an extra cost, ssh is an extra cost. Actually great cost of unneeded encryption and RSA/DSA negotiation on startup. The other case: i have secure tunnels between some of my servers and my home computer. I do use rsh/rlogin for everything as the communication is already secured! The difference between human and monkeys is that human can think himself instead of just learning and blindly repeating. ___ 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
Due to these serious problems rlogin was rarely used across untrusted networks Good you finally pointed out the most important thing rlogin/rsh is insecure across untrusted network This is QUITE a difference between this and rsh is insecure. period rsh is as secure as the communication channel. If it can be considered secure - DO USE rsh, because it's fastest as it doesn't have any encryption overhead. ___ 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/5/28 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl: Due to these serious problems rlogin was rarely used across untrusted networks Good you finally pointed out the most important thing rlogin/rsh is insecure across untrusted network This is QUITE a difference between this and rsh is insecure. period rsh is as secure as the communication channel. If it can be considered secure - DO USE rsh, because it's fastest as it doesn't have any encryption overhead. But the encryption overhead is almost nothing. The best security comes in layers. Also, I think it's a bad idea to leave money lying round like that. That's why we have banks. More layers. 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
Re: Remotely edit user disk quota
Also, I think it's a bad idea to leave money lying round like that. That's why we have banks. More layers. like most people today you like overcomplexity, layers etc. But there are still people that prefer simplicity. You should have some respect to 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
Re: Remotely edit user disk quota
Wojciech Puchar wrote: Also, I think it's a bad idea to leave money lying round like that. That's why we have banks. More layers. like most people today you like overcomplexity, layers etc. But there are still people that prefer simplicity. You should have some respect to them. Some. But zero sympathy the day it all blows up in their faces due to just one little configuration error or, oops, exploit they didn't know about. In any case, I believe we've had the Wojciech can do all sorts of advanced things as he doesn't have to protect himself from any junior admins on shift 3 or comply with any best practices that he thinks are silly because it's all about him on his network conversation on this list before. A rehash would be tedious. -- --Jon Radel j...@radel.com smime.p7s Description: S/MIME Cryptographic Signature
Re: Remotely edit user disk quota
respect to them. Some. But zero sympathy the day it all blows up in their faces due to just one little configuration error or, oops, exploit they didn't know about. what configuration error could you imagine. In my opinion there is bigger change to make a configuration error in more sophisticated config than in simple. and higher chance for security bug in more complex program than in simple. rshd is damn simple program compared to sshd. My rule is - if you can do more simple, DO IT more simple. If this make me very advanced administrator it's just a proof that it's easy to become advanced administrator, you just have not to repeat blindly what's said everywhere. ___ 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
rsh is as secure as the communication channel. If it can be considered secure - DO USE rsh, because it's fastest as it doesn't have any encryption overhead. Are you on a 386? depends, between pentium I and core2 quad. what's a difference? ___ 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
On Thursday 28 May 2009 08:53:23 am Wojciech Puchar wrote: depends, between pentium I and core2 quad. what's a difference? Well, I can transfer 25MB/s between hosts on the LAN without my CPU ever breaking 10% CPU usage. I'm of the opinion that most people don't need to optimize for CPU in such cases when the security payoffs are so great. -- Kirk Strauser ___ 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
On Thursday 28 May 2009 06:13:11 am Wojciech Puchar wrote: rsh is as secure as the communication channel. If it can be considered secure - DO USE rsh, because it's fastest as it doesn't have any encryption overhead. Are you on a 386? -- Kirk Strauser ___ 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
On 28/5/09 15:04, Kirk Strauser wrote: On Thursday 28 May 2009 08:53:23 am Wojciech Puchar wrote: depends, between pentium I and core2 quad. what's a difference? Well, I can transfer 25MB/s between hosts on the LAN without my CPU ever breaking 10% CPU usage. I'm of the opinion that most people don't need to optimize for CPU in such cases when the security payoffs are so great. There is also the option of the HPN patches (http://www.psc.edu/networking/projects/hpn-ssh/ included as options in the openssh-portable port) which allows a none cypher so you have the security of the encrypted key authentication but no encryption overhead for transferring files. However the OP doesnt seem to want to transfer files over it so the encryption overhead will be pretty minimal anyway. ___ 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
On Thu, 28 May 2009 12:15:22 +0100, Chris Rees utis...@googlemail.com wrote: Also, I think it's a bad idea to leave money lying round like that. That's why we have banks. More layers. No. We have benks because they make it easier to steal people's money more silently, so they notice when it's too late. Special offer from Lehmann brothers. :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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
On Thu, 28 May 2009 09:04:43 -0500, Kirk Strauser k...@strauser.com wrote: Well, I can transfer 25MB/s between hosts on the LAN without my CPU ever breaking 10% CPU usage. I'm of the opinion that most people don't need to optimize for CPU in such cases when the security payoffs are so great. As Wojciech pointed out correctly before, security is only as good as the weakest point. Of course you can add security by using SSH, and it's definitely indicated when doing things via the Internet. As long as you are inside your own net, covered from the Internet, with only trustworthy machines inside it, you could even use telnet. Connecting systems by a security tunnel that already adds means of cryptography, and you consider this tunnel to be secure enough, the above situation applies. But you can always SSH inside a security tunnel, if you want. It just increases security. The more the better. :-) At the point where this the more generates so much overhead that things are lagging, stalling or just work much too slow, or slower than they should, you can re-thing the situation. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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/5/28 Polytropon free...@edvax.de: On Thu, 28 May 2009 09:04:43 -0500, Kirk Strauser k...@strauser.com wrote: Well, I can transfer 25MB/s between hosts on the LAN without my CPU ever breaking 10% CPU usage. I'm of the opinion that most people don't need to optimize for CPU in such cases when the security payoffs are so great. As Wojciech pointed out correctly before, security is only as good as the weakest point. Of course you can add security by using SSH, and it's definitely indicated when doing things via the Internet. As long as you are inside your own net, covered from the Internet, with only trustworthy machines inside it, you could even use telnet. Connecting systems by a security tunnel that already adds means of cryptography, and you consider this tunnel to be secure enough, the above situation applies. But you can always SSH inside a security tunnel, if you want. It just increases security. The more the better. :-) At the point where this the more generates so much overhead that things are lagging, stalling or just work much too slow, or slower than they should, you can re-thing the situation. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... I know I sound like Theo, but security and reliability are ALWAYS more important than overhead or speed. Always. Since the OP asked for quote 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. /quote He even said 'secure' twice. There is a web server involved, meaning possibility of compromise (we all know how secure web servers tend to be), and then one has access to network traffic for sniffing. Also, if this is for quotas, then surely the people accessing the server via *NFS* are inside the network? 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
Re: Remotely edit user disk quota
On Thu, 28 May 2009 18:04:23 +0100, Chris Rees utis...@googlemail.com wrote: [The OP] even said 'secure' twice. There is a web server involved, meaning possibility of compromise (we all know how secure web servers tend to be), and then one has access to network traffic for sniffing. Also, if this is for quotas, then surely the people accessing the server via *NFS* are inside the network? Yes, I agree to that, but it doesn't stand in any contradiction to what I said, or what Wojciech said. So for the OP, security is needed. As it has been mentioned, using encryption tunnels is one (valid) means to do this, SSH is another, and both of them can even be combined. If the environment is that insecure that it doesn't allow rsh / rlogin, then DO NOT USE IT. But if it is, why not? At least, the OP's description involving web servers doesn't justify using just rsh / rlogin, and not telnet, of course. :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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
Well, I can transfer 25MB/s between hosts on the LAN without my CPU ever breaking 10% CPU usage. probably true, i never checked actually. i just don't understand such reasoning that you have to waste (even small) CPU power without sense. For example local private LAN or already-encrypted VPN network - which is common case in my case. Actually i don't use ssh at all except rare cases when i help someone else. ___ 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
good as the weakest point. Of course you can add security by using SSH, and it's definitely indicated when doing things via the Internet. As long as you are inside your own net, covered from the Internet, with only trustworthy machines inside it, you could even use telnet. which i actually do. even more! i ALWAYS change configuration to allow root login from telnet rsh and ssh which is disabled by default. Even 15 seconds of thinking is enough to understand that logging to other user and then su - gives completely no extra security. And yes - i do log as root by insecure rsh and telnet. The only think you should be aware is to not do it when connection is from outside and insecure. This case i actually don't use even ssh if it's not mine computer. How can i be sure that ssh is secure, but keylogging isn't installed? ___ 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
I know I sound like Theo, but security and reliability are ALWAYS more important than overhead or speed. I really agree with You. That's why every admin (and user too) should think about what is he/she doing, instead of repeating the same mantras about security/insecurity of something. ___ 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
But if it is, why not? At least, the OP's description involving some time ago i heard from linux user that rshd is removed at all because it's insecure. Just got another example how good decision i made moving away from it. ___ 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
On Thursday 28 May 2009 02:34:02 pm Wojciech Puchar wrote: And yes - i do log as root by insecure rsh and telnet. OK, I'm now promoting you to batshit insane. Seriously, there's no excuse for running telnet - even in a secure (ha!) environment - when so much better alternatives exist. Let me shoot you a hypothetical: your webserver gets compromised. The intruder uses a little ARP poisoning to launch a MITM attack between your workstation and the database server. He comes back a couple hours later and uses your plaintext root password to make a backup of your database for his personal use. Oh, but that could never happen to you, because you run a PtP VPN between every pair of machines on your network, said network being separated from the Internet by a 2 meter air gap and a Doberman Pinscher. Seriously, using telnet today is flat-out stupid, and I'd fire you in a second if you brought that level of bullheaded incompetence into my company. /rant -- Kirk Strauser ___ 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
And yes - i do log as root by insecure rsh and telnet. OK, I'm now promoting you to batshit insane. Seriously, there's no excuse thank you very much. while i don't know exactly what is a difference between batshit insane and insane i feel really proud! ___ 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, quota
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
Re: FreeBSD, quota
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
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
edit users quota in a script
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: differences of disk usage between du and quota binaries
On Fri, 6 Feb 2009 20:12:56 + RW rwmailli...@googlemail.com wrote: On Fri, 6 Feb 2009 20:13:17 +0100 Nicolas Letellier nico...@nicoelro.net wrote: Hello. I use FreeBSD 6.3. I set quota to my fs. But, when I print disk usage with du -sh, I have: .. Why this difference? (633M against 648264) Try dividing 648264 by 1024. Ok. Thanks a lot for your response. 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: edit users quota in a script
Nicolas Letellier wrote: 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, The edquota(8) command accepts a '-e' option that allows it to set quotas non-interactively. Try man edquota again. ___ 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: edit users quota in a script
On Sat, 07 Feb 2009 14:09:13 +0200 Manolis Kiagias sonic200...@gmail.com wrote: Nicolas Letellier wrote: 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, The edquota(8) command accepts a '-e' option that allows it to set quotas non-interactively. Try man edquota again. Haaa... yes, I forgot -e option. Thanks a lot! 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: edit users quota in a script
Besides the -e switch to edquota as has already been mentioned, I used to make extensive use of the -p switch to use a prototype. For example, you could create a fake user (or group) named q-typical, assign that user the quotas for a typical user, and then use edquota -p q-typical newuser to assign those quotas to the new user. You could maintain several prototypes for different classes of users or groups. On Sat, Feb 07, 2009 at 01:00:25PM +0100, Nicolas Letellier wrote: 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). -- Stephen CorbeseroIt's always darkest Bethlehem, PA 18015 before pitch black. corbes...@ptd.net ___ 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
differences of disk usage between du and quota binaries
Hello. I use FreeBSD 6.3. I set quota to my fs. But, when I print disk usage with du -sh, I have: r...@domain sites $ du -sh folder 633Mfolder But, when I print disk usage with quota -u user, I have: isk quotas for user user (uid 2002): Filesystem usage quota limit grace files quota limit grace /var 648264 70 702963 0 0 Why this difference? (633M against 648264) 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: differences of disk usage between du and quota binaries
On Fri, Feb 6, 2009 at 2:13 PM, Nicolas Letellier nico...@nicoelro.net wrote: Hello. I use FreeBSD 6.3. I set quota to my fs. But, when I print disk usage with du -sh, I have: r...@domain sites $ du -sh folder 633Mfolder But, when I print disk usage with quota -u user, I have: isk quotas for user user (uid 2002): Filesystem usage quota limit grace files quota limit grace /var 648264 70 702963 0 0 Why this difference? (633M against 648264) Because 633Mb is 648264 (roughly) bytes. (648264 / 1024) Regards, -- Glen Barber ___ 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: differences of disk usage between du and quota binaries
On Fri, Feb 6, 2009 at 2:33 PM, Glen Barber glen.j.bar...@gmail.com wrote: On Fri, Feb 6, 2009 at 2:13 PM, Nicolas Letellier nico...@nicoelro.net wrote: Hello. I use FreeBSD 6.3. I set quota to my fs. But, when I print disk usage with du -sh, I have: r...@domain sites $ du -sh folder 633Mfolder But, when I print disk usage with quota -u user, I have: isk quotas for user user (uid 2002): Filesystem usage quota limit grace files quota limit grace /var 648264 70 702963 0 0 Why this difference? (633M against 648264) Because 633Mb is 648264 (roughly) bytes. (648264 / 1024) Regards, Well, I never really answered the 'why' part of your question -- the '-h' flag prints 'human readable' output -- ie, in MB instead of bytes. -- Glen Barber ___ 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: differences of disk usage between du and quota binaries
On Fri, 6 Feb 2009 20:13:17 +0100 Nicolas Letellier nico...@nicoelro.net wrote: Hello. I use FreeBSD 6.3. I set quota to my fs. But, when I print disk usage with du -sh, I have: .. Why this difference? (633M against 648264) Try dividing 648264 by 1024. ___ 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: How to set quota ( as Mbyte ) for a directory?
On Friday 08 August 2008, Chuck Swiger wrote: On Aug 8, 2008, at 11:49 AM, Yavuz Maslak wrote: On freebsd7, How to set quota for a directory? For instance I want to set 100Mbyte quota for a directory. How can I do that ? Quotas are handled per filesystem, not per directory. See man quotaon man quotacheck, or the FreeBSD Handbook. If you're in a position to use/migrate to ZFS, quotas are something you get for free. You still have to apply them on a per-filesystem basis but a ZFS filesystem is just part of a pool so it's a lot more dynamic. See the quota and refquota property descriptions in the zfs(1M) manpage. However, ZFS is only available in FreeBSD 7.0 or newer and is still considered experimental. There is a patch for -HEAD (8-CURRENT) that brings in the latest version and addresses many issues, but it hasn't been backported to 7.x (and may not be). JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to set quota ( as Mbyte ) for a directory?
On freebsd7, How to set quota for a directory? For instance I want to set 100Mbyte quota for a directory. How can I do that ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to set quota ( as Mbyte ) for a directory?
On Aug 8, 2008, at 11:49 AM, Yavuz Maslak wrote: On freebsd7, How to set quota for a directory? For instance I want to set 100Mbyte quota for a directory. How can I do that ? Quotas are handled per filesystem, not per directory. See man quotaon man quotacheck, or the FreeBSD Handbook. Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to set quota ( as Mbyte ) for a directory?
You may actually use the edquota -u command to set a quota a specific user. I think this is about as specific as you can get. edquota -g is for groups and edquota -f is for a filesystem. -- View this message in context: http://www.nabble.com/How-to-set-quota-%28-as-Mbyte-%29--for-a-directory--tp18897426p18899490.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 and sendmail accepts 10k mail size
Quoting lyd mc [EMAIL PROTECTED]: However, my company wants to have 20meg mbox space per user. If the User exceeds, he/she should not recieved any mail. So, I use system quota to prevent sendmail from writing to mbox of a Let me suggest slightly different approaches: 1.- You could have /usr/ports/mail/mimedefang making the decisions instead of sendmail or system quota. There you can set your own rules and sendmail will abide them. This gives you far better control and you're limited by your own imagination. 2.- Implement a mail server with quota capabilities. For instance cyrus-imap. There you can set quota limits, warning messages to users, percentages and so on. This is the easiest approach. Regards, Mikhail. -- Mikhail Goriachev Webanoide ___ 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 sendmail accepts 10k mail size
On Thursday 10 July 2008 16:19:59 Mikhail Goriachev wrote: Quoting lyd mc [EMAIL PROTECTED]: However, my company wants to have 20meg mbox space per user. If the User exceeds, he/she should not recieved any mail. So, I use system quota to prevent sendmail from writing to mbox of a Let me suggest slightly different approaches: 1.- You could have /usr/ports/mail/mimedefang making the decisions instead of sendmail or system quota. There you can set your own rules and sendmail will abide them. This gives you far better control and you're limited by your own imagination. 2.- Implement a mail server with quota capabilities. For instance cyrus-imap. There you can set quota limits, warning messages to users, percentages and so on. This is the easiest approach. So there isn't an equivalent to postfix's mailbox_size_limit? -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ 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 sendmail accepts 10k mail size
Hi Mikhail, Thank you for the great suggestion. I will try it in our new server. Regards, alyd --- On Thu, 7/10/08, Mikhail Goriachev [EMAIL PROTECTED] wrote: From: Mikhail Goriachev [EMAIL PROTECTED] Subject: Re: quota and sendmail accepts 10k mail size To: [EMAIL PROTECTED], [EMAIL PROTECTED], freebsd-questions@freebsd.org Date: Thursday, July 10, 2008, 10:19 PM Quoting lyd mc [EMAIL PROTECTED]: However, my company wants to have 20meg mbox space per user. If the User exceeds, he/she should not recieved any mail. So, I use system quota to prevent sendmail from writing to mbox of a Let me suggest slightly different approaches: 1.- You could have /usr/ports/mail/mimedefang making the decisions instead of sendmail or system quota. There you can set your own rules and sendmail will abide them. This gives you far better control and you're limited by your own imagination. 2.- Implement a mail server with quota capabilities. For instance cyrus-imap. There you can set quota limits, warning messages to users, percentages and so on. This is the easiest approach. Regards, Mikhail. -- Mikhail Goriachev Webanoide ___ 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 sendmail accepts 10k mail size
Hi Derek, It is good to hear from you. You are right about sendmail has only global option to limit mail size. However, my company wants to have 20meg mbox space per user. If the User exceeds, he/she should not recieved any mail. So, I use system quota to prevent sendmail from writing to mbox of a user which is under quota.Sendmail should bounce the mail and reply to sender with this kind of error: - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 550 5.0.0 output error) Here is my configs: I enable quota to /var and /home filesystem /dev/ipsd0s1f /home ufs rw,userquota 2 2 /dev/ipsd0s1d /var ufs rw,userquota 2 2 # qouta -v user.underquota Disk quotas for user user.underquota (uid 1333): Filesystem usage quota limit grace files quota limit grace /home 210 20480 20480 11 0 0 /var 62960* 20480 20480 none 1 0 0 As you can see here, user.underquota already exceeded the limit (soft and hard). If I try to send a mail to this user more than 13k mail size, sendmail cannot write to this mbox (since mbox of a user is located in /var/mail) and will reply with an error message. At first I thought it was working, however, when i try to send 10k, 7k, 5k or less mail size, sendmail can write to user.underquota mbox. User file permition: #ls -l -rw-rw 1 user.underquota mail 64413589 Jul 8 09:54 user.underquota So, what do you think? Do i missed some config? or this is a bug? Thank you. Best regards, Alyd ___ 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 sendmail accepts 10k mail size
At 08:14 PM 7/7/2008, lyd mc wrote: Greetings, I setup my mail server on freebsd7.0R and it is working great! However, I have a problem on quota. It suppose to block any incoming message to specific user which is under quota. But sendmail can still send to the user under quota if the mail size is ~ less than 10k. Quota only works when the mail size is greater than 13k. Is there any way to correct this problem? Please help. By the way, i disable the grace period via quota.h. #define MAX_IQ_TIME (0) /* seconds in 1 week */ #define MAX_DQ_TIME (0) /* seconds in 1 week */ And my mail users authenticate via ldap. Thank you and more power. I don't fully understand what you are trying to limit, most sendmail size limits are set either globally, or by protocol. The General setting is set in you .mc file with: confMAX_MESSAGE_SIZEMaxMessageSize [infinite] The maximum size of messages that will be accepted (in bytes). Otherwise read through the page on the options here and you can refine the size limit by the protcol/mta: http://www.sendmail.org/documentation/configurationReadme -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]
quota and sendmail accepts 10k mail size
Greetings, I setup my mail server on freebsd7.0R and it is working great! However, I have a problem on quota. It suppose to block any incoming message to specific user which is under quota. But sendmail can still send to the user under quota if the mail size is ~ less than 10k. Quota only works when the mail size is greater than 13k. Is there any way to correct this problem? Please help. By the way, i disable the grace period via quota.h. #define MAX_IQ_TIME (0) /* seconds in 1 week */ #define MAX_DQ_TIME (0) /* seconds in 1 week */ And my mail users authenticate via ldap. Thank you and more power. ___ 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
-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]
Freebsd quota sendmail
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: Freebsd quota sendmail
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
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: how to enable the quota on
Giotis Eugen wrote: hello, im trying to enable quota on and i recieve the following error: fstab: /etc/fstab:2: Inappropriate file type or format and i typed: /etc/rc.conf and i recieve the error: /etc/rc.conf: Permission denied. Can you help me ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] It is not clear what you are actually typing here, but you should really open these files with an editor like, vi, ee, or nano. e.g. ee /etc/fstab and ee /etc/rc.conf to change the contents of the files. Then follow this guide from the handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/quotas.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to enable the quota on
im trying to enable quota on and i recieve the following error: fstab: /etc/fstab:2: Inappropriate file type or format how do you enable it? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
how to enable the quota on
hello, im trying to enable quota on and i recieve the following error: fstab: /etc/fstab:2: Inappropriate file type or format and i typed: /etc/rc.conf and i recieve the error: /etc/rc.conf: Permission denied. Can you help me ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to enable the quota on
On Fri, Feb 01, 2008 at 02:42:39PM +0200, Giotis Eugen wrote: hello, im trying to enable quota on and i recieve the following error: fstab: /etc/fstab:2: Inappropriate file type or format and i typed: /etc/rc.conf and i recieve the error: /etc/rc.conf: Permission denied. I don't know what you entered to get the first message. You don't say. But, on the second, /etc/rc.conf is NOT an executable file. It is a data file that other programs and scripts read to set variables for their operations. You might need to edit /etc/rc.conf (with vi or emacs or some other editor) to change variable settings, but you would not execute it. Where are you getting your information about starting quotas? Which steps have you actually tried? jerry Can you help me ? ___ 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]
Postfix quota per virtual domain
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]
Re: Postfix quota per virtual domain
Hello, I am working on a Postfix email server for virtual domain. I was requested to implement quota per domain, not per user: the sum of mailboxes of all the users in the domain must not exceed the quota set for the domain. (All I could find was example where all users of the domain had a same quota amount, fixed for the domain, but each individual mailbox counts for its own quota.) 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]
viability of QUOTA support as a KLD?
Hey all, It seems most of the things I want to do under freeBSD have been turned into nice KLD modules. However, I'm still forced to do a kernel recompile for QUOTA support. Is there some major reason it cannot be made into a KLD as well? -Dan Mahoney -- It would be bad. -Egon Spengler, Ghostbusters Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
jail+quota problem!
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]
quota on samba file server
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: Does QUOTA work for users not in /etc/password (ie. by UID?)
In the last episode (Aug 29), Philip Hallstrom said: I was looking at implementing QUOTA for a server, but all of our users are stored in a database (ftp/pop/imap authenticates against the db). They each have their own uid's though so the files are owned individually. I would think file system quotas would work for this, but from the docs I've read so far it doesn't say and all the various commands take a username as an argument, not a uid... So without actually trying it out, anyone know if quotas will work without matching /etc/passwd entries? Quotas work entirely by uid: the quota info is stored at an offset of uid*sizeof(struct dqblk) in quota.user. You can pass uids to edquota or any other quota tool. -- 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: Does QUOTA work for users not in /etc/password (ie. by UID?)
BTW, there is a small bug in quota for FreeBSD 6.x and 7.x. The count gets off if the partition overfills (kern/89247). There is a patch in the description if you want to manually apply. --Mark Tinguely. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Does QUOTA work for users not in /etc/password (ie. by UID?)
Hi all - I was looking at implementing QUOTA for a server, but all of our users are stored in a database (ftp/pop/imap authenticates against the db). They each have their own uid's though so the files are owned individually. I would think file system quotas would work for this, but from the docs I've read so far it doesn't say and all the various commands take a username as an argument, not a uid... So without actually trying it out, anyone know if quotas will work without matching /etc/passwd entries? Thanks! -philip ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, Quota limit reached woes woes woes
I believe that thread was started by me when I was trying to configure CUPS, I've done a search on the net, even though I'm able to find people with the same problem but now solution at all. Anthony Agelastos [EMAIL PROTECTED] escreveu: On Jul 9, 2006, at 7:48 PM, E. J. Cerejo wrote: The version is Common UNIX Printing System 1.2.0, I installed it using the portinstall and I had just finished updating my ports tree. I was trying to extract if you had it working on a 1.1.x install of CUPS and when you updated it to 1.2.0 it stopped working. A lot of people are having issues with CUPS at 1.2.0. I recommend going to the mailing list archives and going through the several CUPS threads to see if anything there may help you, if you haven't already. One thread entitled HP Officejet Printer may assist you. Good luck. Anthony Agelastos [EMAIL PROTECTED] escreveu: On Jul 9, 2006, at 7:36 PM, E. J. Cerejo wrote: Hello, Hello, After successfully setting up my HP Officejet with CUPS and having printed a successful test page. I can no longer print. What version of CUPS did you get your printer working with and what version are you running now? Now I try to print nothing happens, I go into cups configuration page and I don't see any printer there, it just disappeared, I go through the adding a new printer process again and I add it exactly the same way I did the first time and I try to print a test page I get this error: Quota limit reached I click on administration again and then manage printers and again the printer I just added is not there. Does anyone know what's going on with this? It just doesn't make any sense! At first I thought I had it and now ??? Anyway I'm running FBSD 6.1. Any help would be appreciated. Thanks. EJC www.only7bucks.com - Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] EJC www.only7bucks.com - Yahoo! Copa 2006 - cobertura dos jogos em tempo real e tudo sobre a seleção brasileira! EJC www.only7bucks.com - Yahoo! Copa 2006 - cobertura dos jogos em tempo real e tudo sobre a seleção brasileira! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CUPS, Quota limit reached woes woes woes
Hello, After successfully setting up my HP Officejet with CUPS and having printed a successful test page. I can no longer print. Now I try to print nothing happens, I go into cups configuration page and I don't see any printer there, it just disappeared, I go through the adding a new printer process again and I add it exactly the same way I did the first time and I try to print a test page I get this error: Quota limit reached I click on administration again and then manage printers and again the printer I just added is not there. Does anyone know what's going on with this? It just doesn't make any sense! At first I thought I had it and now ??? Anyway I'm running FBSD 6.1. Any help would be appreciated. Thanks. EJC www.only7bucks.com - Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, Quota limit reached woes woes woes
On Jul 9, 2006, at 7:36 PM, E. J. Cerejo wrote: Hello, Hello, After successfully setting up my HP Officejet with CUPS and having printed a successful test page. I can no longer print. What version of CUPS did you get your printer working with and what version are you running now? Now I try to print nothing happens, I go into cups configuration page and I don't see any printer there, it just disappeared, I go through the adding a new printer process again and I add it exactly the same way I did the first time and I try to print a test page I get this error: Quota limit reached I click on administration again and then manage printers and again the printer I just added is not there. Does anyone know what's going on with this? It just doesn't make any sense! At first I thought I had it and now ??? Anyway I'm running FBSD 6.1. Any help would be appreciated. Thanks. EJC www.only7bucks.com - Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [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: CUPS, Quota limit reached woes woes woes
The version is Common UNIX Printing System 1.2.0, I installed it using the portinstall and I had just finished updating my ports tree. Anthony Agelastos [EMAIL PROTECTED] escreveu: On Jul 9, 2006, at 7:36 PM, E. J. Cerejo wrote: Hello, Hello, After successfully setting up my HP Officejet with CUPS and having printed a successful test page. I can no longer print. What version of CUPS did you get your printer working with and what version are you running now? Now I try to print nothing happens, I go into cups configuration page and I don't see any printer there, it just disappeared, I go through the adding a new printer process again and I add it exactly the same way I did the first time and I try to print a test page I get this error: Quota limit reached I click on administration again and then manage printers and again the printer I just added is not there. Does anyone know what's going on with this? It just doesn't make any sense! At first I thought I had it and now ??? Anyway I'm running FBSD 6.1. Any help would be appreciated. Thanks. EJC www.only7bucks.com - Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] EJC www.only7bucks.com - Yahoo! Copa 2006 - cobertura dos jogos em tempo real e tudo sobre a seleção brasileira! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, Quota limit reached woes woes woes
On Jul 9, 2006, at 7:48 PM, E. J. Cerejo wrote: The version is Common UNIX Printing System 1.2.0, I installed it using the portinstall and I had just finished updating my ports tree. I was trying to extract if you had it working on a 1.1.x install of CUPS and when you updated it to 1.2.0 it stopped working. A lot of people are having issues with CUPS at 1.2.0. I recommend going to the mailing list archives and going through the several CUPS threads to see if anything there may help you, if you haven't already. One thread entitled HP Officejet Printer may assist you. Good luck. Anthony Agelastos [EMAIL PROTECTED] escreveu: On Jul 9, 2006, at 7:36 PM, E. J. Cerejo wrote: Hello, Hello, After successfully setting up my HP Officejet with CUPS and having printed a successful test page. I can no longer print. What version of CUPS did you get your printer working with and what version are you running now? Now I try to print nothing happens, I go into cups configuration page and I don't see any printer there, it just disappeared, I go through the adding a new printer process again and I add it exactly the same way I did the first time and I try to print a test page I get this error: Quota limit reached I click on administration again and then manage printers and again the printer I just added is not there. Does anyone know what's going on with this? It just doesn't make any sense! At first I thought I had it and now ??? Anyway I'm running FBSD 6.1. Any help would be appreciated. Thanks. EJC www.only7bucks.com - Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] EJC www.only7bucks.com Yahoo! Copa 2006 - cobertura dos jogos em tempo real e tudo sobre a seleção brasileira! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
6.1 quota issues?
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]
quota printing ?
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]
Re: quota printing ?
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
Mail when users over quota
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: Mail when users over quota
In the last episode (Jun 01), Bart Braem said: 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? One way would be to parse the output of repquota, and send an email to anyone with a + in the 2nd column. -- 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 and /var/mail
:) 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
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]
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]
Re: quota and /var/mail
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
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
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
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]