In our organization there are around 1000+ users are using mails. The mailing system is implemented under RHEL using postfix and dovecot. For user based quotas i have implemented Disk Quota. But the problem when i want to edit quota for multiple users with similar limits i'm doing "edquota user" for every users. It seems very difficult. Now I wanna know:
1. Is there any way to edit quota value for multiple users at a single shot?
2. Also there is any method to send alerts mail to the end users on disk utilization?
Is there a way to remove users in bulk? Maybe by a range of user id numbers.
I help run a school server for our Linux class. I create temp accounts for tests and now I just want to delete them. I really should delete the old users too but the Professor likes to let them have access even after the class.
I want to implement quota per group users like this: Assume i have a Student group in my system, that student1 and student2 and student3 are three users in this group. i want to set quota 100GB per each user in this group, 100GB for student1, 100GB for student2 and .... The problem is when i set quota per group i cant say each user in that group have 100GB quota limit, also when i set quota per user, i should set one by one for each user.I want to know, is there anyway for set quota for all users in specific group?
Running a server using CentOS 5.5 (yum updated, x86_64), found that when using /usr/sbin/useradd to create system user, the quota for the user will default set to 5M soft and 10M hard (on /var/spool/mail partition). As remember the default setting for user quota should be both zero when create a new user.
man useradd and quota related command and no help, had any idea how to change/set the default quota when create user.
I'm trying to set up quota limit in samba-3.0.33-3.15.el5_4.1 in CentOS 5.5, by means of the module vfs objects. In the samba howto  I found a very brief explanation, but it isn't working for me. The basic idea is to setup a user called 'quota2g' (uid 499) and setup the [homes] share, as it comes by default, to enforce the quota on each user share.quota2g:x:499:499:User quota 2GB:/home/quota2g:/bin/bash
What is the best way to create a hard (OS) quota on disk space folders? Basically in web root folder /var/www/lighttpd I have a folder called domains. I want to set a quota on each domain folder. The quota sizes will vary per folder. Is there a way to do this without creating a user for every domain? Currently every folder is owned by the lighttpd user and group.
I installed Diskquota on CentOS 5.1 machine. I enabled quota for some user with 1 GB as both hard and soft limits, Grace period is 0. Every this is working fine if we work from normal user's login say (user1 who is a system user). If he exceeds 1GB its will restrict that saying quota exceeded. But, If root user copies some 500MB files into his workspace, and change the ownership of those files using following command chown user1.user1 * ( * is 500 MB files).
Then quota is exceeded and it is showed using: repquota /home user1 +- 2039960 997020 997020 none 298 0 0 Here its showing as some 2GB. Soft limit is 951 MB.
So, my problem is restrict quota from all possible ways, i.e., even if root does some copying and change permissions, it must tell that disc quota exceeded.
I'm looking for a free backup solution how work in client-server in both environments Linux(server) and Windows(client). in my case, i want to give a disk space quota in my Linux server for each remote windows client.
I need to set up quotas so each user has a limit of 20GB (soft could be 15GB) on their homes.Is there a way to set up a default quota for all the users, or do i have to do this for the 345982374058 users in my system manually?would group quotas help? (i dont understand much of these type of quota)
i installed Samba on my Fedora, have created couple of Share directories and assigned users accordingly, that part is apsolutly fine and working without any problem, but now the next step is i want to assign the quota limits to users to save the disk space,
I have my home server setup, running 10.04 x64. The OS is installed on a 300GB WD Blue drive, and I have a RAID5 array md0, consisting of 4x 2TB WD Green drives, mounted as /home. I am sharing the home directories using samba and using them to back-up the other computers in the house. I have created a user account+password for each computer, giving it its own "/home/computername_backup/" directory to store it's backups in.
Computers being backed-up:(750GB) Gaming PC running Win7 Ultimate x64 (30GB + 2TB) HTPC running Win7 Home Premium x64 (32GB) Netbook running Win7 Home Premium x32 (250GB) 2 Macbook Pros Running OS X 10.6.4 (tweaked to allow time machine to recognize the samba share as a time machine volume
Question: 5.37TB of /home seems good for now, and I haven't run into any problems so far, but I don't want to have to keep checking. I'd like to put a size cap on each user's home, to prevent one of the computers from gobbling up all the space. Is there an easy (or hard) way to configure this type of thing? My Macbook, for example, only has a 250GB HD. I could give it 3-400GB of space for its home and that would be plenty - whenever it filled its /home/, it would start erasing the oldest backups. If there is no size limit, I believe it will just continue to grow until all the free space is gone.
Considerations: Right now, the HTPC is storing all its media locally (on the installed 2TB drive). However, I've already used 3/4 of the space and the HPTC enclosure can only hold one drive. My plan moving forward is to have /home be used to store media files (iTunes music for all computers and tv/movies for the HTPC), which is another reason I'd like to ensure that the backups don't take up all the space.
I realize I could create a partition for each computer, but I'd prefer not to go down this route. This would seem an untenable tactic if I added another computer next month, or if I realized that the partition was too small.
When going through my emails that are produced by the cron jobs ran on my Solaris servers, I am receiving a message that states,"/ is 50% full" what can I do to either lower the amount of data on this partition or raise the threshold limits to to stop this message? I would prefer to learn how to lower the amount of data on this disk to bring under my disk quota of 50% in order to stop these emails being produced by the cron job running on this server.
I am writing a php script and I need to find the total diskspace of a directory. I have used space already. I have a couple of different users with quotas Code: $path = "/home/" . ($_SERVER['PHP_AUTH_USER']); $used = exec("du -c -a $path"); echo $used; Will give me the disk space used. But I need total quota for that user.
I'm currently in the middle of developing an automatic system which can provision Linux VMs automatically.Let's say I have a disk image which has a Linux distro installed on it. How would I change the root password on that, without having to boot the OS?It would be nice if I could just simply run passwd with some switch to point to the /etc/shadow file on the (mounted) VM disk image..
Relational databases usually have their data over in /var/lib/something. Users are in /home (with data in /var/www). How can I apply a single total disk space quota across all of these independent software systems (file systems, RDBMS, etc.)?
P.S. There's a bet going on around me as to just how awesome SU is. Let's see what you've got.
I need to copy a large number of files, it comes to 1 lakh from one server to another. When I tried various commands using scp , ftp etc. It is saying "Arg list too long". In which way can we copy all the files. The Two servers are under Linux.
Recently if I have been getting Unsolicited Bulk Email (UBE) errors when using mobile phones to send. The ip in postfix is allowed to relay but I suspect that the mobile provider is using DHCP to issue address to the phone (though I have check the ip addresses are always allocated the same) I have checked via a fixed ip that is allowed in the relay and this does not generate the same error. Does anyone know what I can change in Amavis or Postfix to sort this out, because legal mail is being rejected via the mobile phones at the moment.
I want to enable quota on my centos 5.5, I've tried and it showed correctly quotacheck but when i rebooted the machine it showed me an error saying that fsck.ext3: no such file or direcotory while trying to open /dev/VolGroup00/LogVol00 below are my fdisk and fstab file. how can I enable quota based on below configuration. otherwise may be I have to reformat the machine..n it'll be really painfull for me.
[root@drikdhaka ~]# fdisk -l Disk /dev/hda: 82.3 GB, 82348277760 bytes 255 heads, 63 sectors/track, 10011 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes