ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: faqa@ies.udm.ru
To: community@altlinux.ru
Subject: Re: [Comm] хмурюсь на sudo
Date: Wed, 9 Oct 2002 08:59:01 +0500
Message-ID: <20021009035901.GA18552@faa.ies.udm.ru> (raw)
In-Reply-To: <20021008193515.602c63fb.baron@dartel.ru>

On Tue, Oct 08, 2002 at 07:35:15PM +0400, Ruslan N. Balkin wrote:
> > 
> > [faqa@faa faqa]$ sudo ls ~kedr/
> > bin  Desktop  Mail  nw  tmp  tra-ta-ta  tra-ta-ta1  tra-ta-ta2
> > [faqa@faa faqa]$ sudo rm -f ~kedr/tra-ta-ta*
> > [faqa@faa faqa]$ sudo ls ~kedr/
> > bin  Desktop  Mail  nw  tmp  tra-ta-ta  tra-ta-ta1  tra-ta-ta2
> > 
> > Т.е. используя sudo я не смог удалить файлики, используя метасимвол *. Я
> > так понимаю, при разборе команды shell делает подстановку вместо * и
> > обламывается, т.к. нет прав читать файлики у пользователя faqa в каталоге
> > ~kedr.(Хотя никакой ругани не было :( ). А вот 
> > как бы сие обойти, т.е. сначало передать команду sudo, а потом
> > сам sudo займется ее разбором, в том числе подстановкой вместо
> > метасимволов?
> 
> sudo rm -f "~kedr/tra-ta-ta*" может помочь.

Я тут рыл в сторону запуска саб-шелла, но с таком случае не работает
completion, а в Вашем варианте - работает. Спасибо большое.

С уважением,
Фефилов Андрей.


      reply	other threads:[~2002-10-09  3:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-08  5:47 faqa
2002-10-08 10:09 ` faqa
2002-10-08 15:35 ` Ruslan N. Balkin
2002-10-09  3:59   ` faqa [this message]

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=20021009035901.GA18552@faa.ies.udm.ru \
    --to=faqa@ies.udm.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