Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-18-2008, 03:38 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 17

Rep: Reputation: 0
crontab cant create user


I have the following script (named /root/ to add new users automatikally. The script is automatically created every minutes

adduser xxx-xxx -s /bin/false

and I have the following enrty at crontab
*/1 * * * * /root/ >/root/newUser.log

even if I am able to create users by above script using command line like:


the users cant be created by crontab.
Old 08-18-2008, 03:40 AM   #2
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
In your script, use the full path to adduser. Cron's PATH is more limited by default than your own shell's PATH.
Old 08-19-2008, 05:06 AM   #3
LQ Newbie
Registered: Dec 2005
Posts: 17

Original Poster
Rep: Reputation: 0
thanks a lot
Old 08-19-2008, 09:31 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Why do you want to add a new user every minute?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crontab does not create log file montblanc Linux - Newbie 4 02-05-2008 08:59 AM
crontab to add a user sizzlingdesi Linux - General 12 11-10-2006 03:07 AM
user crontab bujecas Linux - General 1 09-15-2006 05:49 AM
crontab --u user file binary_0011 Linux - Newbie 2 05-06-2006 05:14 AM
How to type in syntax to create a crontab with RH9 SoNewItHurts Linux - Newbie 5 02-20-2004 12:09 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration