Samba's smb.conf is now "read only" with unknown owner, defeating its Options setting intent.

Bug #1605138 reported by L. P. Luigi Espenlaub on 2016-07-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone
system-config-samba (Ubuntu)

Bug Description

           Package: system-config-samba
           Version: 1.2.63-0ubuntu6
                OS: Ubuntu 16.04 LTS
      Architecture: 64-Bit
Connect OS Edition: Windows 10 Home
           Version: 1511
          OS build: 10586.494
      Architecture: 64-Bit

I expected to add a [<folder_name>] and permissions to the smb.conf file as instructed and internally indicated as possible in the file itself as it is "suggested configurable options" file. This was in order to share files with a Windows 10 OS networked computer.

What I found was /etc/samba/smb.conf permission is "read only" not allowing me to save the file with the added [<folder_name>] and permissions.

What I did:
1. I used the Ubuntu software center this week to install both the system-config-samba 1.2.63-0ubuntu6 package and the Smb4k packages.
2. I checked for updates today.

After hours of disylectic mistyping, Ubuntu can see the Windows 10 files. But, Windows cannot see the share folder because "Access is denied."

To access the //home/<My_user_name>/Share file:
1. I used ifconfig to obtain the Ubuntu computer's address:
2. I assumed "inet" was the correct one out of five addresses included [inet addr: ... Bcast: ... Mask: ... inet6 addr: ... ]
3. I double checked my password.
4. I entered these in the "Windows 10 Windows Security" "Enter network credentials" page.

According to Korbin Browns well written instructions [cannot judge accuracy] at:

Section "Creating the Share on Linux" I need to enter the following lines into smb.conf to allow windows to see a shared file. [The file does not claim to contain all options.]

1. I opened /etc/samba/smb.conf in gedit.
the gedit header displays: smb.conf [Read-Only] (/etc/samba) - gedit. and [Save] is grayed out.

Within the file it states that it is a sample file and if an option is desired the comment symbols "#" or ";" are to be removed, or missing options added. This indicates the creators of the file intend it to be edited, then saved.

2. I entered the following lines:

    path = /home/<My_user_name>/Share
    available = yes
    valid users = <My_user_name>
    read only = no
    browsable = yes
    public = yes
    writable = yes

3. Finding I could not save the file, I copied the text to a new file.
4. I attempted to save it in /etc/samba/.
A read only warning pop up displayed. It asked if I wanted to replace anyway.
5. Clicking [Replace] returned a red banner with the following:
"Could not save the file “/etc/samba/smb.conf”. You do not have the permissions necessary to save the file." Please check that you typed the location correctly and try again. [Cancel]"
6. I clicked [Cancel] as it is the only option.
7. I found on the smb.conf pull down menu the [Cut], [Move to Trash], [Move to ...], and [Rename] options are grayed out.
8. I clicked [Properties] > [Permissions]
The messages here are:
"You are not the owner, so you cannot change these permissions." and
"Security Context: unknown"
I take this to mean that the real owner is not identifiable by Ubuntu.

So I can neither move or delete the current file in order to replace it with a file containing the option I need.

I spent most of the day Searching both the Samba site and the Ask.Ubuntu sites, as well as associated bug reporting sites.
* I found no references to smb.conf being "read only."
* I found no questions or answers that related to this specific situation using all the variations on search terms I could think of, such as "smb.conf "read only,"" "Edited smb.conf cannot be saved," and subsets of these.

Until this bug is fixed, how do I remove the "Read Only" lock, or work around this.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers