LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-15-2010, 05:56 AM   #1
carlosOFF
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Rep: Reputation: 0
Copy users


It's possible to copy the users to one computer to another?

I've tried to copy the /etc/passwd , /etc/shadow and /etc/groups but when arrives in the login screen it's like it can't open the screen and try again and again...

thank's
Carlos
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-15-2010, 06:02 AM   #2
Barry1
LQ Newbie
 
Registered: Dec 2010
Location: Germany
Distribution: Debian GNU/Linux, Fedora Project and OpenSUSE LINUX
Posts: 22

Rep: Reputation: 1
Lightbulb

Hi carlosOFF,

I think, your copies are fine - but you also should copy their home-dirs...
After that, if should work.

Greets and good luck

Barry1
 
Old 12-15-2010, 06:16 AM   #3
carlosOFF
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Original Poster
Rep: Reputation: 0
I forget to say that, i had copy they /home
 
Old 12-15-2010, 06:29 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,496

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
You need to use the -p option, in order to preserve the permissions.
However, you could tar the /home directory, and then untar it at the destination computer.

Kind regards

Last edited by repo; 12-15-2010 at 06:33 AM.
 
2 members found this post helpful.
Old 12-16-2010, 06:46 AM   #5
carlosOFF
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Original Poster
Rep: Reputation: 0
So I can copy the files /etc/passwd , /etc/shadow and /etc/group and /etc/passwd- , /etc/shadow- and /etc/group-
and the home directorys?
the -p? is when I copy the passwd... ?

I have one question, how, it will mantain the permission if in the new computer the isn't the users?
 
Old 12-16-2010, 08:54 AM   #6
Barry1
LQ Newbie
 
Registered: Dec 2010
Location: Germany
Distribution: Debian GNU/Linux, Fedora Project and OpenSUSE LINUX
Posts: 22

Rep: Reputation: 1
Exclamation

Quote:
Originally Posted by carlosOFF View Post
the -p? is when I copy the passwd... ?
No - the "-p" is especially for the /home-dir.
Greets

Barry1
 
  


Reply

Tags
user


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
script to copy configuration folder to all users irishbitte Ubuntu 3 11-12-2008 06:02 AM
different users can all access file system and copy/paste? mhg Linux - Newbie 3 10-28-2008 09:40 PM
securing an executable some users may USE it, but not COPY it. Rocket_Sci Linux - Security 4 04-17-2007 02:30 PM
copy users to second PC deweirdt Linux - Software 4 02-06-2004 07:36 AM
How to copy one file in all users directories aizkorri Programming 1 09-02-2002 07:32 AM


All times are GMT -5. The time now is 02:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration