Solved

samba can not write to folder but can read

Posted on 2006-06-21
2
609 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ipconfig not working on windows 10 bash shell; what other commands are missing. 17 187
Backup & Restore 3 56
installing docker on ubuntu 6 29
linux 13 50
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

810 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