Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] Read Only access to share

1,032 views
Skip to first unread message

Kirk Slowe

unread,
Aug 18, 2014, 12:50:02 PM8/18/14
to
Latest version of samba running on freebsd. I setup a share and created a user to access the share. I can connect but have no write access.

smbstatus shows RDONLY under the RW column


This is a sample of my smb4.conf

[global]
server string = domain
log file = /var/log/samba4
max log size = 100
security = user
encrypt passwords = yes

[share]
comment = Share
path = /share
writeable = yes
readonly = no
public = yes
guest ok = no
valid users = user
write list = user
create mask = 0777
force create mode = 0777


Not sure what I have to do to get write access.

kirk
signature.asc

Rowland Penny

unread,
Aug 18, 2014, 1:00:03 PM8/18/14
to
On 18/08/14 17:37, Kirk Slowe wrote:
> Latest version of samba running on freebsd. I setup a share and created a user to access the share. I can connect but have no write access.
>
> smbstatus shows RDONLY under the RW column
>
>
> This is a sample of my smb4.conf
>
> [global]
> server string = domain
> log file = /var/log/samba4
> max log size = 100
> security = user
> encrypt passwords = yes
>
> [share]
> comment = Share
> path = /share
> writeable = yes
> readonly = no
'writeble = yes' & 'readonly = no' are the same thing, you only need one.

> public = yes
> guest ok = no
'public' is the same as 'guest ok', here the first says yes, the second
says no, which is it ?

> valid users = user
> write list = user
> create mask = 0777
> force create mode = 0777
>
Is 'user' also a unix user ?

Rowland
> Not sure what I have to do to get write access.
>
> kirk
>
>

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

Kirk Slowe

unread,
Aug 18, 2014, 1:20:02 PM8/18/14
to

On Aug 18, 2014, at 10:53 AM, Rowland Penny <rowlan...@googlemail.com> wrote:

> On 18/08/14 17:37, Kirk Slowe wrote:
>> Latest version of samba running on freebsd. I setup a share and created a user to access the share. I can connect but have no write access.
>>
>> smbstatus shows RDONLY under the RW column
>>
>>
>> This is a sample of my smb4.conf
>>
>> [global]
>> server string = domain
>> log file = /var/log/samba4
>> max log size = 100
>> security = user
>> encrypt passwords = yes
>>
>> [share]
>> comment = Share
>> path = /share
>> writeable = yes
>> readonly = no
> 'writeble = yes' & 'readonly = no' are the same thing, you only need one.
removed readonly = no
>



>> public = yes
>> guest ok = no
> 'public' is the same as 'guest ok', here the first says yes, the second says no, which is it ?
removed both lines
>
>> valid users = user
>> write list = user
>> create mask = 0777
>> force create mode = 0777
>>
> Is 'user' also a unix user ?
user is a unix user, could that be my problem?
signature.asc

Rowland Penny

unread,
Aug 18, 2014, 1:50:01 PM8/18/14
to
No, in the set up you are using, the user also needs to be a unix user.
You haven't set the workgroup in your smb.conf, so are the rest of your
machines in the workgroup 'WORKGROUP' ? do your users have the same
password as on the machine that they are trying to connect to ? How do
you create the users on the samba server ?

Rowland

Kirk Slowe

unread,
Aug 18, 2014, 7:40:02 PM8/18/14
to
Figured it out. Created a group, changed the group on the share to match. Added users to the group.
Changed "valid users = @group"

That did the trick. Thanks for your help Rowland.
0 new messages