LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba 3: Can't write to shared directories from Windows (http://www.linuxquestions.org/questions/linux-networking-3/samba-3-cant-write-to-shared-directories-from-windows-211059/)

robintw 07-29-2004 11:06 AM

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.

Thanks in advance

Robin

ZaphyR 07-29-2004 01:00 PM

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!

robintw 07-29-2004 01:02 PM

Hi

You right clicked on the folder...in which program?

Robin

ZaphyR 07-29-2004 01:13 PM

i used Konqeror

robintw 07-29-2004 01:14 PM

Hi

Doesn't work for me!

No option for sharing under knoppix!

Robin

ZaphyR 07-29-2004 01:20 PM

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.

Vincent_Vega 07-30-2004 07:25 PM

Try chmod -R 755 /shared and see if that helps.

robintw 07-31-2004 03:36 AM

Hi

Thanks all...got it working now.

Thanks

Robin

robintw 07-31-2004 04:54 AM

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

sandgroper 07-31-2004 06:12 AM

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--

Vincent_Vega 07-31-2004 09:13 PM

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?


All times are GMT -5. The time now is 03:49 AM.