Re: [OT] permissions on samba share

2010-09-20 Thread Chris Davies
On Mon, 06 Sep 2010 11:32:09 +0200, Johannes Wiedersich wrote:
> Is there any way that I am missing to force all files stored from that
> 'guest OS' to have -rw-rw ?

Camaleón wrote:
>> Have you tried by setting "create mask¹" value for the share?
>> ¹ http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#CREATEMASK

Johannes Wiedersich  wrote:
> Yes, plus the 'force create mode'. The relevant part of my smb.conf is

>create mask = 0664
>force create mode = 0660
>directory mask = 0770
>force directory mode = 0770

Also try the "security mode" options, which work in a similar way to
the create/directory mask options:

- force directory security mode
- force security mode
- security mask

Chris


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/9ugjm7x9ov@news.roaima.co.uk



Re: [OT] permissions on samba share

2010-09-06 Thread Camaleón
On Mon, 06 Sep 2010 14:33:49 +0200, Johannes Wiedersich wrote:

> Camaleón wrote:

>> Have you tried by setting "create mask¹" value for the share?
>> 
>> ¹
>> http://www.samba.org/samba/docs/man/manpages-3/
smb.conf.5.html#CREATEMASK
> 
> Yes, plus the 'force create mode'. The relevant part of my smb.conf is
> 
> /==
> [winshare]
> comment = xxx
> path = /home/projekte
> valid users = xxx, 
> read only = No
> create mask = 0664
> force create mode = 0660
> directory mask = 0770
> force directory mode = 0770
> \==

Try adding "write list" and "force group" directives to the share and see 
if that helps.

Also, look at the [global] section to check there is no value overriding/
conflicting with the [winshare] settings :-?

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.09.06.13.06...@gmail.com



Re: [OT] permissions on samba share

2010-09-06 Thread Johannes Wiedersich
Camaleón wrote:
> On Mon, 06 Sep 2010 11:32:09 +0200, Johannes Wiedersich wrote:
> 
>> I have some problem with permissions of files saved from a windows XP to
>> a samba share. Some files from a proprietary software are saved with
>> permissions
> 
> (...)
> 
>> Is there any way that I am missing to force all files stored from that
>> 'guest OS' to have -rw-rw ?
> 
> Have you tried by setting "create mask¹" value for the share?
> 
> ¹ http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#CREATEMASK

Yes, plus the 'force create mode'. The relevant part of my smb.conf is

/==
[winshare]
comment = xxx
path = /home/projekte
valid users = xxx, 
read only = No
create mask = 0664
force create mode = 0660
directory mask = 0770
force directory mode = 0770
\==

Greetings,

Johannes


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c84dfad.5050...@aktendiener.de



Re: [OT] permissions on samba share

2010-09-06 Thread Camaleón
On Mon, 06 Sep 2010 11:32:09 +0200, Johannes Wiedersich wrote:

> I have some problem with permissions of files saved from a windows XP to
> a samba share. Some files from a proprietary software are saved with
> permissions

(...)

> Is there any way that I am missing to force all files stored from that
> 'guest OS' to have -rw-rw ?

Have you tried by setting "create mask¹" value for the share?

¹ http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#CREATEMASK

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.09.06.11.35...@gmail.com