Solved

samba can not write to folder but can read

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

862 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now