You are not logged in.

#1 2010-02-04 17:07:05

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

Chroot Help SOLVED

hi archers

I have 64 bit arch and have created a chroot to compile source code with.....
My only problem is, when I activate Chroot (32bit environment) I can only be in Root... but obviously
I shouldn't compile packages as root.... but when I exit from root, im back in my 64 bit setup............


my question is.... how do i add normal user to chroot so i can compile stuff as normal user etc.... i've followed the wiki,
but unless im blind, it doesn't say how to do that



thanx

kaddy

Last edited by kaddy (2010-02-06 09:01:44)

Offline

#2 2010-02-04 21:55:59

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: Chroot Help SOLVED

Will simply su-ing into your regular user after the chroot not work for what you want to do? Other than that, my guess would be chroot and then the useradd/adduser command.

Last edited by jac (2010-02-04 21:56:38)

Offline

#3 2010-02-05 02:26:21

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

Re: Chroot Help SOLVED

tried all that.... nope....

the only way I can run chroot is with root, I don't know how to login to chroot with a normal user so i can compile in that environment.... arghhhhh
im stumped
and it doesn't mention how to do this in the wiki mad

Offline

#4 2010-02-05 02:32:04

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Chroot Help SOLVED

AFAIK, in your chroot environment you will need to create a new user because it knows nothing of what's outside of that environment.
It would be like su'ing to a user on a completely different system/network/whatever.


neutral

Offline

#5 2010-02-05 02:56:36

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

Re: Chroot Help SOLVED

well, all the settings from my normal environment are set for my 32 bit chroot environment..... they are hardlinked

Offline

#6 2010-02-05 10:06:22

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: Chroot Help SOLVED

Maybe I'm confused, you want to be able to compile things in the chroot as a normal user, but the problem is that you need to have root privileges to chroot in the first place? If that's the case, have you looked into schroot? I'm pretty sure that it doesn't need you to be root, but I don't know exactly how it works.

If you just need to get into a normal user in the chroot, su-ing afterwards will work. At least it does on my computer. I followed the Install Bundled 32bit System in Arch64 wiki page, which did you follow?

Offline

#7 2010-02-05 11:27:00

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Chroot Help SOLVED

kaddy wrote:

tried all that.... nope....

the only way I can run chroot is with root, I don't know how to login to chroot with a normal user so i can compile in that environment.... arghhhhh
im stumped
and it doesn't mention how to do this in the wiki mad

The suggestion was:
$ su
$ chroot /some/where
$ useradd <args> someone
$ su someone
$ cd
$ make / gcc / ...

Which step does not work for you?


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#8 2010-02-06 08:59:46

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

Re: Chroot Help SOLVED

i am such an idiot...
All I had to do was launch Chroot, then type in      su "username"  and it logs me in as that user and NOT root,
I never knew you could su a username...... im an idiot
im an idiot
im an idiot
IM AN IDIOT
IM AN IDIOTTTTTTTTTTT!!

Lol.... ahwell... problem solved
Thanx for the replies wink

Offline

Board footer

Powered by FluxBB