Operating System - HP-UX
1834285 Members
2171 Online
110066 Solutions
New Discussion

need to provide access to users for crontab, mailx

 
SOLVED
Go to solution
bunty.....
Frequent Advisor

need to provide access to users for crontab, mailx

Hi friends,
I have admin access to manage the crontab & mailx,
some of users need to use the application of crontab & mailx.
how i will give permission to them to use the crontab/mailx application.

please suggest
bunty
9 REPLIES 9
Ivan Ferreira
Honored Contributor

Re: need to provide access to users for crontab, mailx

The /etc/cron.allow file allows the use of crontab. If the user is listed in /etc/cron.allow, then the user is allowed to use crontab.

For mailx, I don't know of any restrictions to use.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
bunty.....
Frequent Advisor

Re: need to provide access to users for crontab, mailx

#pwd
/etc
#ll cro*
lr-xr-xr-t 1 root sys 14 Apr 21 2005 cron -> /usr/sbin/cron


no cron.allow file there
Lolupee
Regular Advisor

Re: need to provide access to users for crontab, mailx

it should be /var/adm/cron/cron.allow

all users should be able to send mailx
bunty.....
Frequent Advisor

Re: need to provide access to users for crontab, mailx

i think, this file is some other directory i.e. /var/adm/cron/cron.allow
Deoncia Grayson_1
Honored Contributor

Re: need to provide access to users for crontab, mailx

You can give users access to cron in:

/var/adm/cron/cron.allow

just add the user login name.

Anyone with a user id on the server can use mailx as long as it belongs their user id.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
OldSchool
Honored Contributor

Re: need to provide access to users for crontab, mailx

From "man crontab" on HP-UX 11.0:

You can execute crontab if your name appears in the file
/usr/lib/cron/cron.allow.

If that file does not exist, you can use crontab if your name does not appear in the file /usr/lib/cron/cron.deny.

If only cron.deny exists and is empty, all users can use crontab.

If neither file exists, only the root user can use crontab. The allow/deny files consist of one user name per line.
Geoff Wild
Honored Contributor
Solution

Re: need to provide access to users for crontab, mailx

Yes - it is /var/adm/cron/cron.allow

man crontab
will give you some nice info.

mailx is in /usr/bin - so all users have access.

Just add the users to /var/adm/cron/cron.allow

# cat /var/adm/cron/cron.allow
root
adm
uucp
user1
user2

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ivan Ferreira
Honored Contributor

Re: need to provide access to users for crontab, mailx

Sorry, another file location confusion. Linux/Tru have /etc/cron.*, HP-UX uses /var/adm/cron.*
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Arturo Galbiati
Esteemed Contributor

Re: need to provide access to users for crontab, mailx

Hi,
no restriction to use mailx but take care that the user type elm once in own fome directory.
To allow the sue of crontab add the user in teh file /var/adm/cron/cron.allow.

From man crontab:

FILES
/var/adm/cron Main cron directory
/var/adm/cron/cron.allow List of allowed users
/var/adm/cron/cron.deny List of denied users
/var/adm/cron/log Accounting information
/var/spool/cron/crontabs Directory containing the crontab files

HTH,
Art