Solved

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

Posted on 2014-09-19
11
571 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
Comment Utility
0
 
LVL 6

Assisted Solution

by:xeroxzerox
xeroxzerox earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Seems as though setfacl is not installed on the server we have.
Any alternative?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 15

Expert Comment

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

Expert Comment

by:xeroxzerox
Comment Utility
Which Linux Distribution You Are Using?
0
 

Author Comment

by:bax2000
Comment Utility
Running   openSUSE 12.2
0
 
LVL 15

Expert Comment

by:Haris Djulic
Comment Utility
0
 

Author Comment

by:bax2000
Comment Utility
Where can I download it from?
0
 
LVL 15

Accepted Solution

by:
Haris Djulic earned 250 total points
Comment Utility
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

771 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

10 Experts available now in Live!

Get 1:1 Help Now