On Sun, 2004-04-25 at 00:26, Tom 'Needs A Hat' Mitchell wrote: > On Sat, Apr 24, 2004 at 06:38:11PM -0400, Jwp wrote: > ... > > > > Should this be done as Root or a Regular user? > ... > > > Better rpmbuild as an unprivileged user. See i.e. > > > http://freshrpms.net/docs/fight/ > ... > > > > Thanks Alexander, > > But it begs the question, why is it that /usr/src/redhat/* are all owned by > > root? When building from an SRPM as an unprivileged user I do not have the > > needed permissions to write to these locations. > > > > In the meantime I have made /usr/src/redhat/* world writeable and I am > > building as a normal user. > > In general source code should be managed by the system administrator. Better for source code to be managed by the builder, whether or not he is system administrator. Create a file called ~/.rpmmacros In that file have the following content: ---------------------------------------------- %_topdir %(/bin/echo $HOME)/rpm %_tmppath %{_topdir}/tmp ---------------------------------------------- Then - recreate the /usr/src/redhat directory structure inside ~/rpm -- Cheap Linux CD's - http://mpeters.us/linux/