ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Denis Kirienko <dk@altlinux.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] Что за пользователь news?
Date: Sat, 23 Aug 2008 10:46:19 +0400
Message-ID: <g8obmh$s3e$1@ger.gmane.org> (raw)
In-Reply-To: <200808231840.32622.alexey.borovskoy@gmail.com>

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?

--
Денис



  reply	other threads:[~2008-08-23  6:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-22 14:17 Aleksey E. Birukov
2008-08-23  5:40 ` Alexey Borovskoy
2008-08-23  6:46   ` Denis Kirienko [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='g8obmh$s3e$1@ger.gmane.org' \
    --to=dk@altlinux.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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