Re: [gentoo-user] installing/upgrading with emerge from non-root

2009-08-06 Thread Dan Farrell
On Wed, 5 Aug 2009 17:50:24 -0700 (PDT)
Kevin Haddock kevinhadd...@yahoo.com wrote:

 I changed the permissions on my machine.  On the remote machine, it
 shouldn't need root permissions just to compile programs, right?
 

No, I don't think so.  

You know, the remote admin might rather open up distcc to local
connections; then you could tunnel through SSH.  That way distcc
doesn't even know you aren't remote.  



[gentoo-user] installing/upgrading with emerge from non-root

2009-08-05 Thread Kevin Haddock
I'm trying to do distributed compile with a remote machine that I don't have 
root password to. I have a local account with sudo permissions and an account 
of the same name on the remote machine. I have set up ssh so I can shell across 
without entering passwords nor pass phrases. I have even added my user to the 
group 'wheel' and given it that group permission to execute all commands. I 
even went so far as to change all the emerge program files in 
/usr/lib/portage/bin to have g+x and belong to the group wheel, but it still 
tells me: 

$ emerge -kuDN world
emerge: superuser access is required.

Is there any way to do this?


-Kevin

-

People originally thought the eternal question was:

  Why am I here?

But now we know the question is actually:

  Why is THAT THERE?

-Me


  



Re: [gentoo-user] installing/upgrading with emerge from non-root

2009-08-05 Thread Paul Hartman
On Wed, Aug 5, 2009 at 10:14 AM, Kevin Haddockkevinhadd...@yahoo.com wrote:
 I'm trying to do distributed compile with a remote machine that I don't have 
 root password to. I have a local account with sudo permissions and an account 
 of the same name on the remote machine. I have set up ssh so I can shell 
 across without entering passwords nor pass phrases. I have even added my user 
 to the group 'wheel' and given it that group permission to execute all 
 commands. I even went so far as to change all the emerge program files in 
 /usr/lib/portage/bin to have g+x and belong to the group wheel, but it still 
 tells me:

 $ emerge -kuDN world
 emerge: superuser access is required.

 Is there any way to do this?

Are you in the portage group?



Re: [gentoo-user] installing/upgrading with emerge from non-root

2009-08-05 Thread Galevsky
2009/8/5 Kevin Haddock kevinhadd...@yahoo.com:
 I'm trying to do distributed compile with a remote machine that I don't have 
 root password to. I have a local account with sudo permissions and an account 
 of the same name on the remote machine. I have set up ssh so I can shell 
 across without entering passwords nor pass phrases. I have even added my user 
 to the group 'wheel' and given it that group permission to execute all 
 commands. I even went so far as to change all the emerge program files in 
 /usr/lib/portage/bin to have g+x and belong to the group wheel, but it still 
 tells me:

 $ emerge -kuDN world
 emerge: superuser access is required.

 Is there any way to do this?

Yep: as a member of wheel, you should be able to run emerge 'as root'
when sudoing:

sudo emerge whatyouwant

Gal'



Re: [gentoo-user] installing/upgrading with emerge from non-root

2009-08-05 Thread Renat Golubchyk
Am Wed, 5 Aug 2009 17:48:06 +0200
schrieb Galevsky galev...@gmail.com:

 2009/8/5 Kevin Haddock kevinhadd...@yahoo.com:
  I'm trying to do distributed compile with a remote machine that I
  don't have root password to. I have a local account with sudo
  permissions and an account of the same name on the remote machine.
  I have set up ssh so I can shell across without entering passwords
  nor pass phrases. I have even added my user to the group 'wheel'
  and given it that group permission to execute all commands. I even
  went so far as to change all the emerge program files
  in /usr/lib/portage/bin to have g+x and belong to the group wheel,
  but it still tells me:
 
  $ emerge -kuDN world
  emerge: superuser access is required.
 
  Is there any way to do this?
 
 Yep: as a member of wheel, you should be able to run emerge 'as root'
 when sudoing:
 
 sudo emerge whatyouwant

