ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Бушуев Сергей" <bush@nojabrsk.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] долго отрабатывает su -
Date: Mon, 12 Sep 2011 18:48:08 +0600
Message-ID: <201109121848.08720.bush@nojabrsk.ru> (raw)
In-Reply-To: <201109121023.31880.bush@nojabrsk.ru>

В сообщении от 12 сентября 2011 10:23:31 автор Бушуев Сергей написал:
> В сообщении от 12 сентября 2011 02:33:09 автор Michael Shigorin написал:
> > On Sun, Sep 11, 2011 at 08:31:55AM +0600, Бушуев Сергей wrote:
> > > > /etc/pam.d/system-auth
> > > > 12-консоль ещё имеет смысл наблюдать во время затяжного
> > > > выполнения команды.
> > > 
> > > есть ли тут криминал?
> > 
> > Будто нет.
> > 
> > А от рута su - user (подставьте существующий логин) тоже долго
> > отрабатывает?  Если да, может быть осмысленно выполнить:
> > 
> > strace -ff su - user
> > 
> > и посмотреть, на какой строчке задумывается.
> 
> Тоже долго, также долго отрабатывает и отключение по Ctrl-d.
> Вечером попробую strace -ff su - user, отчитаюсь...

отчитываюсь

socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), 
sin_addr=inet_addr("192.168.1.1")}, 28) = 0
gettimeofday({1315831324, 554652}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\6\300\1\0\0\1\0\0\0\0\0\0\tlocalhost\vlocaldoma"..., 39, 
MSG_NOSIGNAL) = 39
poll([{fd=4, events=POLLIN}], 1, 5000)  = 1 ([{fd=4, revents=POLLIN}])
ioctl(4, FIONREAD, [39])                = 0
recvfrom(4, "\6\300\201\2\0\1\0\0\0\0\0\0\tlocalhost\vlocaldoma"..., 1024, 0, 
{sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, 
[16]) = 39
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), 
sin_addr=inet_addr("127.0.0.1")}, 28) = 0
gettimeofday({1315831328, 614348}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\6\300\1\0\0\1\0\0\0\0\0\0\tlocalhost\vlocaldoma"..., 39, 
MSG_NOSIGNAL) = 39
poll([{fd=4, events=POLLIN}], 1, 5000

и таких блоков много
нажимаю Ctrl-d и опять с остановками

stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=150, ...}) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(53), 
sin_addr=inet_addr("127.0.0.1")}, 28) = 0
gettimeofday({1315831544, 584952}, NULL) = 0
poll([{fd=5, events=POLLOUT}], 1, 0)    = 1 ([{fd=5, revents=POLLOUT}])
send(5, "q\30\1\0\0\1\0\0\0\0\0\0\tlocalhost\vlocaldoma"..., 39, MSG_NOSIGNAL) 
= 39
poll([{fd=5, events=POLLIN}], 1, 5000)  = 1 ([{fd=5, revents=POLLIN}])
ioctl(5, FIONREAD, [39])                = 0
recvfrom(5, "q\30\201\202\0\1\0\0\0\0\0\0\tlocalhost\vlocaldoma"..., 1024, 0, 
{sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 
[16]) = 39
close(5)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(53), 
sin_addr=inet_addr("192.168.1.1")}, 28) = 0
gettimeofday({1315831548, 648137}, NULL) = 0
poll([{fd=5, events=POLLOUT}], 1, 0)    = 1 ([{fd=5, revents=POLLOUT}])
send(5, "q\30\1\0\0\1\0\0\0\0\0\0\tlocalhost\vlocaldoma"..., 39, MSG_NOSIGNAL) 
= 39
poll([{fd=5, events=POLLIN}], 1, 5000)  = 1 ([{fd=5, revents=POLLIN}])
ioctl(5, FIONREAD, [39])                = 0
recvfrom(5, "q\30\201\2\0\1\0\0\0\0\0\0\tlocalhost\vlocaldoma"..., 1024, 0, 
{sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, 
[16]) = 39
close(5)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(53), 
sin_addr=inet_addr("127.0.0.1")}, 28) = 0
gettimeofday({1315831552, 707969}, NULL) = 0
poll([{fd=5, events=POLLOUT}], 1, 0)    = 1 ([{fd=5, revents=POLLOUT}])
send(5, "q\30\1\0\0\1\0\0\0\0\0\0\tlocalhost\vlocaldoma"..., 39, MSG_NOSIGNAL) 
= 39
poll([{fd=5, events=POLLIN}], 1, 5000



  parent reply	other threads:[~2011-09-12 12:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-10 10:06 Бушуев Сергей
2011-09-10 13:35 ` Peter V. Saveliev
2011-09-10 15:34   ` Бушуев Сергей
2011-09-10 18:38     ` Paul Wolneykien
2011-09-11  2:31       ` Бушуев Сергей
2011-09-11 20:33         ` Michael Shigorin
2011-09-12  4:23           ` Бушуев Сергей
2011-09-12  7:15             ` Anton Farygin
2011-09-12  7:44               ` Alexei Takaseev
2011-09-12  8:11               ` Бушуев Сергей
2011-09-12 12:48             ` Бушуев Сергей [this message]
2011-09-12 13:43               ` Nikolay A. Fetisov
2011-09-12 14:31                 ` Бушуев Сергей
2011-09-12 14:37                   ` Michael Shigorin
2011-09-12 15:15                     ` Бушуев Сергей
2011-09-12 16:07                       ` Michael Shigorin
2011-09-13  6:00                         ` Sergei Epiphanov

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=201109121848.08720.bush@nojabrsk.ru \
    --to=bush@nojabrsk.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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