Jump to content

Samba rewriting samba.conf


Recommended Posts

I've got my server running Samba to share files with my other computers. The only problem is that Samba takes it unto itself to rewrite samba.conf and put some semi-colons where they don't belong. For example:

 

[Music]
path = /media/storage1/Music
;	writeable = no
;	browseable = yes
valid users = owner, Music
write list = owner

In front of the writeable and browseable tags. This means that I have to continually keep going back in to edit that back to the way I had it. Quite annoying.

 

Does anyone know a way to keep this from happening? I tried to make the file read-only, but that didn't work (probably because root is the owner).

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

If you are root, you can write to anything. No file is read-only to root. Or at least should definitely not be. This is in fact looking in the wrong place. If samba is modifying it, then you need to look at what is modifying it. If you are using swat, then check here, and ensure every setting you are choosing is correct.

 

If you are using a Mandriva wizard for reconfiguring samba, then this is probably why. The only way to stop samba from modifying the file as you go along is edit the file in standard text mode without any gui tools doing it for you. If you have these installed, then remove them.

Link to comment
Share on other sites

I'm actually doing this is Fedora 7, which has its own Samba configuring GUI (I forget what it's called). I'll try uninstalling it and see what happens.

 

*edit* The Fedora tool is system-config-samba

Edited by Scythe
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...