* [Sysadmins] Что за пользователь news?
@ 2008-08-22 14:17 Aleksey E. Birukov
2008-08-23 5:40 ` Alexey Borovskoy
2008-08-23 19:33 ` Michael Shigorin
0 siblings, 2 replies; 7+ messages in thread
From: Aleksey E. Birukov @ 2008-08-22 14:17 UTC (permalink / raw)
To: Sysadmins
В /etc/passwd есть такой пользователь news.
news:x:9:13:news:/var/spool/news:/dev/null
Однако,
rpm -qf /var/spool/news
error: file /var/spool/news: No such file or directory
Кто его создал и нужен ли он?
А то мне бы нужно системного пользователя news создать...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Что за пользователь news?
2008-08-22 14:17 [Sysadmins] Что за пользователь news? Aleksey E. Birukov
@ 2008-08-23 5:40 ` Alexey Borovskoy
2008-08-23 6:46 ` Denis Kirienko
2008-08-23 19:33 ` Michael Shigorin
1 sibling, 1 reply; 7+ messages in thread
From: Alexey Borovskoy @ 2008-08-23 5:40 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
* Суббота 23 августа 2008 Aleksey E. Birukov
> В /etc/passwd есть такой пользователь news.
> news:x:9:13:news:/var/spool/news:/dev/null
>
> Однако,
> rpm -qf /var/spool/news
> error: file /var/spool/news: No such file or directory
>
> Кто его создал и нужен ли он?
>
> А то мне бы нужно системного пользователя news создать...
А это и есть системный пользователь news.
rpm -qf /var/spool/news
leafnode-1.11.6-alt1
Для чего Вам хочется сломать систему?
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Что за пользователь news?
2008-08-23 5:40 ` Alexey Borovskoy
@ 2008-08-23 6:46 ` Denis Kirienko
2008-08-23 6:56 ` Max Ivanov
2008-08-23 7:42 ` Alexey I. Froloff
0 siblings, 2 replies; 7+ messages in thread
From: Denis Kirienko @ 2008-08-23 6:46 UTC (permalink / raw)
To: sysadmins
Alexey Borovskoy пишет:
> * Суббота 23 августа 2008 Aleksey E. Birukov
>
>> В /etc/passwd есть такой пользователь news.
>> news:x:9:13:news:/var/spool/news:/dev/null
>>
>> Однако,
>> rpm -qf /var/spool/news
>> error: file /var/spool/news: No such file or directory
>>
>> Кто его создал и нужен ли он?
>>
>> А то мне бы нужно системного пользователя news создать...
>
> А это и есть системный пользователь news.
>
> rpm -qf /var/spool/news
> leafnode-1.11.6-alt1
Это не дает ответа на вопрос, "кто создал этого пользователя".
# rpm -qp --scripts leafnode-1.11.6-alt1.i586.rpm
postinstall scriptlet (through /bin/sh):
# get hostname to config -- works for first time
grep -qF host.domain.country /etc/leafnode/config && {
SERVERNAME=`hostname`
[ -z "$SERVERNAME" ] && SERVERNAME="localhost"
TMP=`mktemp -q leafnode-config-XXXXXXXXXX`
[ $? = 0 ] && sed -e "s,host.domain.country,$SERVERNAME,g" \
< /etc/leafnode/config \
> $TMP && \
cat $TMP > /etc/leafnode/config && rm $TMP
} || :
# force spool perms in case of upgrade (since 1.9.38-alt1)
chown -R news.news /var/spool/news/
chmod -R u=rwX,go=rX /var/spool/news/
# NB:
# - we don't need run.*.dist examples -- using xinetd
# - the same with nntp.rules.dist
# TODO
# - use news for texpire?
# - config dir should be better guarded probably? (or not?)
====================================================
Таким образом, пакет leafnode этого пользователя не создает (у меня тоже
есть такой пользователь, а пакета leafnode нет).
Кроме того, посмотрим на зависимости пакета leafnode:
# rpm -qRp leafnode-1.11.6-alt1.i586.rpm
/bin/sh
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
/etc/cron.daily
/etc/xinetd.d
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.2.5)
libc.so.6(GLIBC_2.3.4)
libc.so.6(GLIBC_2.4)
libpcre.so.3
rtld(GNU_HASH)
sh
su
Что из этого при установке создает пользователя news?
--
Денис
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Что за пользователь news?
2008-08-23 6:46 ` Denis Kirienko
@ 2008-08-23 6:56 ` Max Ivanov
2008-08-23 7:54 ` Denis Kirienko
2008-08-23 7:42 ` Alexey I. Froloff
1 sibling, 1 reply; 7+ messages in thread
From: Max Ivanov @ 2008-08-23 6:56 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
> Что из этого при установке создает пользователя news?
>
Там не только с news так, есть еще, например, adm, uucp. Они как-то
просто есть и все с самого начала :)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Что за пользователь news?
2008-08-23 6:56 ` Max Ivanov
@ 2008-08-23 7:54 ` Denis Kirienko
0 siblings, 0 replies; 7+ messages in thread
From: Denis Kirienko @ 2008-08-23 7:54 UTC (permalink / raw)
To: sysadmins
Max Ivanov пишет:
>> Что из этого при установке создает пользователя news?
>>
> Там не только с news так, есть еще, например, adm, uucp. Они как-то
> просто есть и все с самого начала :)
Ну да, понятно. Пользователь news действительно имеется в системе с
самого начала, домашний каталог у него /var/spool/news, но такого
каталога в системе по умолчанию не существует.
Наличие такого пользователя в системе "по умолчанию" - по видимому,
является простым анахронизмом. Мало кто держит нынче news-сервер на
компьютере...
--
Денис
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Что за пользователь news?
2008-08-23 6:46 ` Denis Kirienko
2008-08-23 6:56 ` Max Ivanov
@ 2008-08-23 7:42 ` Alexey I. Froloff
1 sibling, 0 replies; 7+ messages in thread
From: Alexey I. Froloff @ 2008-08-23 7:42 UTC (permalink / raw)
To: sysadmins
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
* Denis Kirienko <dk@> [080823 10:54]:
> Это не дает ответа на вопрос, "кто создал этого пользователя".
Пакет setup. Этот пользователь в дефолтном /etc/passwd.
--
Regards,
Sir Raorn.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Что за пользователь news?
2008-08-22 14:17 [Sysadmins] Что за пользователь news? Aleksey E. Birukov
2008-08-23 5:40 ` Alexey Borovskoy
@ 2008-08-23 19:33 ` Michael Shigorin
1 sibling, 0 replies; 7+ messages in thread
From: Michael Shigorin @ 2008-08-23 19:33 UTC (permalink / raw)
To: Sysadmins
On Fri, Aug 22, 2008 at 06:17:05PM +0400, Aleksey E. Birukov wrote:
> А то мне бы нужно системного пользователя news создать...
Именно системного или покатит $EDITOR /etc/aliases?
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-08-23 19:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-22 14:17 [Sysadmins] Что за пользователь news? Aleksey E. Birukov
2008-08-23 5:40 ` Alexey Borovskoy
2008-08-23 6:46 ` Denis Kirienko
2008-08-23 6:56 ` Max Ivanov
2008-08-23 7:54 ` Denis Kirienko
2008-08-23 7:42 ` Alexey I. Froloff
2008-08-23 19:33 ` Michael Shigorin
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git