Hi Folks,

> What about /etc/cron.deny /etc/cron.allow?
> Sometimes it's not clear, what is valid right know.
> What, if a user is in both files?

hrmm, here then the user is allowed to do things:


, cat /etc/cron.{deny,allow}
user
user
, exit
, crontab -l
MAILTO=""
*/59 0-23/2  * * * bash -c "/home/user/complain.sh"  
, crontab -e
crontab: installing new crontab

, sudo bash
password:
  
, echo "" > /etc/cron.allow
, cat /etc/cron.{deny,allow}
user

, /etc/init.d/crond restart
Stopping crond:                                            [  OK  ]
Starting crond:                                            [  OK  ]

 , exit
  
, crontab -e
You (user) are not allowed to use this program (crontab)
See crontab(1) for more information

 1



> Depends this on version/ distro of cron?

Fedora

Any volunteers of reading  IEEE Std1003.2-1992 (''POSIX'') ?

 
> Freundliche Grüsse
> 
> Thomas Steudten
> Senior Database Engineer 
> Centralschweizerische Kraftwerke AG
> 
> Postfach
> 
> Telefon +41 41 249 55 64 
> Telefax +41 41 249 52 77
> E-Mail [email protected]
> Internet http://www.ckw.ch 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:[email protected]] Im
> Auftrag von G. Matthew Rice
> Gesendet: Dienstag, 31. März 2009 22:17
> An: This is the lpi-examdev mailing list.
> Betreff: Re: [lpi-examdev] typo in new objective list?!
> 
> "Josie Marcella Cölsch" <[email protected]> writes:
> > in the listing below is this "* /etc/inet.d/*" a typo? I assume it
> should be
> > inetd.d? I tried pretty hard to figure out what inet.d is used for. %-)
> 
> It should be inetd.d.  Thanks.
> 
> Regards,
> --matt
> 
> > 
> > Amy
> > 
> > --- (https://group.lpi.org/publicwiki/bin/view/Examdev/LPIC-10x) 110.2
> Setup
> > host security
> > 
> > Weight 3 Description Candidates should know how to set up a basic level
> of
> > host security.
> > 
> > Key Knowledge Areas
> > 
> >     * Awareness of shadow passwords and how they work.
> >     * Turn off network services not in use.
> >     * Understand the role of TCP wrappers.
> > 
> > The following is a partial list of the used files, terms and utilities:
> > 
> >     * /etc/nologin
> >     * /etc/passwd
> >     * /etc/shadow
> >     * /etc/xinetd.d/*
> >     * /etc/xinetd.conf
> >     * /etc/inet.d/*
> >     * /etc/inetd.conf
> >     * /etc/inittab
> >     * /etc/init.d/*
> >     * /etc/hosts.allow
> >     * /etc/hosts.deny _______________________________________________
> > lpi-examdev mailing list [email protected]
> > http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev
> > 
> 
> -- 
> g. matthew rice <[email protected]>      starnix care, toronto, ontario, ca
> phone: 647.722.5301 x242                                  gpg id: EF9AAD20
> http://www.starnix.com              professional linux services & products
> _______________________________________________
> lpi-examdev mailing list
> [email protected]
> http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev
> _______________________________________________
> lpi-examdev mailing list
> [email protected]
> http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
_______________________________________________
lpi-examdev mailing list
[email protected]
http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev

Reply via email to