Setfacl recursively on a directory

Soldato
Joined
18 May 2010
Posts
22,983
Location
London
Trying to get my head round linux and have run in to a very simple problem.

Basically I have a directory called Loans, within loans I have files.

I want to give one user read, write access to the files within Loans, recursivley.

I know how to give a user rwx access on a single folder or file, but with in loans are lots of files and most of them havent been created by the user, whoch means I would have to manually setfacl on each individual file.

Hope that makes sense.
 
Hi there,

Could anyone help me with some basic Linux commands, please? Is there any command to change the owner of ALL FILES and SUB-DIRECTORIES?

I know I can run chown newusername.newgroup and owner will be changed for all files under specified directory, but I need to change owner of sub-directories as well. Please do not offer me to do it manually, there are over 1000 sub-directories
 
Hi there,

Could anyone help me with some basic Linux commands, please? Is there any command to change the owner of ALL FILES and SUB-DIRECTORIES?

I know I can run chown newusername.newgroup and owner will be changed for all files under specified directory, but I need to change owner of sub-directories as well. Please do not offer me to do it manually, there are over 1000 sub-directories

chown -R user:group my_directory_name
 
Back
Top Bottom