Solved

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

Posted on 2014-09-19
11
579 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
  • 4
  • 4
  • 3
11 Comments
 
LVL 15

Expert Comment

by:Haris Djulic
ID: 40332306
0
 
LVL 6

Assisted Solution

by:xeroxzerox
xeroxzerox earned 250 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
 
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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 250 total points
ID: 40332619
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't get /etc/resolv.conf to configure after reboot 8 73
Linux Scripting 3 102
LINUX CENTOS + APACHE 9 62
issue in getting eth0 IP in oracale virtual box Linux VM 4 42
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

920 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

11 Experts available now in Live!

Get 1:1 Help Now