Samba server backup for CentOS 5

Taking care of your Linux box.
Post Reply
alitoday
Naik
Posts: 62
Joined: Fri Nov 05, 2004 3:01 pm

Samba server backup for CentOS 5

Post by alitoday »

I have re-installed our operating system (CentOS 5) ,what is the
best way to restore our Samba server? Can it be as simple as
copying the smb.config and smbpasswd files back into the
/etc/samba directory? That's what I am hoping. If I just copy
the smb.config and the smbpasswd files back to the samba
directory will the machine trusts, users and passwords just
work? If not, what is the proper procedure for restoring.
Ali
"Yes we can!"
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

your /etc/passwd, /etc/shadow, and /etc/group files should be in sync with your samba passwds. also, you need to restore the the secrets file (secrets.tdb, i think).

shouldn't you have asked that before the reinstall? in general, backup /etc to some other system nightly. the "etckeeper" application can help with that.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
alitoday
Naik
Posts: 62
Joined: Fri Nov 05, 2004 3:01 pm

samba on CentOS 5.3

Post by alitoday »

Actually i want to make CentOS 5.3 as my Domain Controller, I want to test all Scenario in case of any disaster of DC before putting it into production environment. I have some queries as:

1. Is CentOS 5 is more stable than RHEL 5 etc.
2. How can i take back up of entire samba server if need it in case of any disaster. How can i restore it.
3. How can i use logon scripts like GPO in windows servers.
4. How can add users in samba server and linux at one time with one command.
5. Please tell me any Web based samba administration tool other than SWAT.
6. Last one, any good book of samba server administration

regards
Ali
"Yes we can!"
nomankhn
Colonel
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Re: samba on CentOS 5.3

Post by nomankhn »

alitoday wrote:Actually i want to make CentOS 5.3 as my Domain Controller, I want to test all Scenario in case of any disaster of DC before putting it into production environment. I have some queries as:

1. Is CentOS 5 is more stable than RHEL 5 etc.

regards
lol

you are working on linux and you are not aware what CENTOS IS???????

ref -> http://en.wikipedia.org/wiki/CentOS

Thanks,
Noman
Post Reply