You are not logged in.
Pages: 1
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
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
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
Offline
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.
Offline
well, all the settings from my normal environment are set for my 32 bit chroot environment..... they are hardlinked
Offline
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
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
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
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
Offline
Pages: 1