And if you don't want to type password every time change
your /etc/sudoers file accordingly. Check the sudoers man page.


Cheers,
Renat


-- 
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
  (Einstein)


signature.asc
Description: PGP signature


Re: [gentoo-user] installing/upgrading with emerge from non-root

2009-08-05 Thread Kevin Haddock
I tried adding myself to that (and logging out and back in) and it didn't make 
any difference.

-Kevin

-

People originally thought the eternal question was:

  Why am I here?

But now we know the question is actually:

  Why is THAT THERE?

-Me


--- On Wed, 8/5/09, Paul Hartman paul.hartman+gen...@gmail.com wrote:

 From: Paul Hartman paul.hartman+gen...@gmail.com
 Subject: Re: [gentoo-user] installing/upgrading with emerge from non-root
 To: gentoo-user@lists.gentoo.org
 Date: Wednesday, August 5, 2009, 8:22 AM
 On Wed, Aug 5, 2009 at 10:14 AM,
 Kevin Haddockkevinhadd...@yahoo.com
 wrote:
  I'm trying to do distributed compile with a remote
 machine that I don't have root password to. I have a local
 account with sudo permissions and an account of the same
 name on the remote machine. I have set up ssh so I can shell
 across without entering passwords nor pass phrases. I have
 even added my user to the group 'wheel' and given it that
 group permission to execute all commands. I even went so far
 as to change all the emerge program files in
 /usr/lib/portage/bin to have g+x and belong to the group
 wheel, but it still tells me:
 
  $ emerge -kuDN world
  emerge: superuser access is required.
 
  Is there any way to do this?
 
 Are you in the portage group?
 
 


  



Re: [gentoo-user] installing/upgrading with emerge from non-root

2009-08-05 Thread Kevin Haddock
hmmm... ok, I can see that, but if I use sudo, will distcc try to distribute 
the compile jobs logging in as my unprivileged user, or will it try doing it as 
root (on the other machine)?

-Kevin

-

People originally thought the eternal question was:

  Why am I here?

But now we know the question is actually:

  Why is THAT THERE?

-Me


--- On Wed, 8/5/09, Galevsky galev...@gmail.com wrote:

 From: Galevsky galev...@gmail.com
 Subject: Re: [gentoo-user] installing/upgrading with emerge from non-root
 To: gentoo-user@lists.gentoo.org
 Date: Wednesday, August 5, 2009, 8:48 AM
 2009/8/5 Kevin Haddock kevinhadd...@yahoo.com:
  I'm trying to do distributed compile with a remote
 machine that I don't have root password to. I have a local
 account with sudo permissions and an account of the same
 name on the remote machine. I have set up ssh so I can shell
 across without entering passwords nor pass phrases. I have
 even added my user to the group 'wheel' and given it that
 group permission to execute all commands. I even went so far
 as to change all the emerge program files in
 /usr/lib/portage/bin to have g+x and belong to the group
 wheel, but it still tells me:
 
  $ emerge -kuDN world
  emerge: superuser access is required.
 
  Is there any way to do this?
 
 Yep: as a member of wheel, you should be able to run emerge
 'as root'
 when sudoing:
 
 sudo emerge whatyouwant
 
 Gal'
 
 


  



Re: [gentoo-user] installing/upgrading with emerge from non-root

2009-08-05 Thread Galevsky
2009/8/5 Kevin Haddock kevinhadd...@yahoo.com:
 hmmm... ok, I can see that, but if I use sudo, will distcc try to distribute 
 the compile jobs logging in as my unprivileged user, or will it try doing it 
 as root (on the other machine)?




You want to share your compilation tasks with others good. Do you
have enough rights to launch emerge localy ? So you have to launch
emerge with feature distcc on.

What about the other hosts that may help you compiling ? They have to
run the distcc daemon, with your IP on the authorized list. Do you
have enough privileges to manage/configure the distccd daemon on other
machines ? That is the question. You have to ask for it to the admin
if you cannot do it in your own.

