[SOLVED] creating anonymous samba share?


Recommended Posts

If the share is public no login/password is required.  :o

 

what about allowing "no login" for an existing samba share with read-only privileges?

 

i.e.

security = private

 

user1= read/write

user2= read/write

guest=read only

 

 

Link to comment

I could be guessing, but I think what flush is after is a possibilty to login without username/password and get read only access and another way of login with username and password giving write access.

 

thanks, that's what I was getting at.

 

After looking at /etc/samba/smb.conf, I ended up creating /boot/config/smb-extra.conf with the following:

 

guest account = nobody

[media-public]

path = /mnt/user/media

guest ok = yes

read only = yes

 

/mnt/user/media already exists as another samba share with the user-specific privileges

 

This gave me the regular "media" share with user-specific privileges and "media-public" that is open to anyone within the network, read-only.

 

 

Link to comment

I could be guessing, but I think what flush is after is a possibilty to login without username/password and get read only access and another way of login with username and password giving write access.

 

thanks, that's what I was getting at.

 

After looking at /etc/samba/smb.conf, I ended up creating /boot/config/smb-extra.conf with the following:

 

guest account = nobody

[media-public]

path = /mnt/user/media

guest ok = yes

read only = yes

 

/mnt/user/media already exists as another samba share with the user-specific privileges

 

This gave me the regular "media" share with user-specific privileges and "media-public" that is open to anyone within the network, read-only.

 

A couple observations:

a) I think "secure" is the mode you want.

b) These kinds of changes to the samba configuration file may have consequences that would greatly complicate integration with new features, plugins, etc, and probably cause developers to not want to give you any support  ;)

Link to comment

A couple observations:

a) I think "secure" is the mode you want.

b) These kinds of changes to the samba configuration file may have consequences that would greatly complicate integration with new features, plugins, etc, and probably cause developers to not want to give you any support  ;)

 

ah ok, i see what you mean, for the particular share i'd like to open up, that works just as well, thanks

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.