nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

rpmbuild permission issue with courier-imap

This is a discussion on rpmbuild permission issue with courier-imap within the Mail Servers forums, part of the Mastering Servers category; trying to create a rpm to install courier-imap. It goes through the process of creating the rpm but at the ...


Go Back   nixCraft Linux Forum > Mastering Servers > Mail Servers

Linux answers from nixCraft.


Mail Servers Discussion on Postfix/Sendmail Mail servers and related program such as IMAP/POP3, Anti-Spam technologies.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-12-2009, 11:51 PM
Junior Member
User
 
Join Date: Dec 2009
OS: Fedora
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sensai is on a distinguished road
Question rpmbuild permission issue with courier-imap

trying to create a rpm to install courier-imap. It goes through the process of creating the rpm but at the very end I receive the following error message :

error: Could not open /home/blah/rpm/RPMS/i586/courier-imap-4.6.0-1.11.i586.rpm: Permission denied

Now as per instructions I am running this command without using sudo. I was able to build and install rpm's for Maildrop and courier-authlib just fine with no issues. Anyone have any suggestiosn for a solution?

This is being install on Fedora Core 11 btw.
Reply With Quote
  #2 (permalink)  
Old 24-12-2009, 12:24 AM
Junior Member
User
 
Join Date: Dec 2009
OS: Fedora
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sensai is on a distinguished road
Default

Found solution to my issue please close. Thanks
Reply With Quote
  #3 (permalink)  
Old 24-12-2009, 08:58 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Can you post your solution so that others can use it later on?
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #4 (permalink)  
Old 25-12-2009, 06:40 AM
Junior Member
User
 
Join Date: Dec 2009
OS: Fedora
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sensai is on a distinguished road
Default

Quote:
Originally Posted by nixcraft View Post
Can you post your solution so that others can use it later on?

Sure, what happened was that the directory was owned by root, so I had to change the owner of the folder from root to the regular user since you cannot build the rpm using the sudo command.

Change owner of the folder:


sudo chown username /home/username/path to where the rpm build will be located (/home/username/rpm/RPMS/I586) * please not this is where my directory where my output rpmbuild are, and its i586 not i386 yours could be different*

after that then go to the directory where you have the downloads in and run rpmbuild again *without using root or sudo command or it will fail*

*command to build the rpm*
rpmbuild -ta courier-imap-4.6.0.tar.bz2

If there are any other questions please let me know..

Last edited by sensai; 25-12-2009 at 06:43 AM.
Reply With Quote
  #5 (permalink)  
Old 28-12-2009, 09:12 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

thanks for posting the solution!
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Lgin error in courier imap ravindert Mail Servers 1 18-02-2010 06:05 AM
Imap Port sweta CentOS / RHEL / Fedora 0 02-05-2008 11:34 PM
imap errors / server slow down seed2be Mail Servers 0 06-03-2008 09:36 PM
RHEL5 + IMAP server vaibhav.kanchan Getting started tutorials 2 25-09-2007 06:50 PM
Problems with squirrelmail and imap rcordeiro Linux software 7 20-11-2006 06:37 PM


All times are GMT +5.5. The time now is 05:19 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38