Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > clobbered SMB.conf?!?!

clobbered SMB.conf?!?!
Thread Tools
Mac Elite
Join Date: Oct 2000
Location: Amboy Navada, Canadia.
Status: Offline
Reply With Quote
May 1, 2003, 11:39 PM
 
excuse the slight scent of a rant....

i just noticed a lot of newer files were missing on one of my main network mounts. i couldn't quite figure out what was going on, so i checked my smb.conf - the configurations necessary for me to properly create new files, has disappeared. it's back at the defaults, just after a couple weeks of use. OS X has somehow clobbered my smb.conf, and caused me to lose over two days of work.

I've heard of installers doing crap like this, as well as OS updates, but i have installed none since i replaced Appletalk with SMB. damn it, OS X is a Unix (for all "intensive purposes" ;). Unix veterans are drooling and finally switching - is Apple handing them an OS that might mysteriously undo their work in the terminal? now, i'm pissed off! and i want Apple to keep the Unix switchers!

i've got to reconfigure now, then lock the file (as if that'll help).

This insanity brought to you by:
The French CBC, driving antenna users mad since 1937.
     
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
May 2, 2003, 08:28 AM
 
Originally posted by yukon:
excuse the slight scent of a rant....

i just noticed a lot of newer files were missing on one of my main network mounts. i couldn't quite figure out what was going on, so i checked my smb.conf - the configurations necessary for me to properly create new files, has disappeared. it's back at the defaults, just after a couple weeks of use. OS X has somehow clobbered my smb.conf, and caused me to lose over two days of work.

I've heard of installers doing crap like this, as well as OS updates, but i have installed none since i replaced Appletalk with SMB. damn it, OS X is a Unix (for all "intensive purposes" . Unix veterans are drooling and finally switching - is Apple handing them an OS that might mysteriously undo their work in the terminal? now, i'm pissed off! and i want Apple to keep the Unix switchers!

i've got to reconfigure now, then lock the file (as if that'll help).
Not to put too fine a point on it... but there is a thing called backups that "Unix veterans" are fairly religious about doing. This becomes all the more important when you are not sure exactly what an installer or updater will do to your system.

With that said.... smb.conf is usually kept in /etc/ (or /private/etc/) and it is fairly trivial to make a tarball of the entire /etc/ folder, say, once a day and store it elsewhere.

Did you do a search for smb.conf in case it may have been moved somewhere else?
-DU-...etc...
     
Fresh-Faced Recruit
Join Date: Oct 2002
Status: Offline
Reply With Quote
May 5, 2003, 05:17 PM
 
Locking the file does fix it... this, and many other annoyances are why I stopped using OSX server on my primary fileserver... I found that the amount of Apple-installed utilities and services that I was having to strip out and replace due to stupid quirks or compatability problems was getting to the point that it defeated using OSX server to begin with.

As on aside, the PowerPC port of Linux runs great on a mac
     
Dedicated MacNNer
Join Date: Dec 2002
Location: someplace
Status: Offline
Reply With Quote
May 6, 2003, 10:12 AM
 
What are the permissions on the file? It should be unwritable by default:
Code:
-r--r--r-- 1 root wheel 1602 May 5 11:07 smb.conf
     
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
May 7, 2003, 03:44 AM
 
Originally posted by yukon:
i just noticed a lot of newer files were missing on one of my main network mounts. i couldn't quite figure out what was going on, so i checked my smb.conf - the configurations necessary for me to properly create new files, has disappeared. it's back at the defaults, just after a couple weeks of use. OS X has somehow clobbered my smb.conf, and caused me to lose over two days of work.

I've heard of installers doing crap like this, as well as OS updates, but i have installed none since i replaced Appletalk with SMB.
<snip>
OS X in a standard configuration does not overwrite smb.conf. I've had a customised smb.conf for a long time (at least 5 or 6 months) and OS X has not overwritten it.

In cases where OS X updates have an updated configuration file for a service, they will save the old configuration file as filename.applesaved, for example, when Rendezvous was introduced to Apache, my edited httpd.conf was renamed to "httpd.conf.applesaved". Very easy to just diff the two files to see the changes and re-incorproate my changes into Apple's, or replace Apple's file with mine.

I'd say it was a non-Apple program which did this, in which case you can hardly blame Apple can you...?

- proton
     
yukon  (op)
Mac Elite
Join Date: Oct 2000
Location: Amboy Navada, Canadia.
Status: Offline
Reply With Quote
May 7, 2003, 12:15 PM
 
backup? i had to stop when i got my 80gb hd, that's a lot of CDs ;-). The configuration wasn't important enough to back up, a simple matter to reconfigure, it was what I lost when it was down.

lol, i'm about to get another linux server going, so I won't bother OS X about the services. it'll be nice, this one is a celeron, i could put it in a closet somewhere.

nope, there's no .applesaved file there. just my own copies. i have no idea what killed it, i mean, i haven't run anything that should affect smb, and writing to the configuration requires root (i'm not running as root or admin even). I'm not sure, something with root access did it, better check the running processes, change password, and check for bad blocks.....i did just update to 10.2.6 (it was a fast download, did it early ;-), and to Apple's credit, nothing broke :-)

This insanity brought to you by:
The French CBC, driving antenna users mad since 1937.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:56 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2