Gilles
2015-Mar-27 20:41 UTC
[Samba] [3.6.6] Possible to allow password-free read/write access?
Hello At home, I use my Windows client host without entering a password, and would like to access a local Linux host likewise, ie. without being prompted for login/password while still having read/write access. Is this possible? Currently, I created no Unix/Samba accounts for the Windows user, and the following smb.conf only works in read-only mode (ie. I get an error when trying to write): ================[global] workgroup = WORKGROUP netbios name = LINUX ;a bit of security hosts allow = 127.0.0.1 192.168.0.0/24 hosts deny = 0.0.0.0/0 ;So users don't get 'System error 5 has occurred. Access is denied." when running "net view \\linux" security = user map to guest = Bad User [myshare] comment = Data path = /myshare writable = yes guest ok = Yes ;DOESN'T WORK: WHICH USER TO USE? ;chown -R www-data /myshare valid users = www-data force create mode = 0644 create mask = 0664 security mask = 0664 force security mode = 0664 ================ Thank you.
Gilles
2015-Mar-27 20:53 UTC
[Samba] [3.6.6] Possible to allow password-free read/write access?
On Fri, 27 Mar 2015 21:41:47 +0100, Gilles <gilles.ganault at free.fr> wrote:>Is this possible?Yes indeed: Just run this: =======chown -R nobody /myshare ======= By default, "Bad User" matches to Unix user "nobody".
Gaiseric Vandal
2015-Mar-27 20:57 UTC
[Samba] [3.6.6] Possible to allow password-free read/write access?
per smb.conf, you might want to try changing to "security = share" (assuming you don't have any shares that might require more restriction. Did you try setting the linux directory permissions as 777- at least for testing? On 03/27/15 16:41, Gilles wrote:> Hello > > At home, I use my Windows client host without entering a password, > and would like to access a local Linux host likewise, ie. without > being prompted for login/password while still having read/write > access. > > Is this possible? > > Currently, I created no Unix/Samba accounts for the Windows user, and > the following smb.conf only works in read-only mode (ie. I get an > error when trying to write): > > ================> [global] > workgroup = WORKGROUP > netbios name = LINUX > > ;a bit of security > hosts allow = 127.0.0.1 192.168.0.0/24 > hosts deny = 0.0.0.0/0 > > ;So users don't get 'System error 5 has occurred. Access is denied." > when running "net view \\linux" > security = user > map to guest = Bad User > > [myshare] > comment = Data > path = /myshare > writable = yes > guest ok = Yes > > ;DOESN'T WORK: WHICH USER TO USE? > ;chown -R www-data /myshare > valid users = www-data > > force create mode = 0644 > create mask = 0664 > security mask = 0664 > force security mode = 0664 > ================> > Thank you. >
Gilles
2015-Mar-27 21:04 UTC
[Samba] [3.6.6] Possible to allow password-free read/write access?
On Fri, 27 Mar 2015 16:57:30 -0400, Gaiseric Vandal <gaiseric.vandal at gmail.com> wrote:>per smb.conf, you might want to try changing to "security = share" >(assuming you don't have any shares that might require more restriction.I read that "security = share" was deprecated in favor of "security user", so that's what I used.>Did you try setting the linux directory permissions as 777- at least >for testing?Turns out I had to run "chown nobody" on the share, since this is the Unix user account Samba relies on by default when using "map to guest = Bad User". I'll read some more about how Samba handles user authentication + authorization. Thanks.
Apparently Analagous Threads
- [3.6.6] Possible to allow password-free read/write access?
- problem giving setting user permissions on specific folder
- 答复: Is the "\\x.x.x.x" type tree connect request a client related feature?
- [3.6.6] Possible to allow password-free read/write access?
- Feedback on Linksys SPA-921 and GrandStream GXP-2000