Advanced Server Overview and Installation

Configuring Advanced Server for UNIX Restricting the user’s disk space
Product Manual U7613-J-Z815-6-76
© Siemens Nixdorf Informationssysteme AG 1995 Pfad: D:\O7613e6\u7613e.k05
Ê Create a directory for this user:
cd /home
mkdir user1
chown user1 user1
chgrp DOS---- user1
chmod 775 user1
Ê Share the directory:
net share user1=c:/home/user1
Ê Assign rights for the user “user1”:
net perms c:/home/user1 /grant user1:fullcontrol
Ê Now configure “quotas” under UNIX for the /home directory:
Ê In the /home directory, create a blank file called “quotas”:
> quotas
Set the limits for the UNIX user “user1”:
edquota user1
A temporary file with the following contents is opened using the vi editor.
fs /home blocks (soft = 0, hard = 0) inodes (soft = 0, hard = 0)
Enter the limits, for example:
fs /home blocks (soft = 11000, hard = 15000) inodes (soft = 0, hard = 0)
Exit the editor and save the file.
Ê Enable “quotas” support for the directory. In the
/etc/vfstab file, change the line for /home for example:
/dev/ios0/sdisk000s5 /dev/ios0/rsdisk000s5 /home ufs 0 yes rw to:
/dev/ios0/sdisk000s5 /dev/ios0/rsdisk000s5 /home ufs 0 yes rq
Ê Activate the change: quotaon -a
Ê The disk space restriction has now been configured successfully, and can be checked
with the quota -v user1 command. Users can view their own disk space under UNIX
with the quota -v command.