Re: 'at' command and apache user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 17 June 2011 01:40:18 Rick Stevens wrote:
> On 06/16/2011 04:41 PM, Cameron Simpson wrote:
> > On 16Jun2011 18:58, Gary Stainburn <gary.stainburn@xxxxxxxxxxxxxx> wrote:
> > | Hopefully this is a quickie.  I've written a Perl script which
> > |
> > | 1) I call to initialise - this then schedules another run using the
> > | 'at' command
> > |
> > | 2) is run by 'at' at the appropriate time to carry out the required
> > | task
> > |
> > | This works fine under the developer user but when I call it from PHP in
> > | my web server the 2nd part fails and generates the following email.
> > |
> > | Subject: Output from your job       17
> > | From: Apache <apache@xxxxxxxxxxxxxx>
> > |   To: apache@xxxxxxxxxxxxxx
> > |   Date: Today 18:51:00
> > |
> > | This account is currently not available.
> > |
> > | I have tried creating /etc/at.allow and adding apache. /etc/at.deny us
> > | empty
> > |
> > | it still doesn't work. Can anyone suggest what I need to do next
> > | please.
> >
> > Might the account be "locked"? Check out the /etc/shadow file - "!!"
> > instead of "x" in the crypt field. May as well check the account has a
> > shell too: /bin/sh instead of /bin/false.
>
> Indeed, that's it.  The "at" command runs a shell as the user who
> submitted the job.  User "apache" generally is not a valid login user
> (can't run a shell), so the "at" job can't run.
>
> Note that this is also true if you try to do cron jobs for a user that
> hasn't got shell access.

Thanks Gents,

Shadow already had !! but passwd had /sbin/nologin

Changed it to /bin/bash and it works great.

Gary
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux