List Info

Thread: Can I move /etc/passwd to new server?




Can I move /etc/passwd to new server?
user name
2006-04-27 15:21:45
  
I have to move my SAMBA PDC to new hardware.  SAMBA uses 
/etc/passwd along with its own user database.

Can I copy /etc/passwd from the old server to the new or 
do I have to create a new /etc/passwd matching the user 
info?  I believe I need to move /etc/group and /etc/shadow 
too.  Is there such a thing and a shadow group?

What about root on the new server?  Will it have problems 
if a new /etc/passwd is dropped in on it?

--Karl
-- 
gentoo-servergentoo.org mailing list

Can I move /etc/passwd to new server?
user name
2006-04-27 15:43:22
Hi Karl!

Just copy the relevant lines from /etc/passwd /etc/group
/etc/shadow and 
merge into the files on the new server.

You should be able to move relevant lines from 
/var/lib/samba/private/smbpasswd to.

/marcus

/Marcus Hallberg
Wimlet Consulting AB
Djurgårdsgatan 10
414 62 Göteborg
mobil: 0707-141716
e-post: marcuswimlet.se
hemsida: www.wimlet.se



Karl Zander wrote:

>  
> I have to move my SAMBA PDC to new hardware.  SAMBA
uses /etc/passwd 
> along with its own user database.
>
> Can I copy /etc/passwd from the old server to the new
or do I have to 
> create a new /etc/passwd matching the user info?  I
believe I need to 
> move /etc/group and /etc/shadow too.  Is there such a
thing and a 
> shadow group?
>
> What about root on the new server?  Will it have
problems if a new 
> /etc/passwd is dropped in on it?
>
> --Karl

-- 
gentoo-servergentoo.org mailing list

Can I move /etc/passwd to new server?
user name
2006-04-27 15:56:53
Thanks Marcus.

Ok, cutting and pasting /etc/passwd sounds easier for 
user/machine accounts.

I use tdbsam so I assume I move

/var/lib/samba/private/*.tdb  too.

What about .tdb files in

/var/cache/samba

There is bunuch of stuff like

account_policy.tdb
brlock.tdb
connections.tdb
etc.

Must it be moved or will it get recreated?

--Karl


On Thu, 27 Apr 2006 17:43:22 +0200
  Marcus Hallberg <marcuswimlet.se> wrote:
> Hi Karl!
> 
> Just copy the relevant lines from /etc/passwd
/etc/group 
>/etc/shadow and merge into the files on the new server.
> 
> You should be able to move relevant lines from 
>/var/lib/samba/private/smbpasswd to.
> 
> /marcus
> 
> /Marcus Hallberg
> Wimlet Consulting AB
> Djurgårdsgatan 10
> 414 62 Göteborg
> mobil: 0707-141716
> e-post: marcuswimlet.se
> hemsida: www.wimlet.se
> 
> 
> 
> Karl Zander wrote:
> 
>>  
>> I have to move my SAMBA PDC to new hardware.  SAMBA
uses 
>>/etc/passwd 
>> along with its own user database.
>>
>> Can I copy /etc/passwd from the old server to the
new or 
>>do I have to 
>> create a new /etc/passwd matching the user info?  I

>>believe I need to 
>> move /etc/group and /etc/shadow too.  Is there such
a 
>>thing and a 
>> shadow group?
>>
>> What about root on the new server?  Will it have 
>>problems if a new 
>> /etc/passwd is dropped in on it?
>>
>> --Karl
> 
> -- 
> gentoo-servergentoo.org mailing list
> 

  
-- 
gentoo-servergentoo.org mailing list

Can I move /etc/passwd to new server?
user name
2006-04-27 16:12:39
I have no idea, I have never used tdbsam...  I guess there
is no harm in 
trying 

/marcus

/Marcus Hallberg
Wimlet Consulting AB
Djurgårdsgatan 10
414 62 Göteborg
mobil: 0707-141716
e-post: marcuswimlet.se
hemsida: www.wimlet.se



Karl Zander wrote:

> Thanks Marcus.
>
> Ok, cutting and pasting /etc/passwd sounds easier for
user/machine 
> accounts.
>
> I use tdbsam so I assume I move
>
> /var/lib/samba/private/*.tdb  too.
>
> What about .tdb files in
>
> /var/cache/samba
>
> There is bunuch of stuff like
>
> account_policy.tdb
> brlock.tdb
> connections.tdb
> etc.
>
> Must it be moved or will it get recreated?
>
> --Karl
>
>
> On Thu, 27 Apr 2006 17:43:22 +0200
>  Marcus Hallberg <marcuswimlet.se> wrote:
>
>> Hi Karl!
>>
>> Just copy the relevant lines from /etc/passwd
/etc/group /etc/shadow 
>> and merge into the files on the new server.
>>
>> You should be able to move relevant lines from 
>> /var/lib/samba/private/smbpasswd to.
>>
>> /marcus
>>
>> /Marcus Hallberg
>> Wimlet Consulting AB
>> Djurgårdsgatan 10
>> 414 62 Göteborg
>> mobil: 0707-141716
>> e-post: marcuswimlet.se
>> hemsida: www.wimlet.se
>>
>>
>>
>> Karl Zander wrote:
>>
>>>  
>>> I have to move my SAMBA PDC to new hardware. 
SAMBA uses /etc/passwd 
>>> along with its own user database.
>>>
>>> Can I copy /etc/passwd from the old server to
the new or do I have 
>>> to create a new /etc/passwd matching the user
info?  I believe I 
>>> need to move /etc/group and /etc/shadow too. 
Is there such a thing 
>>> and a shadow group?
>>>
>>> What about root on the new server?  Will it
have problems if a new 
>>> /etc/passwd is dropped in on it?
>>>
>>> --Karl
>>
>>
>> -- 
>> gentoo-servergentoo.org mailing list
>>
>
>  

-- 
gentoo-servergentoo.org mailing list

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )