set up cron permission in Sun


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers set up cron permission in Sun
# 1  
Old 10-28-2003
set up cron permission in Sun

Under this directory:
/var/spool/cron/crontabs/
I have the following users:
adm lp oracle root sys uucp
I believe who are able to start a cron job.

I am trying to create a cronjob under user banjob so that it can delete files older than 30 days.

How can I add user banjob to have the permission to start cronjob?
I didn't find cron.allow anywhere in the OS.
I am running Sun OS 5.9

Thanks in advance.
# 2  
Old 10-28-2003
Look at the man page for crontab -

Users: Access to crontab is denied:

o if /etc/cron.d/cron.allow exists and the user's name
is not in it.

o if /etc/cron.d/cron.allow does not exist and user's
name is in /etc/cron.d/cron.deny.

o if neither file exists, only a user with the
solaris.jobs.user authorization is allowed to submit a
job.

Note that the rules for allow and deny apply to root only if
the allow/deny files exist.

The allow/deny files consist of one user name per line.
# 3  
Old 10-30-2003
I believe I have the permission to cron:

simt >>: crontab -e
0
0 0 * * * cd /export/home/banjob; ksh rm_files_older_30.sh
?
^[:q!
?
crontab: temporary file empty

But I don't understand after I typed in crontab -e
and when I hit "Enter", I got an "0", and then I start type in whatever job I wanted to run, and hit "Enter", and I got a "?", and...

What's going on here?
Thanks in advance.
# 4  
Old 10-30-2003
Before running the crontab -e command, set your environment variables:

Use either
export EDITOR=vi
or
EDITOR=vi ; export EDITOR
or
setenv EDITOR vi

You are going into the default 'ed' editor (echo $EDITOR will either come back empty or with ed set).
# 5  
Old 10-30-2003
Thanks, RTM. It works.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Save cron job get permission denied

After I edit the cron job by using crontab -e and using :wq! to save, i got following error message: "/tmp/crontabxvaarX" 1 line, 60 characters crontab: /tmp/crontabxvaarX: Permission denied Could anyone please help? (1 Reply)
Discussion started by: Alex Li
1 Replies

2. UNIX for Dummies Questions & Answers

Write (save time) Permission set

When am saving a file using my username in Linux environment, the file permission granted is rw-r--r-- I have to manually change the permissions using chmod command. How do i write it to the disk as rw-rw-r while saving my file. (6 Replies)
Discussion started by: Avishek_rc1
6 Replies

3. Shell Programming and Scripting

Help to set permission on password files in script

Hi Techies I am stuck in a problem, I have written a script which is calling a second script which contains some command and password for quering on database. I do not want to disclose this command or specially password file. Please help.. Please have a look on directory structure and... (2 Replies)
Discussion started by: atul9806
2 Replies

4. UNIX for Dummies Questions & Answers

How to set default permission

Hey Guys, First post here. I just started learning UNIX a few weeks ago. My issue: I use FreeNAS which is based off of UNIX in my network environment which hosts files that my team needs to access. Each user has their own login but we are all part of a group called "ITLIC". I have a share... (15 Replies)
Discussion started by: uglycustoomer
15 Replies

5. Shell Programming and Scripting

set only some command & scripts permission to a particular user

hi, i am new in unix.......i am using bash and i want to create a user which has only some command and scripts permission.........is it possible? thanx (1 Reply)
Discussion started by: rakeshtomar82
1 Replies

6. UNIX for Advanced & Expert Users

How to set default file system permission?

Default file system currently is 664. I would like to get it as 774. As other users of the same group was not able execute the file created any any user. chmod cannot be used in my case. (Files are created and executed the programs owned by different vendors) we know that umask is not going... (3 Replies)
Discussion started by: deepakwins
3 Replies

7. Shell Programming and Scripting

set permission on file to 777

Here is the sample code I'm trying to execute. I see that the permission on the file is set to 755 always I want to change it to 777. Please help me with this. code : #!/usr/bin/perl use File::Path qw(make_path remove_tree); my $path = "2010/sam"; make_path($path,{mode=>0777}); ... (1 Reply)
Discussion started by: hansini
1 Replies

8. Shell Programming and Scripting

Is possible to use umask to set file permission as 775?

Hi, all! Is it possible to use umask and to set the file permission level as 775? I know I can add chmod into my scripts but I just want to explore the umask option. Thanks! (1 Reply)
Discussion started by: visio2000
1 Replies

9. UNIX for Dummies Questions & Answers

Change permission for a set of files

Hi there, I want to change from this permission -r-xr-xr-x to -r-xr-xr-- for a set of files under unix. Can someone help me to go-about doing this in one shot. Cheers, RN (2 Replies)
Discussion started by: karthickrn
2 Replies

10. AIX

set permission to files in /tmp

Trying to setup user to have the ability to delete any files (regardless of owner) in /tmp. I've tried almost everything... the permission on the folder is drwxrwxrwt 10 bin bin, and at one point I give all the possible permission (short of root) I can give to the user, and he still can't delete... (2 Replies)
Discussion started by: cchiang12
2 Replies
Login or Register to Ask a Question