How do I get back to the original RedHat 9 smb.conf?

Felecha

Golden Member
Sep 24, 2000
1,434
0
0
I kept a copy of the smb.conf that I had used to connect to a linux box we built and shipped out to a customer some time ago. We just put together an old clunker here and installed the identical RedHat 9 on it and when I went to put the saved smb.conf in I neglected to save the old one, I just overwrote it.

Not to get into big detail here, I'm just wondering if there's anywhere I can go to get a copy of the original smb.conf that is in RedHat 9. I looked at RedHat and couldnt find it yet. I thought I might just reinstall, so to speak, so I tried the Add or Remove Packages and couldnt figure it out.

???

I really don't know linux very well, I'm afraid
 

TonyRic

Golden Member
Nov 4, 1999
1,972
0
71
if you reinstall the samba-common package, then you will get the orig file with a different file extension on it.
 

Felecha

Golden Member
Sep 24, 2000
1,434
0
0
How do I do a reinstall? I'm very unfamiliar with the Add or Remove thing. I couldn't figure out how to select it and click to reinstall. As long as I left it checked, it seemed to think, well, ok, it's already installed. If I unchecked it and clicked Update, thinking that would remove it and then I could reinstall, it objected that Samba was not installed (???)
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Felecha
How do I do a reinstall? I'm very unfamiliar with the Add or Remove thing. I couldn't figure out how to select it and click to reinstall. As long as I left it checked, it seemed to think, well, ok, it's already installed. If I unchecked it and clicked Update, thinking that would remove it and then I could reinstall, it objected that Samba was not installed (???)

man rpm
 

Felecha

Golden Member
Sep 24, 2000
1,434
0
0
OK, reading man.

So it's a command line instead of the GUI. I expect I would run

rpm -U PACKAGE-FILE

Where do I find out PACKAGE-FILE?

 

Felecha

Golden Member
Sep 24, 2000
1,434
0
0
Sorry, didn't read enough I guess

I did rpm -q -a|grep samba and got 4 items

samba-common-2.2.7a-7.9.0
samba-client-2.2.7a-7.9.0
samba-2.2.7a-7.9.0
redhat-config-samba-1.0.4-1

which?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Maybe redhat-config. I think there is an rpm flag to use to find out what's in a package. Try it out.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Ya.. Look online at Redhat.com for their user manuals. They should mention about managing rpms.

As a alternative to re-installing samba (reinstalling it may be simplier) if you have the redhat rpm for your package you can extract files from it.

A example on how to do it is at http://www.ideaspace.net/users/wkearney/archives/entries/000378.html

But there are others.

It's a handy thing. For instance just recently I broke my wacom tablet drivers by trying to install a updated module with more features enabled. It over wrote my original wacom.ko kernel module, so I still had my kernel-image .deb file and I dumped the contents of that and copied the original wacom.ko module over the new one and got my tablet back. That was with debian, but the idea is the same.

Can especially come in handy when your trying to limp back to a somewhat workable state when a harddrive geek corrupted part of the OS. If a few system utilities you need are corrupted you can manually extract the rpm and copy them to the right areas even if the corruption broke the package management.
 

Felecha

Golden Member
Sep 24, 2000
1,434
0
0
Well, I got the samba to work, so I don't need to reinstall.

I needed to add a Host in etc/hosts.

Keep learning . . .