ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Igor Homyakov <homyakov@ramax.spb.ru>
To: community@altlinux.ru
Subject: Re: [Comm] mc - bug ?
Date: Fri, 4 Oct 2002 14:55:24 +0400
Message-ID: <20021004105524.GB15553@kadath.pm.ramax.spb.ru> (raw)
In-Reply-To: <200210041051.19996.kosha@Kp.ru>

On Fri, Oct 04, 2002 at 10:51:19AM +0400, Korshunov Ilya wrote:
> Открываю sudo mc (ну надо мне!) , вношу ещё одну запись в hotlist , делаю что 
> надо, выхожу. Гружу mc обычным пользователем - hotlist пуст. Хорошо что есть 
> hotlist.bak а то пришлось бы мне горемычному к 40 fpt'шникам пароли 
> вспоминать. 

Это не баг, это нормальное поведение. Не надо делать sudo c командами
которые используют переменные окружения для работы с файлами. Или
Используйте ключ -H

Смотри в чем тут дело:

$ ls -l .mc/hotlist* 
-rw-------    1 homyakov homyakov       98   4 14:10 .mc/hotlist
$ sudo mc
...
# ls -l .mc/hotlist*
-rw-------    1 root     root          150   4 15:05 .mc/hotlist
$ mc 
$ ls -l .mc/hotlist*
 ls -l .mc/hotlist*
-rw-------    1 homyakov homyakov        0   4 15:08 .mc/hotlist
-rw-------    1 root     root          150   4 15:05 .mc/hotlist.bak

а происходит вот что:

open("/home/homyakov/.mc/hotlist", O_RDONLY|O_LARGEFILE) = -1 EACCES
(Permission  denied)
rename("/home/homyakov/.mc/hotlist", "/home/homyakov/.mc/hotlist.bak") = 0
open("/home/homyakov/.mc/hotlist", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE,
0666) =  4
stat64("/home/homyakov/.mc/hotlist.bak", {st_mode=S_IFREG|0600, st_size=150,
... }) = 0
chmod("/home/homyakov/.mc/hotlist", 0100600) = 0
close(4)                                = 0

Успехов !
--
Igor Homyakov
<homyakov at altlinux dot ru>
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=190141


  parent reply	other threads:[~2002-10-04 10:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-04  6:51 Korshunov Ilya
2002-10-04  7:09 ` А.Л. Клютченя
2002-10-04  7:17   ` Korshunov Ilya
2002-10-04  7:39     ` А.Л. Клютченя
2002-10-04 10:55 ` Igor Homyakov [this message]
2002-10-04 11:35   ` Korshunov Ilya

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=20021004105524.GB15553@kadath.pm.ramax.spb.ru \
    --to=homyakov@ramax.spb.ru \
    --cc=community@altlinux.ru \
    /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 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