LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-13-2007, 07:34 AM   #1
tristaoh
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
Question wwwrun user cronjobs don't run


Hi...
Hoping for some tips and tricks...

I want to run a script under the wwwrun user, but this seems impossible.
I'm succeeding in installing the crontab for wwwrun, but then the script scheduled doesn't seem to run.

Another problem is, that I cannot use su nor sudo to become the wwwrun user. No error message what so-ever after I try the command (as root) "su wwwrun", but after entering the "whoami" command I'm still root.

I believe these problems are related, and are quite possibly features by design and to do with system user type accounts, but (after hours of googling on the subject) I haven't found a clue how to re-configure the system to fit my purpose.

I'm experiencing this problem with OpenSuse 10.2 and SLES 9 (haven't tried other SuSE versions).
These problems don't occur when I try these similar actions under Slackware (11.0) albeit not with the same user or UID (slackware uses nobody as the user to run Apache)
 
Old 06-15-2007, 05:13 PM   #2
tristaoh
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Lightbulb found work-around

After another evening trying to solve the challenge, I found a workable solution.
Just added the next line to /etc/crontab
xx yy * * * wwwrun /path/to/testscript

Specifying the user (wwwrun) to run the script at this location works
as opposed to of having a dedicated crontab for that (system)user.

I guess RTFM is still of value afterall, since it was more or less just there in the Suse system documentation @ good old support.novell.com

Still, I keep finding it strange that it cannot be done with a dedicated crontab.
I came to believe it has something to do with PAM, something as in:
if uid < 100 then disable commands from respective crontab.
if user shell=/bin/false then prevent su to this user.

Don't have enough knowledge of PAM (nor the patience to learn PAM down to this level) though.
Any comments?

Last edited by tristaoh; 06-15-2007 at 05:23 PM.
 
  


Reply

Tags
cron, su, sudo


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I need wwwrun? xpucto Linux - Newbie 3 07-26-2006 09:43 AM
apache wwwrun php and ftp jf.vdbosch Suse/Novell 1 04-13-2006 02:54 AM
Problem with cronjobs..... freakin'me Linux - General 7 02-11-2006 03:08 PM
outdated cronjobs bujecas Linux - Software 6 08-04-2005 10:24 AM
wwwrun user rights issue tantric Linux - Software 0 03-25-2004 09:48 AM


All times are GMT -5. The time now is 03:58 AM.

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