Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[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
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
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.
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.
you are almost there, but you need to make sure that the directory at a system level is also writeable by your nobody or guest user (who is running the samba process must be able to write also. a very simple way to check is to set the directory all writeable (chmod a+rwx) and reload you smb conf. if it now works, its due to the physical directory permissions and you can play around with various masks to get it tothe level of security you want.
kr per fisker
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.