LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-20-2006, 06:04 PM   #1
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Rep: Reputation: 31
copy passwd, group and shadows, ...


HI,

I wanna to migrat my linux to the new server(with same distro of linux installed) and i try to copy over the passwd, group, gshadow and shadow files. But when i login as for as new root I got message saying my $home/.dmn file is in correct and ask me to use failsafe session. Besides, it also complain about file should be owned by user and have 644 permission.


How do i correctly copy over these file so i don't have maunally create all user account? Besdies, is anyfile i can copy over for samba user ?


thx in advance
 
Old 02-20-2006, 06:13 PM   #2
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
What is the Linux distro you're using? I use Fedora and so don't know what a $home/.dmn file is, but, are you tarring those files to copy them or just using the 'cp' command? It would probably be best to copy them over using 'dd' or tar them and copy them over to the /etc and /etc/shadow directories and then make backups of the files you're going to replace, then untar you tar files. You could try renameing $home/.dmn to something like $home/.dmnold and see if the system will create a new $home/.dmn file.
 
Old 02-20-2006, 08:25 PM   #3
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Original Poster
Rep: Reputation: 31
sorry forgot to inc more info.

The distro is ubuntu 5.07 and i use ftp to copy over the passwd and group file. For shadow and gshadow i simply rename the copy and ftp over.


Also u just found that there isn't any error message when using ssh login.
ps: I already restart computer once.
 
Old 02-21-2006, 12:48 PM   #4
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
Have you tried my suggestion of renaming $home/.dmn, or maybe try a different delivery method, like scp. As I said, I'm not an Ubuntu user and don't know what the .dmn file is.
 
  


Reply


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
No shadows for Superkaramba themes while using translucency/shadows in KDE? lasindi Linux - Software 1 03-05-2006 10:19 PM
/etc/passwd, /etc/shadow, /etc/group? Educate me :)! nutnut Linux - General 4 06-11-2005 08:47 PM
restoring passwd/group files jhaiduce Fedora 1 10-20-2004 11:05 AM
Trouble after copy shadow, group and passwd to ltsp server tapanga Linux - General 1 04-19-2004 01:59 PM
passwd group, what else do I need? khutze Linux - Software 0 02-13-2003 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration