UNIX Samba: Make A Share Writable

by on April 13, 2009 · 3 comments· LAST UPDATED April 13, 2010

in , ,

How do I make a Samba share writable under UNIX / Linux operating systems, especially all home directories for respective users?

By default, the home directories and other share are exported read-only or configured as read only. Change the "read only" parameter to 'no' if you want to be able to write to them via other CIFS clients.

Configuration

Edit /etc/samba/smb.conf, enter:
# vi /etc/samba/smb.conf
Fine [Home] share configuration and update it as follows (note wriable is set to yes):

[homes]
        comment = Home Directories
        browseable = yes
        read only = no
        writable = yes
       valid users = %S
       valid users = MYDOMAIN\%S

Save and close the file. Restart samba server:
# /etc/init.d/samba restart
OR if you are using RHEL specific distro, enter:
# service smb restart

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 3 comments… read them below or add one }

1 a user November 6, 2013 at 8:01 am

hello nixcraft,

you need to add the user to the sambas password database or nothing will work.
smbpasswd username

username is a valid linux account name, the password you set here does not need to be the same as the linux login one.

Reply

2 a user November 6, 2013 at 8:02 am

and writable is a synonym for readonly = no, so you need only one.

Reply

3 a user November 6, 2013 at 8:05 am

and please if you use writeable = yes, write it correctly…..
samba will accept both. but one is english, the other is i dont know….

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: