Re: [gentoo-user] Problem with sudo

2012-07-03 Thread 赵佳晖
Oh,yes , i misunderstand it . Thank you 2012/7/3 Willie WY Wong > 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 ec

Re: [gentoo-user] Problem with sudo

2012-07-03 Thread Willie WY Wong
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/p

Re: [gentoo-user] Problem with sudo

2012-07-01 Thread Neil Bothwick
On Sat, 30 Jun 2012 21:55:27 -0500, Alecks Gates wrote: > 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 als

Re: [gentoo-user] Problem with sudo

2012-06-30 Thread 赵佳晖
hmm...yes , i want to do it in one command line.. 2012/7/1 Alecks Gates > On Sat, Jun 30, 2012 at 9:36 PM, 赵佳晖 wrote: > > The -i option didn't work, it also says Permission Denied > > > > > > 2012/7/1 Alecks Gates > >> > >> On Jun 30, 2012 12:28 PM, "赵佳晖" wrote: > >> > > >> > In some cases ,

Re: [gentoo-user] Problem with sudo

2012-06-30 Thread Alecks Gates
On Sat, Jun 30, 2012 at 9:36 PM, 赵佳晖 wrote: > The -i option didn't work, it also says Permission Denied > > > 2012/7/1 Alecks Gates >> >> On Jun 30, 2012 12:28 PM, "赵佳晖" wrote: >> > >> > In some cases , when i run somethings with "sudo" , it tells me >> > "Permission Denied" , then i should turn

Re: [gentoo-user] Problem with sudo

2012-06-30 Thread 赵佳晖
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/packag

Re: [gentoo-user] Problem with sudo

2012-06-30 Thread 赵佳晖
The -i option didn't work, it also says Permission Denied 2012/7/1 Alecks Gates > On Jun 30, 2012 12:28 PM, "赵佳晖" 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

Re: [gentoo-user] Problem with sudo

2012-06-30 Thread Éric DUNAND
Le Sat, 30 Jun 2012 19:48:28 +0100, Neil Bothwick a écrit : > On Sun, 1 Jul 2012 01:27:49 +0800, 赵佳晖 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 ?

Re: [gentoo-user] Problem with sudo

2012-06-30 Thread Neil Bothwick
On Sun, 1 Jul 2012 01:27:49 +0800, 赵佳晖 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 ? Are you trying to redirect the output? That can give this message beca

Re: [gentoo-user] Problem with sudo

2012-06-30 Thread Alecks Gates
On Jun 30, 2012 12:28 PM, "赵佳晖" 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"

[gentoo-user] Problem with sudo

2012-06-30 Thread 赵佳晖
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 ? -- 好好学习,天天向上!!!