LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2004, 03:33 PM   #1
newbielinux
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Rep: Reputation: 0
rpmbuild as non root user


How can I do rpmbuild without being "root"

I am able to do
rpm -ivh -dbpath ~/RPMdb kernel-2.4.20-2.src.rpm

but when I tired rpmbuild as non-root user:

I got these errors:

error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /~/RPMdb


Pls help
 
Old 03-02-2004, 04:05 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
You can do the install because in the above example you are only using your home drive, to which you have full access.

Executing rpmbuild accesses files to which only root has access. You will need to su to root to do rpmbuild.
 
Old 03-02-2004, 04:23 PM   #3
newbielinux
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by XavierP
You can do the install because in the above example you are only using your home drive, to which you have full access.

Executing rpmbuild accesses files to which only root has access. You will need to su to root to do rpmbuild.

Thank you for your response....

My requirement is to do rpmbuild as non-root....I mean I am writing a script
which has rpmbuild as one of the step....and In this case any user should
run the script... (which results is rpmbuild as well..)

for install I did some changes in macros ...like redefined the topdirectory and
dbpath....so I am wondering if I can achieve rpmbuild as non-root after doing
some changes in macros again!!!!!!!!

Not sure if its possible at all...
 
Old 03-02-2004, 04:29 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I may have been mistaken - look here.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
Scanner to work as USER and not forced as ROOT Root (Suse 9.1) 1kyle Linux - Hardware 0 07-10-2004 08:51 AM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration