How do you change topdir as a user in SSH?
Posted
by JM4
on Server Fault
See other posts from Server Fault
or by JM4
Published on 2010-05-25T23:06:39Z
Indexed on
2010/05/25
23:11 UTC
Read the original article
Hit count: 281
I have read several places NEVER to build RPM's as the root user. As such, I defined a new user and have tried building out RPM structures there, however, using the
rpmbuild --rebuild src.name.rpm
returns an error which states the topdir cannot be accessed:
Installing curl-7.20.1-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: curl-7.20.1-1.src.rpm cannot be installed
does anybody know how to make this change? I have a correct /src/ directory set up under the new user.
© Server Fault or respective owner