Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/email@hidden

This email sent to email@hidden

References: 
 >Re: Teachers getting married (From: Josh Wisenbaker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.