quota for all users at the same?

quota for all users at the same?

Post by Nabil Zary med » Sun, 11 Dec 1994 22:52:47



Hello!

I am about to setup a quota for all my users, and would like to know if
there is a way to "edquota" all users at the same time.
<group: others, 20>.<SunOS 4.1.3>
Thanks!

Salut, Nabil Z.

 
 
 

quota for all users at the same?

Post by Zbigniew J. Tyrl » Fri, 16 Dec 1994 01:03:42



Quote:>Hello!
>I am about to setup a quota for all my users, and would like to know if
>there is a way to "edquota" all users at the same time.
><group: others, 20>.<SunOS 4.1.3>

for i in `grep ":20: /etc/passwd `
do
edquota -p prototype-user $i
done

you may want to tweak `grep ":20: /etc/passwd ` part or replace it
with `cat file ` where file has list of all users you want to set
up quota for.

prototype-user is a sample user crafted by hand.

RTFM on edquota ....

Quote:>Thanks!
>Salut, Nabil Z.

_zjt ( wannabe in trainig )
--

APK            Internet Access in Northern Ohio       (216)-481-9436
Feeds, shell, FTP, telnet, SL/IP,PPP     Uniboard distribution point

 
 
 

quota for all users at the same?

Post by Rob Qui » Sun, 18 Dec 1994 06:03:59


Quote:>for i in `grep ":20: /etc/passwd `
>do
>edquota -p prototype-user $i
>done

 edquota -p prototype-user `grep :20: /etc/passwd | cut -d: -f1`

 assuming the list isn't excessive. Use xargs in that case.

Quote:>prototype-user is a sample user crafted by hand.

 I use ``nobody''.

--
| The net never sleeps.                                                    |
|                                                                Rob Quinn |


 
 
 

1. Quotas of deleted users

Hi Admins,

we recently introduced quotas to our users. I have to modify our scripts
that are related to user administration.

What do you do with the quota-entries of deleted users? If there
are quotas for a nonexisting user, does 'quotacheck' bail out? Or fix
it?

Thanx in advance
        Stef
--

2. Multiple >> to same file?

3. quotas on special users?

4. Trying to print out variable with embedded quotes

5. Any Disk QUOTA for each user?

6. Auto-install of WorkShop compilers

7. quotas of removed users

8. Setting correct locale

9. How to set disk quota for a user?

10. How to set quota to many users at a time.

11. Quota for NIS+- Users?

12. how to create quota for each user?

13. Quota missing a user