|10-26-2013, 10:21 AM||#1|
Join Date: Oct 2013
copying file into user folder
I'm kinda newbie in all that relates to scripts and have just-above-basic level of knowledge when it comes to terminal.
I have a Mac Pro running 10.8.5 with OS X Server 2.2.1 which I have several things I wasn't able to find how to do.
All users' Home directory is on the server, so I have a direct access to them (no permission by default though).
I need to copy a specific preference file into all users' preferences directory.
Since I have several houndreds of users it will take forever to do so manually.
I've tried to find some way of using the terminal's 'cp' command to do so, but haven't got any luck.
Basically What I'm trying to do is to copy a file from '/Volumes/RAID/Admin/Library/Preferences/one-specific-file.plist' to '/Volumes/RAID/*****/Library/Preferences/' (*****- meaning to all directories in RAID partition)
Since I don't have permissions to each user's Home directory by defualt, I was thinkin that maybe running the 'cp' command with 'sudo' will resolve it.
But if not- I need a way to add full permissions to me to each directory and sub-directories in the drive, without changing the permissions that already set.
Meaning, that if I just set permissions on the volume itself, and then choose 'apply to enclosed itmes', it will overwrite all of the sub-folders permission, leaving the owner of the folders without any permissions to his Home folder.
And, after trying, giving 'Everyone' with full access still, for some-what-reason, not giving the owner full permissions, and giving weird error message in client's computer such as 'Not enough RAM' when trying to do basic things such as copying files etc. (eventhough all of the clients are with atleast 8GB of RAM).
I'm looking for a way that I can automatically log out all clients at a specific time in the day.
What happens that sometimes users doesn't log out at the end of the day, and the next morning another user can't log in because it asks for the password for the user that last used the computer.
Couldn't find any way to do the above.
Will really appreciate your help.
Thank you guys!!
|Display Modes||Rate This Thread|