Assign crontab for user


 
Thread Tools Search this Thread
Operating Systems Solaris Assign crontab for user
# 1  
Old 12-14-2010
Assign crontab for user

hi,

how can i assign a crontab to my username "user1", here is my current list details;
Code:
$ who
root       console      Nov 15 14:38
user1     pts/1        Dec 14 21:07    (192.168.1.75)

$ pwd
/etc/cron.d

$ ls -alh
total 20
drwxr-xr-x   2 root     sys          512 Nov 15 14:37 .
drwxr-xr-x  84 root     sys         4.5K Dec  7 18:22 ..
-rwxr--r--   1 root     sys           72 Jan 22  2005 .proto
prw-------   1 root     root           0 Dec 14 18:08 FIFO
-rw-r--r--   1 root     sys           40 Jul 14  2007 at.deny
-rw-r--r--   1 root     sys           40 Jul 14  2007 cron.deny
-rw-r--r--   1 root     sys           17 Jan 22  2005 queuedefs

thanks in advance;
fsp

i

Last edited by Scott; 12-14-2010 at 11:31 AM.. Reason: Please use code tags
# 2  
Old 12-14-2010
Are you asking how to enable the use of cron for your account? Be sure that the cron daemon is running.
1) Create /etc/cron.d/cron.allow file with your user ID in it
2) crontab -e
3) add your entries
# 3  
Old 12-14-2010
Quote:
Originally Posted by garskoci
Are you asking how to enable the use of cron for your account? Be sure that the cron daemon is running.
1) Create /etc/cron.d/cron.allow file with your user ID in it
2) crontab -e
3) add your entries

hi, yes i want to enable cron on my account, the deamon was running under root.

when i command user "user1"
Code:
$ EDITOR=vi
$ export EDITOR
$ crontab -e

i can assigned the crontab, but when i logout it was disappeared.

Last edited by Scott; 12-14-2010 at 11:32 AM..
# 4  
Old 12-21-2010
When you do the :wq! to write and quick your vi session, are there any messages displayed? If you executed a "crontab -e" afterwords, the file is empty?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Bad user root in crontab

Hi everyone, I got error which is "!bad user (root)" in crontab... I tried changing password, I checked etc/cron/cron.allow and cron.deny, And also I checked the permissions of my files, its(my crontab script) still not working.... Please help... (12 Replies)
Discussion started by: ijustneeda
12 Replies

2. Shell Programming and Scripting

Assign user input to already declared array

What I am doing is creating a top menu, which a user will select a choice with a number entry. That number corresponds to a string in an array. I then want to assign that response to another array I've already declared. For example: #!/bin/bash colors=(red blue yellow) red=(cherry fire)... (2 Replies)
Discussion started by: Akilleez
2 Replies

3. Solaris

Assign Superuser rights to normal user

Hi, It's actually strange, but Is there any way through which I can assign super user rights to normal user. Actually su/sudo/rbac does solve these but switching id is the problem for an application. For eg: $dladm show-dev insufficient priviliges. Is there any way to get it done ? ... (8 Replies)
Discussion started by: tuxian
8 Replies

4. Shell Programming and Scripting

Cronjob not working from user's crontab

Hi All, I am trying to execute a python script from a user's crontab. /home/user1/UDE/scripts/UdeManager.py I am at /home/user1. If I run the command "/home/user1UDE/scripts/UdeManager.py" from the users home directory its working fine. But when I try to run from user's cron tab its... (3 Replies)
Discussion started by: Tuxidow
3 Replies

5. Debian

Assign administrative rigth to user for CUPS service

I'm using Debian squeeze (Linux ComputerName 2.6.32-5-openvz-686 #1 SMP Sat Sep 18 04:06:15 UTC 2010 i686 GNU/Linux) and CUPS service. I wish to assign to a user A some administratives task such as: stop,start or restart printer. How can i do it? Thanks (3 Replies)
Discussion started by: lyapma
3 Replies

6. Solaris

how to assign group policy to user in solaris

hi, how to assign group policy to user in solaris (1 Reply)
Discussion started by: meet2muneer
1 Replies

7. Solaris

what privilege to assign for user to cancel or disable print queue?

OS Version: Sun Solaris version 9 Other than root, we need operation to manage printer queue by using following command: lprm -P cancel enable/disable What privilege should be given? Pls advise. Thank you. (4 Replies)
Discussion started by: KhawHL
4 Replies

8. AIX

Crontab cannot run by non-root user

Good morning everybody. I have just receiedv a complaint from our DBA saying that if he create a scripts to run some Oracle performance scripts using crontab and the scheduling part is ok but the job is failed when I checked on /var/adm/cron/log. I have tried his scripts using Oracle id directly... (4 Replies)
Discussion started by: kwliew999
4 Replies

9. UNIX for Dummies Questions & Answers

new crontab for new user

Hi All, I am user of partcular user of alinux machine. I want have some cronjobs to be done by machine. But i don't have crontab file for me. However i do have crontab installed as /usr/bin/crontab. Could anyone please suggest how to creat a new cron file for a user? Any help will be highly... (3 Replies)
Discussion started by: bisla.yogender
3 Replies

10. UNIX for Dummies Questions & Answers

viewing crontab as different user

hi all, how to view crontab entries of user2 logging as user1 (7 Replies)
Discussion started by: matrixmadhan
7 Replies
Login or Register to Ask a Question