?
Solved

Linux - Set folder & File permission inheritance on sub-folders and files

Posted on 2014-09-19
11
Medium Priority
?
622 Views
Last Modified: 2014-09-30
We are a Linux file server.
I have created a new folder and get a group ownership to that folder. I have given the specific user access to that group.
When a use creates a file or folder it make it read only for all other users.
How can I set it so that any file and sub folder will still retain the same permissions as the parent folder?
I will then also need to run a command that will change all permissions on the all curenly folders already created.
0
Comment
Question by:bax2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 3
11 Comments
 
LVL 15

Expert Comment

by:Haris Djulic
ID: 40332306
0
 
LVL 6

Assisted Solution

by:xeroxzerox
xeroxzerox earned 750 total points
ID: 40332358
Hi,

you should use chmod command for set permission on sub-folders and files....for example

chmod -R 770 foldername
(-R is use for recursive )

and
(for set default permission)
Now, use the following command to set the default ACL:
#setfacl -dm u::rwx,g::rwx,o::r /directoryname
0
 

Author Comment

by:bax2000
ID: 40332372
Hi xeroxzerox

What is the full path for the setfacl command as I get the following when trying to run it.
-bash: setfacl: command not found
0
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
LVL 6

Expert Comment

by:xeroxzerox
ID: 40332378
Full path of setfacl
/usr/bin/setfacl

If you want any full path of command then just run below command.
#whereis setfacl
if it installed then it gives you full path....
0
 

Author Comment

by:bax2000
ID: 40332387
Seems as though setfacl is not installed on the server we have.
Any alternative?
0
 
LVL 15

Expert Comment

by:Haris Djulic
ID: 40332396
which server it is? it will help with the solutions
0
 
LVL 6

Expert Comment

by:xeroxzerox
ID: 40332397
Which Linux Distribution You Are Using?
0
 

Author Comment

by:bax2000
ID: 40332411
Running   openSUSE 12.2
0
 
LVL 15

Expert Comment

by:Haris Djulic
ID: 40332523
0
 

Author Comment

by:bax2000
ID: 40332556
Where can I download it from?
0
 
LVL 15

Accepted Solution

by:
Haris Djulic earned 750 total points
ID: 40332619
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses
Course of the Month14 days, 21 hours left to enroll

770 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