On Sat, Jun 30, 2012 at 9:36 PM, 赵佳晖 <jiahui.tar...@gmail.com> wrote:
> The -i option didn't work, it also says Permission Denied
>
>
> 2012/7/1 Alecks Gates <aleck...@gmail.com>
>>
>> On Jun 30, 2012 12:28 PM, "赵佳晖" <jiahui.tar...@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 via email to