LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-19-2012, 01:06 PM   #1
aafc
LQ Newbie
 
Registered: Sep 2012
Posts: 5

Rep: Reputation: Disabled
What is the standard practice for %defattr in spec files when packaging RPMS?


I am packaging a bunch of software using RPM.

Is it a good idea to specifically use '755' (which are the permissions I want for my software on my system) as opposed to '-' in the %defattr section of the spec files?

I am asking because I had '-', but I got 700 for some of my installed packages as opposed to the 755 I was expecting. Thus, I am under the impression that explicitly stating the permission is more reliable. What do you think ?
 
Old 09-20-2012, 06:18 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I'm wondering if it has to do with your umask at the time of building?
Mine's set to 027 and I have never had permission problems after building RPMs.
I only set perms if I need something specific.
 
Old 09-20-2012, 10:18 AM   #3
aafc
LQ Newbie
 
Registered: Sep 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
That seems to make the most sense. I guess the question now becomes: "How does RPM use the umask to determine the default permission when using '-' for %defattr, and when does this get applied".

I'm going to try to test this myself. If someone already has the answer that would be great.
 
  


Reply

Tags
permissions, rpm



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
LXer: OAuth 2.0 standard editor quits, takes name off spec LXer Syndicated Linux News 0 07-28-2012 05:42 AM
LFS RPM SPEC files: Binutils RPM spec for x86 arch nocountryman Linux From Scratch 2 10-25-2010 09:09 AM
create RPMs : problem with spec file 80n Red Hat 0 03-01-2006 02:54 AM
where to get a recent spec file to build rpms for kde3.1.4? mmodem Mandriva 0 11-15-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 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