Samba 3: Can't write to shared directories from Windows
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Samba 3: Can't write to shared directories from Windows
Hi all,
Using samba on my SUSE 9.1 installation I can view shares on all my other windows machines, and they can view the shared folders on the linux machine. What they cannot do, however, is write anything to the shared folders.
Here is an excerpt from my smb.conf file:
[shared]
comment = Shared directory on Linux box
path = /shared
guest ok=yes
writeable = yes
Read only = no
How should I alter this so this folder is writeable by everyone from my windows machines.
well, i use suse 9.1 as well...and i set up the sharing without manually changing anything.
all i did was rightclick on the desired folder and choose share, and then choose "shared - writeable for others"...and it works like a charm!
in your first thread you write that you're using SuSE 9.1?
well, it's a while since i did this...but i believe you have to choose properties the first time, then configure local net sharing. after that you get the share option.
Is there a way to do this without having to chmod it?
I have a webserver directory which is /srv and I want to be able to write to it over the network, but I can't chmod 777 it...because I don't want my webserver directory to be writeable by all (not very secure when its live on the net).
Quote :
------------------------------------------
Hi again,
Is there a way to do this without having to chmod it?
I have a webserver directory which is /srv and I want to be able to write to it over the network, but I can't chmod 777 it...because I don't want my webserver directory to be writeable by all (not very secure when its live on the net).
Any ideas?
Robin
--------------------------------------------
Have you used chmod 744 /srv ?
This gives the permissions of rwx r-- r--
or you could use
chmod 755 /srv for permissions of rwx r-x r-x
or if you are trying to write to it by using a workgroup use
chmod 775 /srv for rwx rwxr r-x
or
chmod 774 /srv for rwx rwx r--
Not to mention, if you give full access, Samba (in this case), or your web server in the second case will limit what the users can do. But if linux has it restricted more than Samba or whatever, linux will override for security purposes. Know what I mean?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.