LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copy passwd, group and shadows, ... (https://www.linuxquestions.org/questions/linux-newbie-8/copy-passwd-group-and-shadows-417714/)

taiwf 02-20-2006 05:04 PM

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

d3funct 02-20-2006 05:13 PM

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.

taiwf 02-20-2006 07:25 PM

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.

d3funct 02-21-2006 11:48 AM

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.


All times are GMT -5. The time now is 03:59 AM.