I just want to let you know that shared compilation faces some issues
depending on packages: I failed to upgrade gcc using distcc, but
disabling it was a fix for my gcc-4.3.2 emerge process.

Galevsky



Re: [gentoo-user] installing/upgrading with emerge from non-root

2009-08-05 Thread Stroller


On 5 Aug 2009, at 16:14, Kevin Haddock wrote:

I'm trying to do distributed compile with a remote machine that I  
don't have root password to. I have a local account with sudo  
permissions and an account of the same name on the remote machine.


If you don't have the root password then just `sudo passwd root`.

Alternatively: `sudo su -`.

If someone doesn't want you to have the root password or to change it  
like that, then you're already (changing permissions of your own user  
 randomly changing permissions of programs) messing around with the  
machine more than you should be.


Stroller.




Re: [gentoo-user] installing/upgrading with emerge from non-root

2009-08-05 Thread Kevin Haddock


--- On Wed, 8/5/09, Galevsky galev...@gmail.com wrote:

 From: Galevsky galev...@gmail.com
 Subject: Re: [gentoo-user] installing/upgrading with emerge from non-root
 To: gentoo-user@lists.gentoo.org
 Date: Wednesday, August 5, 2009, 1:09 PM
 2009/8/5 Kevin Haddock kevinhadd...@yahoo.com:
  hmmm... ok, I can see that, but if I use sudo, will
 distcc try to distribute the compile jobs logging in as my
 unprivileged user, or will it try doing it as root (on the
 other machine)?
 
 
 
 
 You want to share your compilation tasks with others
 good. Do you
 have enough rights to launch emerge localy ? So you have to
 launch
 emerge with feature distcc on.

That is done.  I am a sudoer on the other machine but I don't have the root 
password, nor do I just want to cavalierly set it as it's not my machine.

 
 What about the other hosts that may help you compiling ?
 They have to
 run the distcc daemon, with your IP on the authorized list.

As the other machines are located across the public internet, it is my 
understanding that I should *not* run distccd but instead let mine log in with 
ssh to launch the compile.

 Do you
 have enough privileges to manage/configure the distccd
 daemon on other
 machines ? That is the question. You have to ask for it to
 the admin
 if you cannot do it in your own.

Should all be set up.  Only problem is that I don't think my machine can log in 
as root to the remote machine without the remote machine's root password, right?

 
 I just want to let you know that shared compilation faces
 some issues
 depending on packages: I failed to upgrade gcc using
 distcc, but
 disabling it was a fix for my gcc-4.3.2 emerge process.
 

all gcc's are the same version.

 Galevsky
 

-Kevin 


  



Re: [gentoo-user] installing/upgrading with emerge from non-root

2009-08-05 Thread Kevin Haddock
I changed the permissions on my machine.  On the remote machine, it shouldn't 
need root permissions just to compile programs, right?

-Kevin

-

People originally thought the eternal question was:

  Why am I here?

But now we know the question is actually:

  Why is THAT THERE?

-Me


--- On Wed, 8/5/09, Stroller strol...@stellar.eclipse.co.uk wrote:

 From: Stroller strol...@stellar.eclipse.co.uk
 Subject: Re: [gentoo-user] installing/upgrading with emerge from non-root
 To: gentoo-user@lists.gentoo.org
 Date: Wednesday, August 5, 2009, 1:58 PM
 
 On 5 Aug 2009, at 16:14, Kevin Haddock wrote:
 
  I'm trying to do distributed compile with a remote
 machine that I don't have root password to. I have a local
 account with sudo permissions and an account of the same
 name on the remote machine.
 
 If you don't have the root password then just `sudo passwd
 root`.
 
 Alternatively: `sudo su -`.
 
 If someone doesn't want you to have the root password or to
 change it like that, then you're already (changing
 permissions of your own user  randomly changing
 permissions of programs) messing around with the machine
 more than you should be.
 
 Stroller.