inside the mind of a linux admin

view suspended user’s acct size and reason

Use this to output a human readable list of suspended cPanel users. Helpful when performing disk reclamations, outputs an available suspension reason along with size of the account:


# cd /var/cpanel/suspended
# for i in * ; do echo -n "$i - "; cat $i ; echo -n " ### suspension date: `ls -la $i | cut -d' ' -f 6-8`" ; echo -n ' ' ; echo -n ' ### account size: ' ; du -sh /home/$i ; done

Will return an output such as:

user56 – moved ### suspension date: Nov 18 11:48 ### account size: 5.1G /home/user56
user57 – moved ### suspension date: Nov 18 11:48 ### account size: 3.0G /home/user57

Related Posts

synergy: How to enable crypto (encryption) and generate SSL certificate

The newer Linux versions of the popular mouse/keyboard sharing application “synergy” now has built in encryption. Here’s how to configure it: Just simply passing the –enable-crypto flag on your synergy server without having a proper SSL certificate will result in the inability to connect to clients and generate an error message similar to this in […]

Read More

Change Number Pad Delete (dot) key from a comma in Ubuntu Linux

I recently purchased a new keyboard and updated to the latest Ubuntu, I’m also an avid user of the number pad for quick input when dealing with spreadsheets or accounting. I found that my num pad’s delete key (“.”) was outputting a comma (“,”) instead. Pretty annoying? I agree, but this can be very easily […]

Read More

1 Comment

  • Garmin GPS Systems on Wednesday, March 31, 2010

    This is very good information post. I just roughly ready through your post. Now I have not much time. Will bookmark it and comeback to read tonight. Regards.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.