public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alecks Gates <alecks.g@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Problem with sudo
Date: Sat, 30 Jun 2012 21:55:27 -0500	[thread overview]
Message-ID: <CAKkyAYYU4OFSD2=KPfq=J7niNM+8V-oB59qrj=WrLXfrs1Ae3Q@mail.gmail.com> (raw)
In-Reply-To: <CAJf79ngPmyhRxnCJfVG8ouWHFDRNNKQDzSXAZqGDcOy3s4LChA@mail.gmail.com>

On Sat, Jun 30, 2012 at 9:36 PM, 赵佳晖 <jiahui.tar.gz@gmail.com> wrote:
> The -i option didn't work, it also says Permission Denied
>
>
> 2012/7/1 Alecks Gates <alecks.g@gmail.com>
>>
>> On Jun 30, 2012 12:28 PM, "赵佳晖" <jiahui.tar.gz@gmail.com> wrote:
>> >
>> > In some cases , when i run somethings with "sudo" , it tells me
>> > "Permission Denied" , then i should turn to root . i forgot to record the
>> > cases .  Did anyone have any ideas ?
>> >
>> > --
>> > 好好学习,天天向上!!!
>> I think it would depend on the use case, but try "sudo -i" (-i meaning
>> interactive, I believe) and see if that works for you.  I get permission
>> denied usually with a lot of bash input and output.
>>
>> Alecks Gates, sent from Android on an HTC G2
>
>
>
>
> --
> 好好学习,天天向上!!!
Did you use it interactively?  It should look like this:
alecks@linux:~$ sudo -i
root@linux: ~# echo "sys-boot/grub:2 **" >>
/etc/portage/package.accept_keywords/package.keywords.grub2

Just the way I like to do it.  You could also do something like "sudo
su" and I'm sure someone else here will have all sorts of
alternatives.  Just like I'm sure someone has a way to do it all in
one line, anyway.



  reply	other threads:[~2012-07-01  2:57 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 [this message]
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
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='CAKkyAYYU4OFSD2=KPfq=J7niNM+8V-oB59qrj=WrLXfrs1Ae3Q@mail.gmail.com' \
    --to=alecks.g@gmail.com \
    --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