LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-26-2006, 09:17 AM   #1
rels
LQ Newbie
 
Registered: May 2006
Location: Toronto
Distribution: Cobalt RaQ4 (v6)
Posts: 2

Rep: Reputation: 0
Samba - can't write to share


I have recently activated Samba on my Cobalt RaQ4 - Cobalt Linux release 6.0 (Shinkansen-Decaf) Kernel 2.2.16C37_III on an i586.

Everything seems to work fine. I can navigate via Computers close to me, I can map the share to a drive, but I can't write to it (drop a file on it). When I map the share, I specify the user name. I use a different login to access Samba than my Win login. Any ideas why I can't write?

My smb.conf looks like:

[global]
netbios name = Raq4
workgroup = WORKGROUP
map to guest = bad user
server string = Samba Server
log file = /var/log/samba/log.%m
max log size = 50
security = user
encrypt passwords = yes
smb passwd file = /etc/smbpasswd
passwd program = /sbin/passwd %u
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no

[homes]
comment = Home Directories
browseable = yes
writable = yes

[jezshare]
path = /storage/jezshare
writeable = yes
public = no
browseable = yes
printable = no
create mask = 0775
valid users = admin
veto files = .*
comment = jez shared storage directory
 
Old 05-26-2006, 09:41 AM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
your umask is 755, so the owner can RWX, but group/everyone else can only RX.

Since your win and Local user are different, the account you're accessing the share with falls under 'everyone else' who doesnt have write access...

Add your win username/pass to your local system, and give it a smb password, put it in the group who owns that share and change permissions to 775.

That way if you have any other users yo ucan add them to the group too, much cleaner than chown'ing the share to your username.
 
Old 05-26-2006, 12:39 PM   #3
rels
LQ Newbie
 
Registered: May 2006
Location: Toronto
Distribution: Cobalt RaQ4 (v6)
Posts: 2

Original Poster
Rep: Reputation: 0
A couple of things. I think you misread my smb.conf - I see the create mask as 775 as you suggest. Is that the same as the umask you refer to?

I set the owner and group to nobody, since I saw a suggestion indicating that was the best method for sharing r/w volumes. One person even said it was required to work.

Are you suggesting I create matching users and groups on both XP and Linux/Samba?

Note that I am using this on a LAN and not exposed to the web. Thx
 
  


Reply

Tags
permissions, samba, write



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
Can't write to Samba Share perihelion Linux - Software 21 03-12-2012 10:39 AM
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
Can't write to Samba share erikcw Linux - Software 3 01-26-2005 03:59 AM
Creating a Samba Write share Menestrel Linux - Software 1 01-11-2005 09:16 PM
Unable to write to Samba Share sephiro499 Linux - Newbie 8 11-30-2004 12:05 PM

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

All times are GMT -5. The time now is 03:54 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