Making a Samba share writable

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,585
4,495
75
Yes, it's another one of these! But I've tried everything I can find online.

My smb.conf file includes:

Code:
[global]
follow symlinks = yes
wide links = yes
unix extensions = no
   workgroup = WORKGROUP
        server string = %h server (Samba, Ubuntu)
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
   usershare max shares = 100
   usershare allow guests = yes
   usershare owner only = yes
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
[multimedia]
path = /mnt/media/multimedia
valid users = ken
read only = no
inherit permissions = yes
write list = ken
create mask = 0644
directory mask = 0755
[downloads]
path = /downloads
valid users = ken
read only = yes

My fstab on the other Linux system (yes, this is linux-to-linux) has:
Code:
//192.168.0.2/multimedia /multimedia cifs username=ken,password=nunovyerbiz,rw,auto,user,nodev,noexec,nobrl,uid=1000,gid=1000,file_mode=0777,dir_mode=0777 0 0

(That would be a fairly good password, but I changed it from my real password.)

Code:
$ ls -ld /multimedia/
drwxr-xr-x 2 ken root 4096 Nov 14 09:34 /multimedia/
$ mount /multimedia
$ ls -ld /multimedia/
drwxrwxrwx 2 ken ken 0 Nov 14 11:09 /multimedia/

And I thought that setup used to work on other systems. But it doesn't work now. What's missing???!!!

Oh, and I'm open to setting up some other file-system-sharing mechanism if you'll walk me through it.
 

Chaotic42

Lifer
Jun 15, 2001
34,438
1,619
126
I seem to remember having this problem. I think I unmounted /mnt/media/multimedia and then changed the permissions on that unmounted mount point and then remounted. Sorry, it's been a while.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,585
4,495
75
try

writeable = yes

to test?

selinux?
Tried it. My research says writeable=yes is a deprecated synonym for read only=no.

This Xubuntu 16.04 LTS being accessed from 17.04
 

jd17

Junior Member
Nov 18, 2017
2
0
6
Personally I'd dramatically simplify the config (down to about 4 lines) to troubleshoot then start adding back until it broke.