* [gentoo-user] installing/upgrading with emerge from non-root
@ 2009-08-05 15:14 Kevin Haddock
2009-08-05 15:22 ` Paul Hartman
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Kevin Haddock @ 2009-08-05 15:14 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] installing/upgrading with emerge from non-root
2009-08-05 15:14 [gentoo-user] installing/upgrading with emerge from non-root Kevin Haddock
@ 2009-08-05 15:22 ` Paul Hartman
2009-08-05 19:15 ` Kevin Haddock
2009-08-05 15:48 ` Galevsky
2009-08-05 20:58 ` Stroller
2 siblings, 1 reply; 11+ messages in thread
From: Paul Hartman @ 2009-08-05 15:22 UTC (permalink / raw
To: gentoo-user
On Wed, Aug 5, 2009 at 10:14 AM, Kevin Haddock<kevinhaddock@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?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] installing/upgrading with emerge from non-root
2009-08-05 15:14 [gentoo-user] installing/upgrading with emerge from non-root Kevin Haddock
2009-08-05 15:22 ` Paul Hartman
@ 2009-08-05 15:48 ` Galevsky
2009-08-05 16:03 ` Renat Golubchyk
2009-08-05 19:18 ` Kevin Haddock
2009-08-05 20:58 ` Stroller
2 siblings, 2 replies; 11+ messages in thread
From: Galevsky @ 2009-08-05 15:48 UTC (permalink / raw
To: gentoo-user
2009/8/5 Kevin Haddock <kevinhaddock@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'
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] installing/upgrading with emerge from non-root
2009-08-05 15:48 ` Galevsky
@ 2009-08-05 16:03 ` Renat Golubchyk
2009-08-05 19:18 ` Kevin Haddock
1 sibling, 0 replies; 11+ messages in thread
From: Renat Golubchyk @ 2009-08-05 16:03 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]
Am Wed, 5 Aug 2009 17:48:06 +0200
schrieb Galevsky <galevsky@gmail.com>:
> 2009/8/5 Kevin Haddock <kevinhaddock@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)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] installing/upgrading with emerge from non-root
2009-08-05 15:22 ` Paul Hartman
@ 2009-08-05 19:15 ` Kevin Haddock
0 siblings, 0 replies; 11+ messages in thread
From: Kevin Haddock @ 2009-08-05 19:15 UTC (permalink / raw
To: gentoo-user
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+gentoo@gmail.com> wrote:
> From: Paul Hartman <paul.hartman+gentoo@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 Haddock<kevinhaddock@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?
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] installing/upgrading with emerge from non-root
2009-08-05 15:48 ` Galevsky
2009-08-05 16:03 ` Renat Golubchyk
@ 2009-08-05 19:18 ` Kevin Haddock
2009-08-05 20:09 ` Galevsky
1 sibling, 1 reply; 11+ messages in thread
From: Kevin Haddock @ 2009-08-05 19:18 UTC (permalink / raw
To: gentoo-user
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 <galevsky@gmail.com> wrote:
> From: Galevsky <galevsky@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 <kevinhaddock@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'
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] installing/upgrading with emerge from non-root
2009-08-05 19:18 ` Kevin Haddock
@ 2009-08-05 20:09 ` Galevsky
2009-08-06 0:49 ` Kevin Haddock
0 siblings, 1 reply; 11+ messages in thread
From: Galevsky @ 2009-08-05 20:09 UTC (permalink / raw
To: gentoo-user
2009/8/5 Kevin Haddock <kevinhaddock@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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] installing/upgrading with emerge from non-root
2009-08-05 15:14 [gentoo-user] installing/upgrading with emerge from non-root Kevin Haddock
2009-08-05 15:22 ` Paul Hartman
2009-08-05 15:48 ` Galevsky
@ 2009-08-05 20:58 ` Stroller
2009-08-06 0:50 ` Kevin Haddock
2 siblings, 1 reply; 11+ messages in thread
From: Stroller @ 2009-08-05 20:58 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] installing/upgrading with emerge from non-root
2009-08-05 20:09 ` Galevsky
@ 2009-08-06 0:49 ` Kevin Haddock
0 siblings, 0 replies; 11+ messages in thread
From: Kevin Haddock @ 2009-08-06 0:49 UTC (permalink / raw
To: gentoo-user
--- On Wed, 8/5/09, Galevsky <galevsky@gmail.com> wrote:
> From: Galevsky <galevsky@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 <kevinhaddock@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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] installing/upgrading with emerge from non-root
2009-08-05 20:58 ` Stroller
@ 2009-08-06 0:50 ` Kevin Haddock
2009-08-06 18:29 ` Dan Farrell
0 siblings, 1 reply; 11+ messages in thread
From: Kevin Haddock @ 2009-08-06 0:50 UTC (permalink / raw
To: gentoo-user
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 <stroller@stellar.eclipse.co.uk> wrote:
> From: Stroller <stroller@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.
>
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] installing/upgrading with emerge from non-root
2009-08-06 0:50 ` Kevin Haddock
@ 2009-08-06 18:29 ` Dan Farrell
0 siblings, 0 replies; 11+ messages in thread
From: Dan Farrell @ 2009-08-06 18:29 UTC (permalink / raw
To: gentoo-user
On Wed, 5 Aug 2009 17:50:24 -0700 (PDT)
Kevin Haddock <kevinhaddock@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.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-08-06 18:30 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05 15:14 [gentoo-user] installing/upgrading with emerge from non-root Kevin Haddock
2009-08-05 15:22 ` Paul Hartman
2009-08-05 19:15 ` Kevin Haddock
2009-08-05 15:48 ` Galevsky
2009-08-05 16:03 ` Renat Golubchyk
2009-08-05 19:18 ` Kevin Haddock
2009-08-05 20:09 ` Galevsky
2009-08-06 0:49 ` Kevin Haddock
2009-08-05 20:58 ` Stroller
2009-08-06 0:50 ` Kevin Haddock
2009-08-06 18:29 ` Dan Farrell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox