[Samba] The way things used to work...

Dragan Lukic ldrax at panline.net
Fri Dec 5 22:20:49 GMT 2008


Again... to confirm that I do understand:

[global]                                                    
    workgroup = FOO
    server string = FOO Server
    security = user
    map to guest = Bad Password
    hosts allow = 192.168.125. 127.0.
    log file = /var/log/samba/%m.log
    max log size = 50
    local master = no
    os level = 33
    dns proxy = no
# ==================== Share Definitions ===================
[Share]
    path = /home/foobar/Documents/Share/
    public = yes
    force user = foobar
    force group = foobar
    create mask = 0755
    force create mode = 0755
    directory mask = 0755
    force directory mode = 0755
    writable = yes
    printable = no


On Friday 05 December 2008 23:07:13 Jeremy Allison wrote:
> On Fri, Dec 05, 2008 at 11:02:37PM +0100, Dragan Lukic wrote:
> > Let me see if I understand....
> >
> > In my smb.conf things should look like this:
> >
> > [global]
> >     workgroup = FOO
> >     server string = FOO Server
> >     security = user
> >     map to guest = Bad Password
> >     hosts allow = 192.168.125. 127.0.
> >     log file = /var/log/samba/%m.log
> >     max log size = 50
> >     local master = no
> >     os level = 33
> >     dns proxy = no
> > # ==================== Share Definitions ===================
> > [Share]
> >     path = /home/foobar/Documents/Share/
> >     public = yes
> >     writable = yes
> >     printable = no
> >
> > and ALL users (remote and LOCAL) will have full rigths on shared
> > directory and it's contents???
> >
> > With my current smb.conf, whoever pastes file into shared dir creates it
> > as local user, so later on local user can edit or do whatever he/she
> > wants on pasted file.
> > Talking in permissions, pasted files are created as localuser:localuser
> > rwxr- xr-x, and if I just leave guest OK and user leves security, files
> > are created as nobody:nogroup, and that is exactly what I DO NOT WANT!
>
> Use force user on the share.
>
> Jeremy.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: This is a digitally signed message part.
Url : http://lists.samba.org/archive/samba/attachments/20081205/a32763a0/attachment.bin


More information about the samba mailing list