Solved

samba can not write to folder but can read

Posted on 2006-06-21
2
617 Views
Last Modified: 2012-08-13
I have folder staff4 in linux debian samba I can see in side the folder but I can not copy the file to folder How can i change the permision I can write in that folder in windowsmachine I have a root password of linux debian server
0
Comment
Question by:teera
2 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 210 total points
ID: 16957914
There are 2 issues here.

First, the user that is connecting must be provided with read-write access by the samba server. This means that the samba share must have in it's configuration for the share concered the entry:

writeable = yes

or similar. (CHeck your /etc/samba/smb.conf file

Secondly the file (and older containing it must have read/write permission with respect to the identity that you are connecting as. Check using:

ls -al /folder/being/shared

(   (()
(`-' _\
 ''  ''
0
 
LVL 5

Assisted Solution

by:csgeekpyro
csgeekpyro earned 210 total points
ID: 16962520
This sounds like the folder is o+x but the files in it aren't properly +r for your username.  Aside from that...

2 things to verify:

1. The create mask of the share.
2. The inherit permissions directive.

The man page will tell you all about these 2 things.  #2 is especially important if you log in to the samba server as say, root...and put a file in a user's home directory.  Found that out the hard way ;)

Oh, and if you have selinux set up in the kernel, verify your selinux policies for samba.  I set up a samba server on FC5 and selinux screwed me hard for about an hour till I gave up and asked google.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question