image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old February 23rd, 2004, 12:38 PM
NovaScotian's Avatar
Registered User
 
Join Date: May 2003
Location: Halifax, Nova Scotia
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
NovaScotian is on a distinguished road
Changing Account Name?

I have stupidly used the same account name on two OS X machines (one Jaguar the other Panther), and obviously that leads to confusion when connecting from one to the other.

Is there a way to change the name and shortname of either from the terminal? It's not possible from the Accounts Preference Pane - both are dimmed.
Reply With Quote
  #2  
Old February 23rd, 2004, 01:53 PM
Registered User
 
Join Date: May 2003
Location: Mexico
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
leinad256 is on a distinguished road
why dont you create a new account and delete the other one?
Reply With Quote
  #3  
Old February 23rd, 2004, 01:57 PM
brianleahy's Avatar
Colonel Panic
 
Join Date: Sep 2000
Location: Northern Ohio
Posts: 1,579
Thanks: 0
Thanked 0 Times in 0 Posts
brianleahy is on a distinguished road
Quote:
why dont you create a new account and delete the other one?
My thoughts exactly, I recently had to do this on several machines. When deleting an account you can even have it archive the deleted users' home folder, which you can then later extract into the home folder of the new user you created to replace it.
__________________
OS X 10.4
G5 Dual 2GHZ / 160GB / 1GB RAM / Superdrive
Apple 20" Cinema Display
SmartDrive 120GB Firewire HD
Maxtor 250GB SATA


Visit my wife's eBay store !!

http://stores.ebay.com/Catchy-Creations-by-brendaonline

Now pining for a MacBook Pro...
Reply With Quote
  #4  
Old February 23rd, 2004, 02:23 PM
NovaScotian's Avatar
Registered User
 
Join Date: May 2003
Location: Halifax, Nova Scotia
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
NovaScotian is on a distinguished road
I didn't simply delete the account and create another because I wasn't sure how to move all the old user's files to the new account, get permissions all up to snuff, have all the applications remain accessible, keep Apache, PHP, and MySQL functioning properly, and have SSH work without having to frig around with the key. Clearly OS X's protections confuse me no end.

If creating a new user and deleting the old one is the only option, I'll leave things as they are. Thanks anyway.
Reply With Quote
  #5  
Old February 23rd, 2004, 02:25 PM
Registered User
 
Join Date: May 2003
Location: Mexico
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
leinad256 is on a distinguished road
you can change the computer name too, in the preferences panel
Reply With Quote
  #6  
Old February 23rd, 2004, 02:27 PM
brianleahy's Avatar
Colonel Panic
 
Join Date: Sep 2000
Location: Northern Ohio
Posts: 1,579
Thanks: 0
Thanked 0 Times in 0 Posts
brianleahy is on a distinguished road
If you're afraid of deleting the old user, it *IS* possible to copy the files from one user to another BEFORE deleting the old user - via terminal. I think you'd do it this way:

sudo cp -R /Users/oldUser/* /Users/newUser/*

Anyone see a flaw in this?
__________________
OS X 10.4
G5 Dual 2GHZ / 160GB / 1GB RAM / Superdrive
Apple 20" Cinema Display
SmartDrive 120GB Firewire HD
Maxtor 250GB SATA


Visit my wife's eBay store !!

http://stores.ebay.com/Catchy-Creations-by-brendaonline

Now pining for a MacBook Pro...
Reply With Quote
  #7  
Old February 23rd, 2004, 04:05 PM
Registered User
 
Join Date: Aug 2003
Location: AUSTRALIA
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
dagaz is on a distinguished road
Quote:
Originally Posted by brianleahy
If you're afraid of deleting the old user, it *IS* possible to copy the files from one user to another BEFORE deleting the old user - via terminal. I think you'd do it this way:

sudo cp -R /Users/oldUser/* /Users/newUser/*

Anyone see a flaw in this?
The main flaw is that cp doesn't copy resource forks. I would use sudo ditto -rsrc /Users/olduser/ /Users/newuser/ the other advantage of ditto is that it automatically copies directories.

EDIT: the above code should be written across a single line with a single space after ditto, -rsrc, olduser/

BUT, getting back to the original question, I have the same account on my computer and my girlfriend's computer, which makes it a lot easier to connect together (admittedly we're both running 10.3 but I don't think that should be an issue), we even have exactly the same account names and passwords on each others computer and this works really well for us (I connect to her computer to print).
__________________
Not compatible with Windows.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:16 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.