LinuxQuestions.org
Visit Jeremy's Blog.
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 03-06-2003, 07:00 PM   #1
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Rep: Reputation: 30
accidentally deleted /etc/rc.d/init.d/smb!!


I accidentally, ok I didn't know what I was doing, deleted
/etc/rc.d/init.d/smb. Is there any way to get this back without reinstalling RedHat 8?

Also, what I was trying to accomplish was to make Samba look for my smb.conf file in /usr/local/bin/samba/lib/smb.conf how would I make it do that?

I am a newbie by far it seems...
 
Old 03-06-2003, 09:10 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
>I accidentally, ok I didn't know what I was doing, deleted
>/etc/rc.d/init.d/smb. Is there any way to get this back
>without reinstalling RedHat 8?

try reinstalling the smb.prm package (man rpm)


>Also, what I was trying to accomplish was to make Samba
>look for my smb.conf file in /usr/local/bin/samba/lib/smb.conf >how would I make it do that?

you can:
-) recompile samba with changed path (probably a but complicated if you're new to linux),
-) set a symbolic link to the new location of your config file (man ln)
-) modify "/etc/rc.d/init.d/smb" and use the "-s <configuration file> parameter (man smbd + man nmbd)
-) live with the default (my choice :-)

hope it helps
 
Old 03-07-2003, 01:02 PM   #3
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Original Poster
Rep: Reputation: 30
I figured it out. I had to reinstall the rpm off the RH8 cd. with rpm -U --oldpackage samba...... There were four one for common files, client, swat, and just samba.

It added the smb file back to /etc/rc.d/init.d

Then I simply added a link to the /etc/smb.conf file from /etc/samba/smb.conf

How would I know for sure which location samba is looking for the smb.conf file in?

Thanks for the help, now the JAVA problem....
 
  


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
accidentally deleted some files and I don't know what I need to do to get them back Michele Linux - Newbie 2 06-26-2004 06:42 AM
Accidentally deleted files rwalkerphl Linux - Newbie 3 06-24-2004 07:11 PM
Accidentally deleted /etc/init.d .. what do i do? :| waste Linux - General 5 03-04-2004 04:39 AM
7.2 Redhat - accidentally deleted /lib gedi1 Linux - Software 2 02-27-2004 02:49 PM
accidentally deleted /etc/profile tanbetien Fedora 2 11-21-2003 10:42 PM


All times are GMT -5. The time now is 06:09 AM.

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