LinuxQuestions.org
Help answer threads with 0 replies.
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 07-17-2017, 10:17 AM   #1
RoyalSoldier
LQ Newbie
 
Registered: Jan 2016
Posts: 6

Rep: Reputation: 0
When using make install, installed files end up with wrong permissions


I have a machine running CentOS 7 in which when I install a program from source, the resulting permissions on the installed files are wrong, causing issues for non-root users.

Example (from problem machine):

Code:
drwx--x--x 3 root root     42 Jul 17 09:15 bin
drwx--x--x 2 root root   4096 Jul 17 09:15 boot
-rw-r--r-- 1 root root 171990 Jul 17 09:15 boot64.prc
drwx--x--x 2 root root     63 Jul 17 09:15 customize
drwx--x--x 2 root root     34 Jul 17 09:15 demo
drwx--x--x 3 root root     19 Jul 17 09:15 doc
drwx--x--x 4 root root     68 Jul 17 09:15 include
drwx--x--x 3 root root     25 Jul 17 09:15 lib
drwx--x--x 6 root root   4096 Jul 17 09:15 library
-rw------- 1 root root      2 Jul 17 09:15 swipl.home

Install with correct permissions (from a freshly installed CentOS 7 VM)

Code:
drwxr-xr-x. 3 root root   4096 Jul 17 10:10 bin
drwxr-xr-x. 2 root root   4096 Jul 17 10:10 boot
-rw-r--r--. 1 root root 172396 Jul 17 10:10 boot64.prc
drwxr-xr-x. 2 root root   4096 Jul 17 10:10 customize
drwxr-xr-x. 2 root root   4096 Jul 17 10:10 demo
drwxr-xr-x. 3 root root   4096 Jul 17 10:10 doc
drwxr-xr-x. 4 root root   4096 Jul 17 10:10 include
drwxr-xr-x. 3 root root   4096 Jul 17 10:10 lib
drwxr-xr-x. 6 root root   4096 Jul 17 10:10 library
-rw-r--r--. 1 root root      2 Jul 17 10:10 swipl.home

Does anyone know why this is happening and/or how to fix it?

Thanks
 
Old 07-17-2017, 10:38 AM   #2
RoyalSoldier
LQ Newbie
 
Registered: Jan 2016
Posts: 6

Original Poster
Rep: Reputation: 0
it's the umask

the problem was the umask. Changed it to 0022 and everything is working fine now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Files/folders getting wrong permissions even though they're foced through samba anon091 Linux - Server 4 12-30-2013 08:18 AM
How to check a program that was installed via configure, make and make install linuxandtsm Linux - Newbie 1 04-06-2012 02:41 PM
make uses wrong prefix searching for .la files CyrilAS Linux - Software 3 07-22-2010 05:39 AM
What happens if files are extracted and installed in wrong directory? gogoskiracer Linux - Newbie 4 02-03-2009 12:03 PM
Files and group permissions where am i going wrong in life! fedora_user Linux - Newbie 5 04-04-2008 05:26 AM

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

All times are GMT -5. The time now is 06:21 AM.

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