ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm]  crontab - неверные действия или странности?
@ 2008-12-26 23:25 Speccyfighter
  2008-12-27  0:21 ` Alexey I. Froloff
  0 siblings, 1 reply; 5+ messages in thread
From: Speccyfighter @ 2008-12-26 23:25 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Система ALD4.0 с накатаным branch.
Долго рассказывать что делал, но в финале так:

Убрал в /opt для бэкапа файлы
/var/cron/cron.allow
/var/cron/cron.deny

В cron.allow:
root
mylogin

В cron.deny:
nina

Согласно man'у если файл cron.allow не создан и юзер в нем не
указан, то только администратору разрешено использовать crontab

Между тем даже если cron.allow и cron.deny не созданы, по
crontab -e
могу создать, как пользователь, файл и редактировать его.
Можно также подать из консоли
su - nina
и от пользователя nina создать и редактировать ее crontab файл.

Соответственно вопрос:
- это багофича или безнадежно неверно делаю что-то?
- если неверно, то что?
- как все-таки разрешить использовать crontab только определенным
пользователям?

Также отправлял в /var/cron/ файлы (uid:root gid:crontab) с пользователями
/var/cron/cron.allow
/var/cron/cron.deny
но ситуация совершенно аналогична, вне зависимости кто куда занесен.

Посоветуйте, как разрулить права использования crontab.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Comm] crontab - неверные действия или странности?
  2008-12-26 23:25 [Comm] crontab - неверные действия или странности? Speccyfighter
@ 2008-12-27  0:21 ` Alexey I. Froloff
  2008-12-27  0:39   ` Speccyfighter
  0 siblings, 1 reply; 5+ messages in thread
From: Alexey I. Froloff @ 2008-12-27  0:21 UTC (permalink / raw)
  To: Mailing list for ALT Linux users

[-- Attachment #1: Type: text/plain, Size: 619 bytes --]

* Speccyfighter <zxwarior@> [081227 02:37]:
> Согласно man'у если файл cron.allow не создан и юзер в нем не
> указан, то только администратору разрешено использовать crontab
Это наверно был неправильный man.  Вот цитата из правильного:

"""
If the /etc/cron.allow file exists, then you must be listed
therein in order to use crontab.  If the /etc/cron.allow file
does not exist but the /etc/cron.deny file does exist, then you
must not be listed in the /etc/cron.deny file in order to use
crontab.
"""

Есть пустой файл /etc/cron.deny, который принадлежит пакету
vixie-cron.

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Comm] crontab - неверные действия или странности?
  2008-12-27  0:21 ` Alexey I. Froloff
@ 2008-12-27  0:39   ` Speccyfighter
  2008-12-27  7:47     ` Andrey Rahmatullin
  2008-12-27 13:36     ` Alexey I. Froloff
  0 siblings, 2 replies; 5+ messages in thread
From: Speccyfighter @ 2008-12-27  0:39 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Alexey I. Froloff пишет:
> * Speccyfighter <zxwarior@> [081227 02:37]:
>> Согласно man'у если файл cron.allow не создан и юзер в нем не
>> указан, то только администратору разрешено использовать crontab
> Это наверно был неправильный man.  Вот цитата из правильного:
> 
> """
> If the /etc/cron.allow file exists, then you must be listed
> therein in order to use crontab.  If the /etc/cron.allow file
> does not exist but the /etc/cron.deny file does exist, then you
> must not be listed in the /etc/cron.deny file in order to use
> crontab.
> """
> 
> Есть пустой файл /etc/cron.deny, который принадлежит пакету
> vixie-cron.
> 
Спасибо за помощь! :)
Алексей, приведите пожалуйста источник цитаты, чтобы
поподробнее почитать для использования на будущее.
Если нетрудно конечно.

Все в пакете vixie-cron?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Comm] crontab - неверные действия или странности?
  2008-12-27  0:39   ` Speccyfighter
@ 2008-12-27  7:47     ` Andrey Rahmatullin
  2008-12-27 13:36     ` Alexey I. Froloff
  1 sibling, 0 replies; 5+ messages in thread
From: Andrey Rahmatullin @ 2008-12-27  7:47 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

On Sat, Dec 27, 2008 at 02:39:26AM +0200, Speccyfighter wrote:
> Алексей, приведите пожалуйста источник цитаты, чтобы
> поподробнее почитать для использования на будущее.
> Если нетрудно конечно.
crontab(1) вообще-то. Вы ж его читали.

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):

если со сборки xorg-x11-6.8.2-alt4 ничего существенного в драйвере savage не
менялось, то проблема не в том, что модуль savage слишком старый, а как раз в
том, что он слишком новый.
		-- vsu in #7513

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Comm] crontab - неверные действия или странности?
  2008-12-27  0:39   ` Speccyfighter
  2008-12-27  7:47     ` Andrey Rahmatullin
@ 2008-12-27 13:36     ` Alexey I. Froloff
  1 sibling, 0 replies; 5+ messages in thread
From: Alexey I. Froloff @ 2008-12-27 13:36 UTC (permalink / raw)
  To: Mailing list for ALT Linux users

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

* Speccyfighter <zxwarior@> [081227 03:43]:
> Алексей, приведите пожалуйста источник цитаты, чтобы
> поподробнее почитать для использования на будущее.
apt-get remove man-pages-ru ;-)))

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-27 13:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-26 23:25 [Comm] crontab - неверные действия или странности? Speccyfighter
2008-12-27  0:21 ` Alexey I. Froloff
2008-12-27  0:39   ` Speccyfighter
2008-12-27  7:47     ` Andrey Rahmatullin
2008-12-27 13:36     ` Alexey I. Froloff

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git