[lxc-users] Crontab in fedora containers.

István Király LaKing at D250.hu
Thu Oct 23 15:17:47 UTC 2014


Hello Mike.

Host is Fedora 20 with kernel 3.16.4-200.fc20.x86_64

LXC: 1.0.6 compiled from latest release

Host is fedora with SELinux disabled.

Container was created with the fedora template but in an earlier version of
LXC.

I'm not sure what you mean by container version. Containers are also Fedora
20.

Logged in with ssh. LXC is running on the background.

I just created a new test-container, added my user and it behaves exactly
the same.

Without /etc/cron.allow
You (user) are not allowed to access to (crontab) because of pam
configuration.

With ALL (then newline) in /etc/cron.allow

[user at crontest ~]$ crontab -e
You (user) are not allowed to use this program (crontab)
See crontab(1) for more information

Thank you very much.

Greetings, ...

On Thu, Oct 23, 2014 at 2:57 PM, Michael H. Warfield <mhw at wittsend.com>
wrote:

> On Thu, 2014-10-23 at 06:18 +0200, István Király wrote:
> > Hello list, ..
> >
> >
> > I noticed some strange behavior, that I could not resolve so far,
> > regarding cron and crontab.
> >
> >
> > [user at container]$ crontab -e
> > You (user) are not allowed to access to (crontab) because of pam
> > configuration.
> >
> >
> > While digging in, I created /etc/cron.allow  and added ALL. The
> > message changed to:
> >
> >
> > You (user) are not allowed to use this program (crontab)
> > See crontab(1) for more information
> >
> >
> > Google search didn't bring me closer to a solution.
> >
> >
> > On a native fedora, crontab works out of the box, even without a
> > cron.allow file.
> >
> >
> > If someone has ideas / suggestions, I would look at them.
>
> It's working fine here with all my Fedora containers of various vintage
> (all Fedora hosts).
>
> 1) What is the host distro and version?
>
> 2) What is the container version?
>
> 3) If the host is Ubuntu or Debian, are you running with apparmor
> enabled and have you set lxc.aa_profile = unconfined in the container
> config?
>
> 4) How did you create the container (lxc-create, hand rolled, fedora
> template, download template)?
>
> 5) Version of LXC in the host?
>
> 6) How are you logged in?  From lxc-start in forground?  From
> lxc-console?  From ssh connection?
>
> > Greetings, ...
> >
> >
> > --
> > Király István
> > +36 209 753 758
> > LaKing at D250.hu
>
> Regards,
> Mike
> --
> Michael H. Warfield (AI4NB) | (770) 978-7061 |  mhw at WittsEnd.com
>    /\/\|=mhw=|\/\/          | (678) 463-0932 |
> http://www.wittsend.com/mhw/
>    NIC whois: MHW9          | An optimist believes we live in the best of
> all
>  PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>



-- 
Király István
+36 209 753 758
LaKing at D250.hu
<http://d250.hu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141023/2b4a03a1/attachment.html>


More information about the lxc-users mailing list