Bug 768 - скрипт из cron.daily/texpire содержит ошибку в вызове su
Summary: скрипт из cron.daily/texpire содержит ошибку в вызове su
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: leafnode (show other bugs)
Version: unstable
Hardware: all Linux
: P4 minor
Assignee: Michael Shigorin
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-30 15:57 MSK by Vitaly Lipatov
Modified: 2003-08-25 15:18 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Lipatov 2002-03-30 15:57:59 MSK
[<a href="mailto:root@lav" target="_new">root@lav</a> cron.daily]# ./texpire
su: could not identify appropriate shell
[<a href="mailto:root@lav" target="_new">root@lav</a> cron.daily]# rpm -qf texpire
leafnode-1.9.18-ipl2mdk
---

---
texpire fixed in 1.9.22
Comment 1 Michael Shigorin 2002-03-30 16:55:52 MSK
1) current version is 1.9.20-alt1 (not yet in Sisyphus -- look at <a href="http://lic145.kiev.ua/~mike/ALTLinux/ALT-upload-queue/">http://lic145.kiev.ua/~mike/ALTLinux/ALT-upload-queue/</a>)

2) texpire from 1.9.18 _works_ as a cronjob (which is definitely _the_ destination of /etc/cron.daily/texpire) -- you could do \&quot;su - news -s /bin/sh /usr/sbin/texpire\&quot; to perform the operation manually.

PS: check \&quot;news\&quot; user shell in /etc/passwd -- as of Spring 2001 it was _empty_, now it\'s plain /dev/null.
Comment 2 Michael Shigorin 2002-03-30 16:55:52 MSK
1) current version is 1.9.20-alt1 (not yet in Sisyphus -- look at <a href="http://lic145.kiev.ua/~mike/ALTLinux/ALT-upload-queue/">http://lic145.kiev.ua/~mike/ALTLinux/ALT-upload-queue/</a>)

2) texpire from 1.9.18 _works_ as a cronjob (which is definitely _the_ destination of /etc/cron.daily/texpire) -- you could do \&quot;su - news -s /bin/sh /usr/sbin/texpire\&quot; to perform the operation manually.

PS: check \&quot;news\&quot; user shell in /etc/passwd -- as of Spring 2001 it was _empty_, now it\'s plain /dev/null.
Comment 3 Vitaly Lipatov 2002-03-31 18:58:09 MSD
Я имел в виду что нужно 
исправить /etc/cron.daily/texpire
чтобы он содержал su - news -s /bin/sh /usr/sbin/texpire
то есть указание шелла.
Comment 4 Vitaly Lipatov 2002-03-31 18:58:09 MSD
Я имел в виду что нужно 
исправить /etc/cron.daily/texpire
чтобы он содержал su - news -s /bin/sh /usr/sbin/texpire
то есть указание шелла.
Comment 5 Michael Shigorin 2002-08-01 15:43:27 MSD
1.9.22-alt1 is reported to work (sssku)
Comment 6 Michael Shigorin 2002-08-01 15:43:27 MSD
1.9.22-alt1 is reported to work (sssku)