Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Can I copy/paste users/groups to a 2nd Mac?

Can I copy/paste users/groups to a 2nd Mac?
Thread Tools
Fresh-Faced Recruit
Join Date: Feb 2003
Status: Offline
Reply With Quote
Oct 4, 2003, 07:51 AM
 
If we have set up shared access to a partition on a Mac for 3 users...by using Users to create the user accounts and NetInfo to create a new group for those users and allowing read/write on the partition for that group...

is there anything we can copy/paste to dupe those settings on another Mac in the network with a shared partition?

Or do we have to reinvent the wheel every time... create new users, create a new group.

thx
cap
     
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Oct 4, 2003, 08:58 AM
 
nidump/niload are your friends...

Open terminal,

On the first Mac :

nidump passwd . > passwd.txt
nidump group . > group.txt

Copy passwd.txt and group.txt files on the new Mac, open Terminal and :

sudo niload passwd . < passwd.txt
sudo niload group . < group.txt

For further information, see manual pages :

man nidump
man niload
man niutil

(the examples above assume that the files are created/copied in the users'home directory.)
     
captiva  (op)
Fresh-Faced Recruit
Join Date: Feb 2003
Status: Offline
Reply With Quote
Oct 4, 2003, 09:21 AM
 
thanks, I will take a look at the man pages.

When you say:

nidump passwd . > passwd.txt

...do you mean I should literally type in a period and a right chevron (.>)? Or is that a placeholder for something that Terminal does.

Terminal newbie here...

cap
     
Senior User
Join Date: Mar 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
Oct 4, 2003, 09:29 AM
 
I would add the path to your desktop so that you can find the files easy.

The user on my Mac is "create" so it would look like this,
nidump passwd . > /Users/create/Desktop/Upasswd.txt

Instead of this
nidump passwd . > passwd.txt
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Oct 4, 2003, 09:30 AM
 
A period and a chevron, yes.
[vash:~] banana% killall killall
Terminated
     
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Oct 4, 2003, 03:48 PM
 
Originally posted by captiva:


...do you mean I should literally type in a period and a right chevron (.>)?
Yes. You can copy/paste the lines as is.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:54 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2