I want to share my "/" in samba. How to make it editable in windows networking?
Solution 1:
By default, your Samba users are not going to have write access to the filesystem root. The easiest way to do this is to force a user. (Samba users will access the share using the local user's privileges.) Make sure that the user you specify has ownership and/or appropriate file system permissions. For ease of use in my example, I'm using root.
[root$]
path = /
create mask = 0755
force user = root
browsable = yes
To answer your second question, the create mask is the default permissions that will be assigned to any file or directory created on the share by a Samba user.
Solution 2:
Here is a quick start on SMB2 with Samba 4.x . If you scroll down a little from that link, there is a section that gives a samba.conf example for an office share. Here is the smb.conf snippet:
# Global parameters
[global]
workgroup = MIDEARTH
netbios name = OLORIN
printcap name = cups
disable spoolss = Yes
show add printer wizard = No
printing = cups
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
[public]
comment = Data
path = /export
force user = maryo
force group = users
read only = No
NOTE: Don't know if it matters, but keep in mind that Windows XP does not support SMB2 and so you may have some config variance here for computers that are using Windows XP or Macintoshes prior to this summers 'Mavericks' OSX release.