1834089 Members
2273 Online
110063 Solutions
New Discussion

Disk Quota,email aliases

 
Jayesh shah
Frequent Advisor

Disk Quota,email aliases

Hi,

How do you setup disk quotas for users? Does anytool have this functionality on HP-UX?

How do you setup email aliases for users?
I want to do this when I am creating a user account.

Any information on this is appreciated.

Regards,
Jayesh
3 REPLIES 3
PIYUSH D. PATEL
Honored Contributor

Re: Disk Quota,email aliases

Hi,

eg. For vxfs fs on /test

# touch /test/quotas

# vi /etc/fstab # add quota in the filesystem options
/dev/vg00/lvol2 /test vxfs rw,suid,nolargefiles,quota 0 2

# quotaon /test # if you want the quotas to take effect now instead of reboot or you can umount and mount the file system

# man 1 quota
# man 5 quota

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&con=/hpux/onlinedocs/B2355-90742/00/00/49-con.html&toc=/hpux/onlinedocs/B2355-90742/00/00/49-toc.html&searchterms=quota&queryid=20020627-090520


Piyush
Shahul
Esteemed Contributor

Re: Disk Quota,email aliases

Hi

I will give U the procedure for setting up the Disk quota. Make a note of this and proceed. Here I am giving example to impliment quota in /home filesystem.

#cpset /dev/null /home/quotas 600 root bin

Here /dev/null is for making size to zero
/home is the root of the file system where U are implimenting quota.
600 is the mode and root:bin is the owner and group. Then

#edquota

Now U will get an editor. Here enter the limits in blocks, and number of inodes, then save and come out. For more information see man edquota

Now there are three ways to enable the quota.

1. Turn on quota while booting. Modify the fstab like this

/dev/vg00/lvol4 /home hfs rw,suid,quota 0 2

2. Turn on disk quota by mounting FS

umount /home
mount -o quota /dev/vg00/lvol4 /home

3. Turn on by command

#quotaon -v /home


I hope now U are clear.

Email alias U don't need to configure while creating users. See the documents for sendmail configuration.

Best of luck
Shahul
Best of luck
Shahul
Nick Wickens
Respected Contributor

Re: Disk Quota,email aliases

Disk quotas is fairly easy to setup - Check the documentation in the HP Manual "System Admin Tasks" or here

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90672/B2355-90672_top.html&con=/hpux/onlinedocs/B2355-90672/00/00/52-con.html&toc=/hpux/onlinedocs/B2355-90672/00/00/52-toc.html&searchterms=quotas&queryid=20020703-090044

Aliases can be setup in the /etc/mail/aliases file eg

nick : nxw
nxw : nick.wickens@twefs.co.uk

This sets an alias of Nick to connect to the mail address for user nxw.

You can also setup distribution lists such as

dba : nxw,frd,aqt
Hats ? We don't need no stinkin' hats !!