User cron jobs won't run without home directory

I have a situation where the users are defined through ldap without home directories, but our application creates cron jobs for these users. If a home directory is defined, the cron jobs run. If no home directory is defined, the cron jobs will not run. Is there a way to configure cron to use a global home directory, instead of the user's home directory?
Kevin

The crontab man page says that cron changes to the users home
directory and then sets up some simple environment and run sh.
it also talks about /etc/cron.d/cron.allow
So it looks like those users need to be given a home directory
like /tmp , but you need to think about the implication, are the accounts locked to stop logins
truss -fpl $(pgrep cron)
might show you what it is doing.
it also talks about /etc/cron.d/cron.allow do you have such a file?
tim

Similar Messages

  • My accounts program won't run without legacy Java SE6 runtime since I upgraded to OS x Yosemite but I can't download it

    My "Solar" accounts program won't run without "legacy Java SE6 runtime" since I upgraded my iMac desktop to OS x Yosemite but I can't download it, nothing happens when you click on the link to apple support

    Okay, I'm not a Genius, but, I'm smarter than the one I spoke to at the Apple Store.They told me that they couldn't help me with Legacy Java SE6 Runtime. Adobe has the worst support in the industry so don't call them.
    If you have a Time Machine backup, go to one that pre dates your install of Yosemite. Go to the System/Library/Java and drag copy the folder to your internal hard disk. Now you will need the Administrator password. Once copied, drag the old Java folder into your System/Library folder and when asked to replace, click OK. Restart your Mac and you will have use of your software that requires Legacy Java SE6 Runtime.
    I'm totally done with Apple since they are trying to box me into a corner. Have fun kids.

  • Cron jobs not always run

    I have cron jobs which do not always run. Has anyone had this problem. These are simple executables which may run one day, but not the next. Very puzzling.

    415/2861
    Here's in detail how/why it works this way
    (and so far still the same in 10.4.4 I think):
    A simple example:
    http://discussions.apple.com/message.jspa?messageID=1320152#1320152
    Peter Sealy:
    http://discussions.apple.com/message.jspa?messageID=1384836#1384836
    Dr. Smoke:
    http://discussions.apple.com/message.jspa?messageID=1362594#1362594
    The problem is that they are delayed by sleeps.

  • Cron job : how to run scripts as cron job

    Hi friend,
    Sorry one very small question ..
    Can someone tell me how can i run scripts as cron job .. on HP UX.
    thanks
    ashish

    Hi Ashish,
    open one telnet session.
    crontab -e
    then give the periodicity day and time
    like below
    05 00 * * 1-6  /usr/local/bin/database_backup.sh
    and now create the script file with the command or script to execute.
    Regards
    Ashok Dalai

  • 10.5 clients won't login/mount home directory

    Hello all,
    I am having some issues with 10.5.8 clients logging in network users.  At our school, we have a "magic triangle" setup -- Mac and PC clients, an Active Directory for user authentication (a Win 2k3 server DC I believe), and an Open Directory server (running 10.7.5 OS X Server) for Workgroup Managment and software updates.  Along with this, there is a Linux NAS box that acts as the file server hosting the user's home directories.
    I have a few test student accounts that I have set up exactly the same way that normal student accounts are added to AD.  Users have complained that these 10.5.8 clients will not let any students log on, as I have verified with my test student accounts.  When logging in, an error comes up that says "Logging into the account failed because an error occurred".  In secure.log I get a "smb_mount: syserror = Broken pipe" line along with
    ERROR | -[HomeDirMounter mountNetworkHomeWithURL:attributes:dirPath:username:] | PremountHomeDirectoryWithAuthentication( url=smb://fileserver.domain.org/username, homedir=/Network/Servers/fileserver.domain.org/username, name=username ) returned 32
    When I turn off "Create Mobile Account at Login", the user can log in just fine, which obviously leads me to believe that there is an issue with mounting the samba share for the user's home directory during the HomeSync.
    I know the client can resolve the file server's hostname by nslookup, so I don't think DNS is the issue.  But I'm all out of ideas after looking everywhere online, and am hoping someone can assist me with this.  I'm just a computer technician and not a network sys admin by any means, but I know a good enough amount to try to troubleshoot this.  Even my network manager is stumped, and his answer is to upgrade the client to 10.6, resolving that the issue is with 10.5. I want to try to solve this issue rather than having to re-image all the 10.5 machines.
    Obviously school is out for the weekend, so I won't be back for a couple days to work on the issue if anyone does respond in the next couple days.
    Thanks in advance!
    -Brandon

    Hi Brandon, certainly no expert at this, but let me trow this out at you...
    Found a work-around. This command adds a delay, in this case 45 seconds, before displaying the Login Window.
    defaults write /Library/Preferences/com.apple.loginwindow StartupDelay -int 45
    If the Login Window UI detects that the network servers are available when it starts, it will skip the delay, also if network servers become available before the delay expires, the Login Window UI cancels the delay and displays.
    Kent

  • Illustrator CS6 won't run without Java SE 6 runtime?

    I've seen a few threads relating to this but none seem to solve the issue for me. Having updated my iMac and running Yosemite all my CS6 apps run fine apart from Illustrator, where I'm getting the dreaded install legacy Java SE 6 message. I know I can install Java but I REALLY would rather not install such an outdated piece of software that I don't need and that has more than a few security issues if there is any alternative. I tried removing some files from the file formats folder within plugins which some have suggested gets around the Java requirement but without success. Any help would be much appreciated.

    This is not a Yosemite issue at all.... its merely a Illustrator requiring Java to run issue.... that's the case regardless of the version of OS. I would just be interested to know if CC illustrator relies on Java to run as well? The gentle nudge comment refers to the fact that Adobe still sell CS6 as the "owned" software option and as such its still current if you wish to choose that route.... If its possible I would have thought it would be helpful to update illustrator so that it is no longer reliant on such an outdated 3-party bit of software to run? But maybe its not a simple fix or Adobe aren't particularly interested in updating it.

  • AC adapter bad? Powerbook won't run without battery

    I think my powerbook (G4 aluminum, purchased Dec 2005) AC adapter is bad--the powerbook won't boot up without the battery (which, thankfully has not been recalled!).
    I did check the AC issues listed in this Apple doc:
    http://docs.info.apple.com/article.html?artnum=302461
    The light on the adapter is green, the battery charge indicator menu states "Charged." However, none of the 5 lights on the battery are lit when the AC adapter is plugged into the computer and an outlet.
    I have both AppleCare and ProCare--would a replacement AC adapter be covered under either plan?
    P.S. the logic board was replaced in this powerbook last week by Apple because the computer would not boot up, there was a loud "fan" sound and one beep every 3 seconds.
    Anyway, help!
    powerbook G4 ( Dec 2005) - ARRRGHH!   Mac OS X (10.4.7)   and ibook G3 (10.3.9) -- never any problems!

    I appreciate your advice! I agree that I should take in the powerbook for another round of repairs. However, I want to get some idea of the possible causes of this problem before returning it. Here's why:
    [warning: venting ahead]
    I am not taking it back to the nearest Genius Bar because of the poor, indifferent service there. Specifically: first guy guesses that the logic board needs replacement, and says the contents of my hard drive are not "protected," then tries to sell me ProCare, which has some kind of hard drive back up deal included. Since I hadn't backed up in months, I bought the Procare contract.
    The next day, a different local Genius tells me that the hard drive could not be recovered, it was the cause of the computer crash, and just the hard drive will be replaced at the factory, and it will take 2 weeks.
    Two days later, another Genius calls to say my computer's ready for pick up. They replaced the logic board, and the hard drive is fine--untouched. Hurrah.
    I used my Procare status to get a Genius appointment to pick up the computer. Yet another Genius doesn't want to listen to my complaints about the "hard drive disaster Genius." I make him turn on the computer [battery power] to make sure the hard drive is OK (yes). I am then shooed out the door.
    This is why I don't trust the local Geniuses to examine my computer again. The second nearest Apple store is 25 miles away, so I guess I'll go there for future repairs.

  • New HD won't run without old one...

    hello.
    After lots of help from my educated peers on this discussion site, i installed a 2nd hard drive into my G5 quad power pc.
    I then used carbon copy cloner to clone the old drive onto the new one(because i recently moved and forgot my install disk on the west coast), and when i re-booted, i was able to boot from the old HD (which still barely works), and then i was able to select the new HD in system prefs - startup disk, and then re-booted agian, and it would boot up on the new HD, and work great.
    And every time after that, it would always boot from the new HD, and work fine.
    Except that the old HD is still in the other bay, apparently working in conjunction with the new one.
    I know this because I cannot get the new HD to boot if it's the only HD in the machine. I tried both HD bays.
    I even tried to boot up while holding down the Option key, but the HD won't show up at all. Tried both HD bays.
    Any thoughts?
    I'm having my friend ship my my install disk, but if carbon copy cloner is as good as it says, i shouldn't have to do a clean install and have to go through the hassle of doing a full backup, and restoring....etc..etc..etc.
    Any thoughts?
    i tried every combination of HD bays with both HDs.
    The new one just won't work by itself.
    And, the old HD needs to be in the top(primary bay), or else nothing works.
    thanks!

    Ya know, today, my Mail program is acting very funky.
    I launch it, and I get the spinning color wheel immediately, and then it quits itself.
    Also, when I reboot, i see a quick flash of weird graphics on the monitor for a split second.
    Doesn't look right.
    Oh, and now, I'm finding out that the machine randomly reboots from either HD.
    I just tried to reboot, and it tried to boot from the old HD in the other bay. ( i know this because the old HD takes 5 minutes to boot, and the internal fans run at full speed during the whole boot up process ).
    Now, i tried to reboot again, and it booted fine from the new HD>
    Weird.
    maybe i'll try super duper.
    Problem is that the old drive took 2 full days to clone when i used CCC.
    The old HD is so sluggish that it is barely usable.
    Hopefully i can get a full clone out of it.
    Regardless, i'm just going to have to do a clean install to feel comfortable about this machine at this point.

  • OS X Program Won't Run Without Java 6

    Have a completely fine install of Java 8 (tested and whatnot) however I have a Mac OS program that requires Java. (1.1 or later) Of course, I should have realized that Apple would not let it go easily (ha ha) and is giving me the error message "To open "Program" you need to install the Legacy Java SE 6 runtime". I refuse to downgrade to an older, painful (and not completely working) version of Java just because it won't recognize I have Java 8. This program is compatible with Java 8, by the way. Is there a way to force the program to run on Java 8? This error message isn't the program's, it's an OS X one, which makes me think I just need to bypass it to get the program running. Thanks.

    Okay, I'm not a Genius, but, I'm smarter than the one I spoke to at the Apple Store.They told me that they couldn't help me with Legacy Java SE6 Runtime. Adobe has the worst support in the industry so don't call them.
    If you have a Time Machine backup, go to one that pre dates your install of Yosemite. Go to the System/Library/Java and drag copy the folder to your internal hard disk. Now you will need the Administrator password. Once copied, drag the old Java folder into your System/Library folder and when asked to replace, click OK. Restart your Mac and you will have use of your software that requires Legacy Java SE6 Runtime.
    I'm totally done with Apple since they are trying to box me into a corner. Have fun kids.

  • Yoga 11S Won't Run Without Plugged into Charger

    My webcam stopped working, so I opened up the laptop to check the connections. (I did this after making sure all the drivers were updated). At first, I checked the connection at the camera, above the screen. I made sure the cable was connected and then put the laptop back together, turned it on, and tested the webcam. Didn't work.
    Next, I opened up the bottom part of the laptop. The camera connection was loose, so I fixed it. I then connected everything back together. At first, the laptop didn't turn on. Next, I tried the suggestion to remove the battery, hold the power button down for a minute, then connect the AC adaptor, and then the battery. Since the battery is not a "removeable battery," I did this by disconnecting all the cables coming from the battery. I was then able to turn on the laptop.
    Now, the laptop will only stay on when plugged into the charger. It also seems that the battery isn't charging, even though it says "charging" when you click on the battery icon. I've quadruple checked that every wire was reconnected.
    Any suggestions?? Please help!

    Dear Bobsmith
    Welcome in lenovo community
    There is an application says Lenovo energy management . you will need to check if you have this application installed and if not installed please use the below link to download the application 
    Link : http://support.lenovo.com/us/en/products/laptops-and-netbooks/yoga-series/yoga-11s-notebook-ideapad/...
    Let us know
    Thanks
    Alaa
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • User crontab entries don't run after reboot until crontab is edited

    I'm running 10.3.9 so I can't use launchctl for this.
    I have a user on my system called backup. backup's only purpose is to take and store backups of some critical data on other local systems. I've written scripts that run from cron to take care of this, except it doesn't work after a reboot.
    I've been careful with paths and all that but I'll include my crontab:
    43 18 * * * ${HOME}/bin/backup-mysql
    02 * * * * /usr/bin/printenv > /tmp/cronPrintenv.txt
    When I boot my xserve, neither the printenv nor the backup-mysql command run at their scheduled times. The only cron-related activity in /var/log/system.log are root's jobs periodic daily, weekly and monthly.
    After I notice the problem and edit and save the crontab by su'ing to the backup user and entering "crontab -e" and saving, even though I've made no changes, the backup user's cron jobs start up again, I can find the ouput from the printenv in tmp where I'd expect it, and my backup script runs fine.
    Why don't these user cron jobs run after a reboot?
    Thanks!
    Frank
    XServe dual G5   Mac OS X (10.3.9)  

    Has anyone discovered the answer to this? I'm dealing with a very similar issue here, getting a cron job to execute. In my case, it's actually a @reboot process, so it's fairly important to have it work when the machine restarts.
    Any help would be appreciated.
    Thanks!

  • Cron jobs on Sun Solaris 5.10

    Hi,
    Following are the details of my Sun box:
    SunOS ocmdf2 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V490
    I am trying to set up cron job entries using the crontab file. I have copied over my crontab file from the HP-UX machine over to this Sun machine.
    I have registered the file with the cron system by running the "crontab crontab.txt" command where contab.txt contains all my cron job entries. After doing so, I noticed that non of the cron jobs are getting executed. One of the cron job is given below for reference:
    0 6 * * 2,3,4,5,6 . /usr/local/bin/all_roots > /dev/null 2>&1 ; ksh $TF_FEED_SRC/generate_feed_contents.com standard_feed > $TF_FEED_LOG/standard_feed.cron.log 2>&1
    The above cron job entry runs fine on the HP-UX machine, but not on the Sun machine.
    Following is the modified version of the above job for the Sun machine.
    0 6 * * 2,3,4,5,6 (/usr/bin/ksh ". .profile ; cd /tapes/gen_scripts ; generate_feed_contents.com standard_feed > /tapes/logs/standard_feed.cron.log 2>&1")
    Note that in the above modified job, the env variables like TF_FEED_SRC and TF_FEED_LOG are replaced with the actual paths and quotes and parenthesis are used.
    Can somebody please advise on:
    1) Why the original cron job does not run?
    2) What should I do to make the original cron job run?
    3) What makes the modified cron job runs?
    Thanks in advance for your help.
    Regards,
    Shiv

    ShivkumarSoni wrote:
    From the above shown email, it is clear that the shell used by cron is sh and not ksh. May be this is the reason why the /usr/local/bin/all_roots script is not able to run properly and due to this the
    environment variables are not getting set.That's exactly correct. From the crontab man page:
         The shell is invoked from your $HOME directory with an  arg0
         of sh. Users who desire to have their .profile executed must
         explicitly do so  in  the  crontab  file.  cron  supplies  a
         default environment for every shell, defining HOME, LOGNAME,
         SHELL(=/bin/sh), TZ, and PATH. The  default  PATH  for  user
         cron  jobs  is  /usr/bin;  while  root  cron jobs default to
         /usr/sbin:/usr/bin.  The  default  PATH  can   be   set   in
         /etc/default/cron; see cron(1M).
    Can anyone help to understand what is going on here and how to fix it?Set the variables before running the program
    Method 1) set in the crontab
    * * * * * VAR=value /path/to/script --option=$VAR
    Method 2) use a wrapper script
    * * * * * /path/to/wrapper
    While cron will use /bin/sh to run the line, there's nothing that keeps the wrapper script from being anything in particular (such as a ksh script).
    Darren

  • Jobs Keep on Running thorough Ibots

    Hi,
    I have recently configured Scheduler and was facing some issue initially for Socket Communication Error which got solved after enabling the ports in firewall in Network. Now when I am calling a report through Ibots, it starts successfully, but I am not able to see any Active Ibots session in Answers Administration. Moreover when I watch the job through Job Manager, the status is running where as the job is supposed to completed in few seconds. Bellow is the Ibot log...Any help from anyone is really commendable
    +++ ThreadID: 1200 : 2010-04-27 18:34:14.168
    iBot Chain Started.
    Scheduler iBot Version: 201
    Job ID: 3
    Instance ID: 3.000000
    User ID: Administrator
    Parameters:
    Job Version: 2
    Root iBot ID: /users/administrator/_ibots/plaban
    Oracle BI Presentation Server: eljdosdocrm04:9704
    Debug: True
    iBot Load Balancing Enabled.
    The JOB is still running without fail..But not getting complete..Please help me..

    Can you find OS process....
    After that kill that process....
    $ ps -aef | grep 4592
    oracle 4592 1 0 14:47 ? 00:00:00 ora_j000_oradb1
    $ kill -9 4592
    Oracle'll recover that process and create new backgroup process
    Anyway You can refresh ....
    select what, job from user_jobs;
    WHAT JOB
    dbms_refresh.refresh('"USER"."GROUP1"'); 424
    So,run that script to refresh....
    exec dbms_refresh.refresh('"USER"."GROUP1"');
    Edited by: HunterX (Surachart Opun) on Jan 19, 2009 2:44 PM

  • MRP run without one storage location

    Dear All,
    My client's requirement is they need to run MRP on plant level without considering one storage location stock
    e.g if a material is having stock of 10 in unrestricted with storage location 1104. Now when mrp is run for 100 quantity planned order is created for 90 only planning strategy is 40....they want the MRP should not consider the stock in storage location 1104.....how this can be made possibe?
    Please Suggest...
    Regards,
    Pawan Shetty

    Dear all,
    Pl. help me which user exit implemented  for MRP RUN without Storage location ,b'coz. from slandered setting we are not able to  do the same
    Regards
    Sandeep

  • Cron Job in Root Directory

    I am running OS 10.4.6 on a Mac G4 450MHz machine. Recently when I opened Activity Monitor I noticed a cron job showed up in the root directory that hadn't been there before. I know I can select the cron job and then click on the Inspect icon but the dialogue boxes that show up do not tell me anything about the cron job except statistics having to do with CPU or memory usage. How do I find out what the cron job is and what it does? Is having a cron job in the root directory normal for 10.4.6? If it's not supposed to be there, how do I get rid of it?
    Thanks for your help.
    G4   Mac OS X (10.4.6)   450MHz with 768MB of RAM

    David,
    I think you are seeing the cron daemon. Not a "cron job". The cron daemon is started during the boot process. Cron then reads /etc/crontab. Crontab list "jobs" to be run and at what time. As of Tiger cron has been demoted and launchd handles running "jobs". Cron is still started at boot time but does nothing. It runs for backwards compatibility. There's nothing to get rid of- just leave it alone.

Maybe you are looking for