Maginot Junior
2007-Jun-20 14:14 UTC
[Samba] Write access to one user and Read-Only for anyother
Hi! Im trying here to figure out how to make this to work... I need that one user, lets say, userfoo be able to write and have all permissions on the share [memos]... and ALL others who are not userfoo have only read-only access... The ideia is that userfoo can upload files to the share and everyone could read them ... thanks! -- Maginot J?nior
Adam Tauno Williams
2007-Jun-20 14:28 UTC
[Samba] Write access to one user and Read-Only for anyother
> Im trying here to figure out how to make this to work... > I need that one user, lets say, userfoo be able to write and have all > permissions on the share [memos]... and ALL others who are not userfoo have > only read-only access... > The ideia is that userfoo can upload files to the share and everyone could > read them ...So set the file permissions; and write list =, etc... in the share configuration. -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org
Maginot Junior
2007-Jun-20 14:54 UTC
[Samba] Write access to one user and Read-Only for anyother
the problem is if I set the write list or valid users Im only giving the permission to those in the list... and the big problem is how to set all other users to be in the read list ... I dont have group with all inside and are not going to be any... I tryed with something like [memos] path = /home/memos write list = foouser read list = !foouser but this doesnt work.... There are more them 100 users on this box so only one have to be able to write on the share and all others have only to be able to read.... On 6/20/07, Adam Tauno Williams <adamtaunowilliams@gmail.com> wrote:> > > Im trying here to figure out how to make this to work... > > I need that one user, lets say, userfoo be able to write and have all > > permissions on the share [memos]... and ALL others who are not userfoo > have > > only read-only access... > > The ideia is that userfoo can upload files to the share and everyone > could > > read them ... > > So set the file permissions; and write list =, etc... in the share > configuration. > > -- > Adam Tauno Williams, Network & Systems Administrator > Consultant - http://www.whitemiceconsulting.com > Developer - http://www.opengroupware.org > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >-- Maginot J?nior "the game of life" LPIC - CCNA - ?Designer?
Maginot Junior
2007-Jun-20 15:37 UTC
[Samba] Write access to one user and Read-Only for anyother
Hmm now its workin... BUT one more thing, and if I dont want to be prompted for an user name ? What I want to do is map the share with the foouser login and username info and all other who try to view the share could do it at the most transparent way, with no question for user and password... is that possible? And thanks for the help, worked great =) On 6/20/07, Eric Boehm <boehm@nortel.com> wrote:> > On Wed, Jun 20, 2007 at 11:53:59AM -0300, Maginot Junior wrote: > >>>>> "Maginot" == Maginot Junior <maginot.junior@gmail.com> writes: > > Maginot> the problem is if I set the write list or valid users Im > Maginot> only giving the permission to those in the list... and > Maginot> the big problem is how to set all other users to be in > Maginot> the read list ... I dont have group with all inside and > Maginot> are not going to be any... I tryed with something like > > > [memos] > path = /home/memos > write list = foouser > read list = !foouser > > No, you should use > > [memos] > path = /home/memos > read only = yes > write list = foouser > > This will make it read only except for anyone in the write list. From > man smb.conf > > write list (S) > This is a list of users that are given read-write > access to a service. If the connecting user is in this > list then they will be given write access, no matter > what the read only option is set to. The list can > include group names using the @group syntax. > > Note that if a user is in both the read list and the > write list then they will be given write access. > > This parameter will not work with the security = share > in Samba 3.0. This is by design. > > > Note the first paragraph -- "If the connecting user is in this list > then they will be given write access, no matter what the read only > options is set to." > > -- > Eric M. Boehm /"\ ASCII Ribbon Campaign > boehm@nortel.com \ / No HTML or RTF in mail > X No proprietary word-processing > Respect Open Standards / \ files in mail >-- Maginot J?nior "the game of life" LPIC - CCNA - ?Designer?
Eric Boehm
2007-Jun-20 15:45 UTC
[Samba] Write access to one user and Read-Only for anyother
On Wed, Jun 20, 2007 at 11:53:59AM -0300, Maginot Junior wrote:>>>>> "Maginot" == Maginot Junior <maginot.junior@gmail.com> writes:Maginot> the problem is if I set the write list or valid users Im Maginot> only giving the permission to those in the list... and Maginot> the big problem is how to set all other users to be in Maginot> the read list ... I dont have group with all inside and Maginot> are not going to be any... I tryed with something like [memos] path = /home/memos write list = foouser read list = !foouser No, you should use [memos] path = /home/memos read only = yes write list = foouser This will make it read only except for anyone in the write list. From man smb.conf write list (S) This is a list of users that are given read-write access to a service. If the connecting user is in this list then they will be given write access, no matter what the read only option is set to. The list can include group names using the @group syntax. Note that if a user is in both the read list and the write list then they will be given write access. This parameter will not work with the security = share in Samba 3.0. This is by design. Note the first paragraph -- "If the connecting user is in this list then they will be given write access, no matter what the read only options is set to." -- Eric M. Boehm /"\ ASCII Ribbon Campaign boehm@nortel.com \ / No HTML or RTF in mail X No proprietary word-processing Respect Open Standards / \ files in mail
Adam Tauno Williams
2007-Jun-20 17:58 UTC
[Samba] Write access to one user and Read-Only for anyother
On Wed, 2007-06-20 at 11:53 -0300, Maginot Junior wrote:> the problem is if I set the write list or valid users Im only giving the > permission to those in the list... and the big problem is how to set all > other users to be in the read list ... I dont have group with all inside and > are not going to be any... I tryed with something like > [memos] > path = /home/memos > write list = foouser > read list = !foouser > > but this doesnt work.... There are more them 100 users on this box so only > one have to be able to write on the share and all others have only to be > able to read....read only = yes / writable = no write list = foouser write list trumps read only. -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org