LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-26-2013, 02:00 AM   #1
XXLRay
Member
 
Registered: May 2010
Posts: 133

Rep: Reputation: 16
How to include username in warnquota


I use warnquota on RHEL 5.9 to inform users when they exceed their diskspace. It's cron as root cronjob "0 6 * * 1-5 /usr/sbin/warnquota".

Users reply to the email to our ticket system (Request Tracker) and we either increase their quota or tell them to clean up their files.

The problem is that the username is not included in the quota message (which is attached most times) and users tend to not include it by themselves.

We now have to inconveniently search our ldap database for the username. Unfortunately it's not possible to copy the email address as we have cryptic usernames and human readable email addresses.

The man page did not tell if and how usernames could be included but I read "somewhere in the Internet" than inserting %i or maybe %u inside the MESSAGE section of the /etc/warnquota. conf would do the job. For me it didn't work. I tried %i %u '%i' and '%u'.

Any ideas how I can include the username in the warnquota message?
 
Old 08-26-2013, 02:24 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
see: http://sourceforge.net/p/linuxquota/...warnquota.conf
probably depends on the version
 
1 members found this post helpful.
Old 08-26-2013, 03:46 AM   #3
XXLRay
Member
 
Registered: May 2010
Posts: 133

Original Poster
Rep: Reputation: 16
It might be the notoriously outdated RHEL repository then. Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
warnquota problems / alternative? AlucardZero Linux - Server 0 07-23-2010 09:09 AM
warnquota message dpuertas Linux - Software 1 11-04-2009 04:25 AM
group warnquota's justsimran Linux - General 0 04-04-2007 03:41 PM
warnquota for groups gleenders Linux - General 0 08-16-2005 02:24 PM
Warnquota and virtusertable Manuel-H Linux - General 0 04-25-2003 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration