If you use XPrivileges, which is a nice tool that comes with Passenger...you
can set the ownership recursively to all users in a directory...so after you
create a new user, just change her home directory to the new name and run. I
run it pretty often as rights seem to get messed up on a regular basis.
-----Original Message-----
From: Kevin Halpin [mailto:email@hidden]
Sent: Monday, April 04, 2005 12:07 PM
To: Josh Wisenbaker; Laurie Yalem
Cc: client-management
Subject: Re: Teachers getting married
On 4/4/05 11:46 AM, "Josh Wisenbaker" <email@hidden> wrote
>
> On Apr 4, 2005, at 3:30 PM, Laurie Yalem wrote:
>
>> Kevin Halpin <email@hidden> on Monday, April 4, 2005 at
>> 11:30 AM +0000 wrote:
>>
>>>>> Create the new "correct" user in wgm and point the home folder the
>>>>>
>>> correct
>>>
>>>>> location.
>>>>> Delete the contents of the /new/ folder
>>>>> rm -r /path/to/newTeacherFolder/*
>>>>>
>>>>> ditto the contents of the old folder into the new one ditto -rsrc
>>>>> /path/to/oldTeacherFolder/ /path/to/newTeacherFolder/
>>>>>
>>>>> Correct privs
>>>>> chown -R teacherName teacherFolder
>>>>>
>>>>>
>>>> OK, I'm not a terminal person at all, so my question here is, how
>>>> are these commands any different from creating a new user, deleting
>>>> all the
>>>> folders in the new home, copying the old folders into this new
>>>> one and
>>>> setting the correct privileges? Thanks for your help.
>>>>
>>>
>>> Laurie,
>>>
>>> first and foremost you don't need to log into the rig as root.
>>> Second changing permissions in the Finder is flakey (even Apple
>>> recommends you use
>>> chown, see kbase artnum 106824 for something similar). Besides
>>> that they
>>> perform the same functions.
>>>
>>
>> OK- since I'm not all that comfortable in terminal, let me ask you
>> some quesitons.
>>
>> After I do rm -r, can I then drag the new teacher folder to the
>> terminal window instead of typing in the path? Also, is that a
>> space after the rm?
you can man rm for a ton of info. Specifically you can drag folders and
there is a space.
>>
>>> rm -r /path/to/newTeacherFolder/*
>>>
>>
>> Again, after I type ditto -rsrc, can I drag and drop the old folder
>> and new folders? If so, would there be a / between them?
Yes you need a space.
>>
>>> ditto -rsrc /path/to/oldTeacherFolder/ /path/to/newTeacherFolder/
>>>
>>
>> Give me a little more info on the chown -R. Exactly how do I do
>> that, I know how to change the privelegs manually, but I would want
>> to make sure
>> that I get them correct for each folder. Thanks for your help. I
>> need
>> terminal directions to be pretty literal, or else I'm afraid I'll
>> screw it
>> up!
man chown. chown -R userName userFolder is saying recursively change
ownership of userFolder to userName
>>
>> :) Laurie
>>
>
>
> Hmmmm... how about just change the names on the user account and
> update the home folder and group memberships to match?
>
> (Page 117 of the OD Admin guide for shortname changes.)
>
> Or at worst, create a new user then rename and chown the existing home
> to match.
>
Just a personal pref. I'm more comfortable in the terminal than using the
Inspector.
Good idea, Josh.
Create the new user name and don't click create home now.
mv unmarriedFolder marriedFolder
then chown.
Kevin
mac-fusion
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/hpostman%40capousd.
org
This email sent to email@hidden
This communication and any documents, files, or previous e-mail messages
attached to it constitute an electronic communication within the scope of
the Electronic Communication Privacy Act, 18 USCA 2510. This communication
may contain non-public, confidential, or legally privileged information
intended for the sole use of the designated recipient(s). The unlawful
interception, use or disclosure of such information is strictly prohibited
under 18 USCA 2511 and any applicable laws.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden
This email sent to email@hidden