Jump to content

Mac home area permissions!


Recommended Posts

Posted

Ok, so after a broken raid on an OSX server 5.6.8 and a long time getting things running again, I need to fix home area permissions.

 

I have approx. 1500 to do so really want to automate this.

 

What I need to do is script this, unless there is a better way?

 

What I need is a Mac version of this:

for /D %%i in (*) do ( subinacl /file %%i /grant=yourdomain\%%i=C "/grant=yourdomain\domain admins=f" /grant=yourdomain\AreaViewer=c /setowner=yourdomain\%%i 

subinacl /subdirectories %%i\* /grant=yourdomain\%%i=f "/grant=yourdomain\domain admins=f" /grant=yourdomain\AreaViewer=r /setowner=yourdomain\%%i )

 

Basically username = foldername

I want this to recurse downthrough their folders and files.

 

Any help would be appreciated, :)

 

BoX

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...