LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't set guest read/write samba share (http://www.linuxquestions.org/questions/linux-newbie-8/cant-set-guest-read-write-samba-share-930544/)

poisonborz 02-21-2012 01:14 PM

Can't set guest read/write samba share
 
Hola,

I try to set up a samba share, like this:

Code:

[global]
workgroup = WORKGROUP
netbios name = server
guest ok = yes
read only = no
security = user
wins support = yes
null passwords = true
guest account = nobody
map to guest = Bad Password
os level = 66
log level = 2
local master = yes
unix extensions = no
 
[Media]
path = /media/ServerMedia/Media
browseable = Yes
read only = No
guest ok = Yes

[WebTemp]
path = /home/server/www/tmp/stor
browseable = Yes
read only = No
guest ok = Yes
create mask = 0777
available = Yes
create mode = 0777
directory mode = 0777
public = yes
writable = yes

Media can be reached by any guest, but with no write access - it works well.
I want the WebTemp share to be fully read/writeable to guests, but somehow it asks for user/password for every access. Why? As you can see above, I've tried a lots of parameters, but none work. The "stor" dir is also chowned by sambashare...
Thanks

sycamorex 02-21-2012 01:26 PM

What are the system permissions on /home/server/www/tmp/stor?

liberalchrist 02-21-2012 05:07 PM

I have mine set as below and complete access is granted. It looks deceptively simple.

path = /home/username/media/Music
public = yes
only guest = yes
writable = yes
printable = no

poisonborz 02-21-2012 05:57 PM

I know it should be simple, that's why I don't understand why it asks for login...
I've added the "only guest" line to the share, but still asks for pass.
Here are the permissions to the folder: http://borz.ath.cx/img/data/screenshot697.jpg

liberalchrist 02-21-2012 06:33 PM

Some more ideas:

I have guest account commented out and the following in /etc/passwd:

nobody:x:99:99:nobody:/:/bin/false

/etc/group has:

nobody:x:98:nobody

Also, I have security=share instead of user.

My permissions on the actual folders are read, write, execute for everybody.

This is not a very secure setup, but it does allow the access you are looking for on my system. I use the hosts allow on static ip's for some security.

poisonborz 02-22-2012 03:51 AM

Thanks, I also set security to share, it seems to be more straightforward than the user-based mode.
The problem seemed to be with the folder that was located inside the www folder. No matter the permissions, somehow access was not granted. I "ln -s"-ed it to a folder in the system, and now it can be accessed as it set in Samba.


All times are GMT -5. The time now is 04:56 AM.