ultrix: establishing disk quotas & limiting su

ultrix: establishing disk quotas & limiting su

Post by Paul J Lustgra » Wed, 26 Apr 1995 04:00:00





Quote:>I'm a H.S. teacher faced with a Decstation 5000, responsibilities
>as administrator, and no training workshop!

>Question 1: How do I limit the amount of disk space each user has on
>my system? Our hard drive is 95% full and I'd like to encourage a
>little more discipline on erasing unnecessary files.

See man quota.  Use quotaon to enable quotas.

Quote:>Question 2: How do I limit access to the su command? One manual
>suggests only members of the "wheel" group have this access, but this
>group does not exist in my /etc/group file.

Ultrix does not use the wheel group.  You must keep the root password
secret.  Good luck.

--
Paul Lustgraaf            "It's easier to apologize than to get permission."
Network Specialist                                     Grace Hopper

Ames, IA  50011                                                 515-294-0324

 
 
 

ultrix: establishing disk quotas & limiting su

Post by Charles N Ma » Wed, 26 Apr 1995 04:00:00


I'm a H.S. teacher faced with a Decstation 5000, responsibilities
as administrator, and no training workshop!

Question 1: How do I limit the amount of disk space each user has on
my system? Our hard drive is 95% full and I'd like to encourage a
little more discipline on erasing unnecessary files.

Question 2: How do I limit access to the su command? One manual
suggests only members of the "wheel" group have this access, but this
group does not exist in my /etc/group file.

 
 
 

ultrix: establishing disk quotas & limiting su

Post by Alan Rollow - Dr. File System's Home for Wayward Inode » Thu, 27 Apr 1995 04:00:00



Quote:>Question 1: How do I limit the amount of disk space each user has on
>my system? Our hard drive is 95% full and I'd like to encourage a
>little more discipline on erasing unnecessary files.

If I recall correctly.

In at the top of the file system where you want to enable
quotas:

1.  Create a file called quota.

        # cd /usr/users
        # touch quota

2.  Run quota check for the file system.

        # quotacheck /usr/users

3.  Change the "rw" entry for the file system in /etc/fstab
    to "rq".

4.  Use quotaon to enable quotas.

5.  Use edquota to set the quotas you want.  I don't recall if there
    is an easy way to set the quota for a large number of users.

Quote:

>Question 2: How do I limit access to the su command? One manual
>suggests only members of the "wheel" group have this access, but this
>group does not exist in my /etc/group file.

I think a "recent" Berkeley version of su supported checking for
membership in group "wheel".  The ULTRIX version of su doesn't
do this.  But you can create a group (or use an existing one)
and make the people to whom you want to allow running su members
of that group.  Then change the permissions of su so that it
can only be executed by root the members of that group:

        # chgrp wheel `which su`
        # chmod 4750 `which su`

The wheel entry in /etc/group might look like:

wheel:*:3:root,user,user,...

--

 
 
 

1. Disk Quotas on Ultrix (OSF/1)

There are commands for this. It is called disk quotas (look in man for quotaon
and quotaoff). It has been awhile since I have had to deal with Ultrix but
heregoes.

Edit your Config file (/sys/conf/NAME) to include

options         QUOTA

Edit the /etc/fstab file and change the fourth field to rw,userquota,groupquota

Use Quotacheck to create a quota file. (Refer to man pages)

Use the edquota to activate the quota editor and create and account for each
user (this is a vi editor) (refer to man pages on edquota)

issue a quotaon command.

Check your /etc/rc.config file to look for the quota start up.
issue the command "/usr/sbin/rcmagr set QUOTA_CONFIG yes"

This should do it. This is out of my OSF/1 sysadmin book and I don't remenber
doing it any different in Ultrix. If it doesn't work use the quotaoff command
to turn off the quotas.

Your results may vary, but this is the best I can do without crawling theu the
archive room here and looking for the books marked ULTRIX which are probably
under all the boxes marked OSF/1 V1.2 V1.3 V2.0 V2.1 etc.


As always: Your mileage may vary.

Sho...

Eric Showalter
J.L. French Corp.
Sheboygan, WI

2. Apple Laserwriter IIg

3. Quotas : Format of quota.users & quota.groups ?

4. Removing modules

5. Limited su power for non-su personnel (revisited)

6. Remote control of Terminals

7. Newbie question - Limiting user disk quotas

8. you know what...

9. how to limited disk space in /var/apache/htdocs/www/xyz by using quota

10. quota - disk usage limit on unix

11. Disk Quotas - limiting space

12. quota - disk usage limit

13. quota - disk usage limit on shell acct