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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...