LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2006, 09:52 AM   #1
tosszafer
LQ Newbie
 
Registered: Oct 2004
Posts: 18

Rep: Reputation: 0
Samba & windows write problem.


hi,

i've a machine on which FC4 is installed. and on this machine, i want to create the share folders which will be available from Win Machines. of course, i use Samba [ver. 3.0.14a-2] and /etc/samba/smb.conf :

##########################################
[global]
workgroup = MyworkGroup
netbios name = SHARING_MACHINE
server string = Samba
hosts allow = 10.0.3. 127.

log file = /var/log/samba/%m.log
max log size = 10000
security = share
load printers = no
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = yes
preferred master = yes
dns proxy = no
invalid users = root guest

### GROUPS ###############################
[TECH]
comment = Tech Dept Directory
writeable = yes
valid users = @tech
path = /data/tech/
create mode = 0660
directory mode = 0770
#### USERS ###############################
[TECH-USER1]
comment = USER1 directory
path = /data/users/user1
valid users = user1
browseable = yes
public = yes
writable = yes
delete readonly = yes
hide dot files = yes

[TECH-USER2]
comment = USER2 home directory
path = /data/users/user2
valid users = user
public = yes
writable = yes
###########################################

and the privileges for the shared folder is something like that :

drwx------ 3 user1 tech 4096 Mar 8 14:15 user1
drwx------ 3 user2 tech 4096 Mar 8 14:15 user2

drwxrwx--- 2 tech tech 4096 Mar 8 14:18 tech
###########################################
i easily do scp to these directories with the users.

and the problem is coming :
when i try to connect form Win machine to these, i can look into the user1's directory and tech's directory (and respectively user2), also copy the files from here to Win Local. But i can not change their content, name or create new file, copy a file into the directories. i get this error :
When copying :
"Cannot copy t.txt : Access is denied. Make sure the disk is not full or write-protected and that file is not currently in use."

When changing content/filename:
"check your write privileges...etc"

It seems a "Read-only" problem. But i gave all rights to the users and also i tried all combinations of "writable / read only / ... etc" properties.

and i read this link:
http://www.linuxquestions.org/questi...threadid=56693

doesnot work for my attempt...

i will be preciated if anyone of you can help me about this problem!...

Thanks in advance....
 
Old 03-18-2006, 06:36 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
May be if you chown those directories to 666 they might work.
 
Old 03-19-2006, 04:50 AM   #3
tosszafer
LQ Newbie
 
Registered: Oct 2004
Posts: 18

Original Poster
Rep: Reputation: 0
yeah i did it but not working...

it may be related with firewall rules(iptables).
i ll try it to disable..
 
Old 03-22-2006, 07:24 AM   #4
tosszafer
LQ Newbie
 
Registered: Oct 2004
Posts: 18

Original Poster
Rep: Reputation: 0
got it....

i read this document and step by step i applied to my system and its working now.
http://aplawrence.com/Unixart/samba-guide.html

thanks BigDumbDinosaur...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows ME cannot write to SAMBA shares apostate Linux - Software 2 07-30-2005 10:56 PM
Can't write to Samba share from Windows Needlotsahelp Linux - Newbie 3 07-30-2005 08:32 PM
Can not write to Samba Linux Shares from Windows boyd98 Linux - Software 2 05-12-2005 05:51 PM
Samba 3: Can't write to shared directories from Windows robintw Linux - Networking 10 07-31-2004 09:13 PM
can't write to VFAT samba share from WIndows dvanaken Linux - Software 3 05-13-2003 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration