Gentoo Archives: gentoo-user

From: Alecks Gates <alecks.g@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problem with sudo
Date: Sun, 01 Jul 2012 02:57:24
Message-Id: CAKkyAYYU4OFSD2=KPfq=J7niNM+8V-oB59qrj=WrLXfrs1Ae3Q@mail.gmail.com
In Reply to: Re: [gentoo-user] Problem with sudo by "赵佳晖"
1 On Sat, Jun 30, 2012 at 9:36 PM, 赵佳晖 <jiahui.tar.gz@×××××.com> wrote:
2 > The -i option didn't work, it also says Permission Denied
3 >
4 >
5 > 2012/7/1 Alecks Gates <alecks.g@×××××.com>
6 >>
7 >> On Jun 30, 2012 12:28 PM, "赵佳晖" <jiahui.tar.gz@×××××.com> wrote:
8 >> >
9 >> > In some cases , when i run somethings with "sudo" , it tells me
10 >> > "Permission Denied" , then i should turn to root . i forgot to record the
11 >> > cases . Did anyone have any ideas ?
12 >> >
13 >> > --
14 >> > 好好学习,天天向上!!!
15 >> I think it would depend on the use case, but try "sudo -i" (-i meaning
16 >> interactive, I believe) and see if that works for you. I get permission
17 >> denied usually with a lot of bash input and output.
18 >>
19 >> Alecks Gates, sent from Android on an HTC G2
20 >
21 >
22 >
23 >
24 > --
25 > 好好学习,天天向上!!!
26 Did you use it interactively? It should look like this:
27 alecks@linux:~$ sudo -i
28 root@linux: ~# echo "sys-boot/grub:2 **" >>
29 /etc/portage/package.accept_keywords/package.keywords.grub2
30
31 Just the way I like to do it. You could also do something like "sudo
32 su" and I'm sure someone else here will have all sorts of
33 alternatives. Just like I'm sure someone has a way to do it all in
34 one line, anyway.

Replies

Subject Author
Re: [gentoo-user] Problem with sudo "赵佳晖" <jiahui.tar.gz@×××××.com>
Re: [gentoo-user] Problem with sudo Neil Bothwick <neil@××××××××××.uk>