From: Willie WY Wong <wongwwy@member.ams.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Problem with sudo
Date: Tue, 3 Jul 2012 14:50:54 +0200 [thread overview]
Message-ID: <20120703125054.GA5564@mathaapc14.epfl.ch> (raw)
In-Reply-To: <CAJf79niNjoL_3mvaZEv+YyCEUZ-68eE1cLw__u2omYqStovWYQ@mail.gmail.com>
On Sun, Jul 01, 2012 at 10:41:12AM +0800, Penguin Lover 赵佳晖 squawked:
> I have use your method , it didn't work .
> Like:
> sudo echo "sys-boot/grub:2 **" >>
> /etc/portage/package.accept_keywords/package.keywords.grub2 echo
> "sys-boot/grub:2 **" | sudo tee
> /etc/portage/package.accept_keywords/package.keywords.grub2
>
> And the result :
> zjhui@gentoo ~ $ ls -l
> /etc/portage/package.accept_keywords/package.keywords.grub2
> -rw-r--r-- 1 root root 0 Jul 1 10:37
> /etc/portage/package.accept_keywords/package.keywords.grub2
>
> It's an empty file.
I think you misread the e-mail. The left hand side below is what you
**shouldn't** do. The right hand side is what you **should** do. So
you **should** run
echo "sys-boot/grub:2 **" | sudo tee /etc/portage/package.accept_keywords/package.keywords.grub2
and no more.
W
>
> > If Neil is right, you may want to read man tee. It work roughly like
> > that:
> > instead of do
> > sudo echo sthg > /etc/file.cfg echo sthg | sudo tee /etc/file.cfg
> > sudo echo sthg >> /etc/file.cfg echo sthg | sudo tee -a /etc/file.cfg
next prev parent reply other threads:[~2012-07-03 12:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-30 17:27 [gentoo-user] Problem with sudo 赵佳晖
2012-06-30 17:34 ` Alecks Gates
2012-07-01 2:36 ` 赵佳晖
2012-07-01 2:55 ` Alecks Gates
2012-07-01 5:06 ` 赵佳晖
2012-07-01 8:03 ` Neil Bothwick
2012-06-30 18:48 ` Neil Bothwick
2012-06-30 19:22 ` Éric DUNAND
2012-07-01 2:41 ` 赵佳晖
2012-07-03 12:50 ` Willie WY Wong [this message]
2012-07-04 0:39 ` 赵佳晖
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=20120703125054.GA5564@mathaapc14.epfl.ch \
--to=wongwwy@member.ams.org \
--cc=gentoo-user@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox