[lxc-users] Crontab in fedora containers.

Michael H. Warfield mhw at WittsEnd.com
Thu Oct 23 12:57:10 UTC 2014


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!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 465 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141023/4a3699f4/attachment.sig>


More information about the lxc-users mailing list