Cannot write to /etc/samba/smb.conf. Program will now exit.

Nils Philippsen nphilipp at redhat.com
Wed Oct 20 10:07:00 UTC 2004


On Tue, 2004-10-19 at 21:30 +0100, DAVID BENTLEY wrote:
>  --- Nils Philippsen <nphilipp at redhat.com> wrote: 
> > On Mon, 2004-10-18 at 23:35 +0100, DAVID BENTLEY
> > wrote:
> > > > On Mon, 2004-10-18 at 17:24, DAVID BENTLEY
> > wrote:
> > > > > I set all of my SAMBA shares up before doing
> > any
> > > > > updates and now if I try to edit them or add
> > new
> > > > > shares I get the following error message :-
> > > > > 
> > > > > Cannot write to /etc/samba/smb.conf.  Program
> > will
> > > > now
> > > > > exit.
> > > > > 
> > > > > I will see if it works in the original kernel
> > next
> > > > but
> > > > > I am surprised that there has been no mention
> > of
> > > > this
> > > > > before now.
> > > 
> > > >  --- John Dennis <jdennis at redhat.com> wrote: 
> > > > Are you getting SELinux messages (e.g. audit(*):
> > > > avc:) in
> > > > /var/log/messages about access denied? If so
> > you're
> > > > running afoul of the
> > > > SELinux security policy. If you're running >=
> > FC3t2
> > > > SELinux targeted
> > > > policy is in effect. What is the avc message?
> > > > -- 
> > > 
> > > I am using a fully updated core3 test 3 and I
> > don't
> > > see any avc message but there are messages at boot
> > > regarding what selinux policy is in effect as
> > follows 
> > > 
> > > 18 22:46:17 bentledr-1 kernel: SELinux:  Starting
> > in
> > > permissive mode
> > > Oct 18 22:46:17 bentledr-1 kernel: There is
> > already a
> > > security framework initialized, register_security
> > > failed.
> > > Oct 18 22:46:17 bentledr-1 kernel:
> > > selinux_register_security:  Registering secondary
> > > module capability
> > 
> > When running it on the command line, do you get any
> > kind of python
> > traceback, if so please post it.
> > 
> 
> Traceback (most recent call last):
>   File
> "/usr/share/system-config-samba/shareWindow.py", line
> 537, in onOkEditButtonClicked
>     self.samba_data.writeFile()
>   File
> "/usr/share/system-config-samba/sambaParser.py", line
> 173, in writeFile
>     raise RuntimeError, (_("Cannot write to %s. 
> Program will now exit." % path))
> RuntimeError: Cannot write to /etc/samba/smb.conf. 
> Program will now exit.

This is the same as https://bugzilla.redhat.com/bugzilla/show_bug.cgi?
id=135946 -- fixed in system-config-samba-1.2.21-1, grab it from
http://people.redhat.com/nphilipp/BETA/system-config-samba/ if it hasn't
already hit the mirrors.

Nils
-- 
     Nils Philippsen    /    Red Hat    /    nphilipp at redhat.com
"They that can give up essential liberty to obtain a little temporary
 safety deserve neither liberty nor safety."     -- B. Franklin, 1759
 PGP fingerprint:  C4A8 9474 5C4C ADE3 2B8F  656D 47D8 9B65 6951 3011




More information about the fedora-test-list mailing list