Re: [Samba] question regarding samba permissions

2011-12-18 Thread TAKAHASHI Motonobu
From: Dale Schroeder d...@briannassaladdressing.com
Date: Thu, 15 Dec 2011 12:23:48 -0600

 On 12/14/2011 4:35 PM, skull wrote:
 
  woudln't work because all the users are in one group anyway.
  and i am not allowed to to give read rights do any (i.e. 755)
 
  but theres really no option in smb.conf like read only users =  or
  something like that?
 
 read list = user1 user2

Samba parameters such as read list and others work only
per-share-based, not per directory.

If you want to manage permissions per directory as you said:

On Tue, 13 Dec 2011 16:38:41 +0100, skullskul...@gmx.ch   wrote:
  I want to make a subfolder read only for certain users.
  for example: /data/pool is public rwx for all users.
  and now i would like to make a /data/pool/subfolder only rwx for user1
  and grant read only permissions to user2 and user3

you have to use filesystem-based ACL (not permission) feature.

---
TAKAHASHI Motonobu mo...@samba.gr.jp
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] question regarding samba permissions

2011-12-15 Thread Dale Schroeder

On 12/14/2011 4:35 PM, skull wrote:


woudln't work because all the users are in one group anyway.
and i am not allowed to to give read rights do any (i.e. 755)

but theres really no option in smb.conf like read only users =  or
something like that?


read list = user1 user2




Am 13.12.2011 17:56, schrieb Raffael Sahli:

 On Tue, 13 Dec 2011 16:38:41 +0100, skullskul...@gmx.ch   wrote:

 I want to make a subfolder read only for certain users.
 for example: /data/pool is public rwx for all users.
 and now i would like to make a /data/pool/subfolder only rwx for user1

 and

 grant read only permissions to user2 and user3
 how do i do this? any links or direct tips on that?

 You have to change the permission on the filesystem and not with Samba.
 set the owner user1 and a group with all other users. After that change
 the dir mod (chmod 0750)


 my suggestion would be something like this, but as you can imagine it
 didn't work:

 # The general datapool where everyone may rwx
 [pool]
  comment = Datapool
  path = /data/pool
  force directory mode = 700
  force create mode = 770
  create mode = 770
  directory mode = 770
  public = yes
  writable = yes
  printable = no
  valid users = user1 user2 user3

 #My new Protected Subfolder
 [Write Protected Subfolder]
  comment = Write Protected Subfolder
  path = /data/pool/subfolder
  force directory mode = 700
  force create mode = 770
  create mode = 770
  directory mode = 770
  public = yes
  writable = yes
  printable = no
  valid users = user1




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] question regarding samba permissions

2011-12-13 Thread skull
I want to make a subfolder read only for certain users.
for example: /data/pool is public rwx for all users. 
and now i would like to make a /data/pool/subfolder only rwx for user1 and 
grant read only permissions to user2 and user3
how do i do this? any links or direct tips on that?

my suggestion would be something like this, but as you can imagine it didn't 
work:

# The general datapool where everyone may rwx
[pool]
comment = Datapool
path = /data/pool
force directory mode = 700
force create mode = 770
create mode = 770
directory mode = 770
public = yes
writable = yes
printable = no
valid users = user1 user2 user3

#My new Protected Subfolder
[Write Protected Subfolder]
comment = Write Protected Subfolder
path = /data/pool/subfolder
force directory mode = 700
force create mode = 770
create mode = 770
directory mode = 770
public = yes
writable = yes
printable = no
valid users = user1
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] question regarding samba permissions

2011-12-13 Thread Raffael Sahli
On Tue, 13 Dec 2011 16:38:41 +0100, skull skul...@gmx.ch wrote:
 I want to make a subfolder read only for certain users.
 for example: /data/pool is public rwx for all users. 
 and now i would like to make a /data/pool/subfolder only rwx for user1
and
 grant read only permissions to user2 and user3
 how do i do this? any links or direct tips on that?

You have to change the permission on the filesystem and not with Samba.
set the owner user1 and a group with all other users. After that change
the dir mod (chmod 0750)

 
 my suggestion would be something like this, but as you can imagine it
 didn't work:
 
 # The general datapool where everyone may rwx
 [pool]
 comment = Datapool
 path = /data/pool
 force directory mode = 700
 force create mode = 770
 create mode = 770
 directory mode = 770
 public = yes
 writable = yes
 printable = no
 valid users = user1 user2 user3
 
 #My new Protected Subfolder
 [Write Protected Subfolder]
 comment = Write Protected Subfolder
 path = /data/pool/subfolder
 force directory mode = 700
 force create mode = 770
 create mode = 770
 directory mode = 770
 public = yes
 writable = yes
 printable = no
 valid users = user1

-- 
Raffael Sahli
pub...@raffaelsahli.com
Switzerland
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba