Solved

automake change permissions

Posted on 2004-03-30
4
242 Views
Last Modified: 2012-06-27
How can I set the permissions of the files that get installed with
make install ?

basically, there are two files that get installed that I want to chmod to 700 instead of the default 755.  Is there a change I can make to the Makefile.am file which does this?
0
Comment
Question by:lwinkenb
  • 2
4 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10711545
Hi lwinkenb,

I think you should be able to control it using your umask setting

umask [-p] [-S] [mode]
The user file-creation mask is set to mode. If mode begins with a digit, it is interpreted as an octal number; otherwise it is interpreted as a symbolic mode mask similar to that accepted by chmod(1). If mode is omitted, the current value of the mask is printed. The -S option causes the mask to be printed in symbolic form; the default output is an octal number. If the -p option is supplied, and mode is omitted, the output is in a form that may be reused as input. The return status is 0 if the mode was successfully changed or if no mode argument was supplied, and false otherwise.

umask 077 should help

Sunnycoder
0
 
LVL 5

Expert Comment

by:g0rath
ID: 10713845
Modify you Makefile.in that creates the Makefile.am file...

change this line...

INSTALL_PROGRAM = @INSTALL_PROGRAM@

to

INSTALL_PROGRAM = @INSTALL_PROGRAM@ -m 700
0
 
LVL 5

Accepted Solution

by:
g0rath earned 500 total points
ID: 10713881
of course that makes everything...if you want seperate modes for each type then you would modify the other sections


install-exec-local: install-local-stuff

     $(INSTALL) -m 700 $(yourprogs_whatever)

install-data-local:
   
    $(INSTALL)  -m 644 doc/whatever or whatever else
0
 
LVL 5

Author Comment

by:lwinkenb
ID: 11002325
sorry for the late accept.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now