Solved

SAMBA SMB Server 3, on FC5, Hosting a shared folder to Windows client but can only read and not write

Posted on 2006-07-20
2
260 Views
Last Modified: 2010-08-05
G'day All,

For the life of me! Samba has been a pain. Have been following three books on it and the web and still can't get it to work.
I have Fedora Core 5, with Samba 3.0.21b-2, with a folder I would like to share to some windows clients.
For starters for some reason SWAT can't change my passwords because it says it can't find the accounts in the smbpasswd file, the file is there. But over the CLI I can add the passwords to the accounts and works fine. Don't know why SWAT just does not want to play.
Secondly, after finally managing to get a folder hosted on the windows network, it turns out that I can only read from it. No matter what I do, change permission on the folders, on SAMBA, users, force masks, force users , every body read and write, no good. I cannot get the shared folders to write from the windows clients. I've tried using other peoples configuration files with no luck. been checking the conf file with testparm and reloading the service.

Does any one have a smb.conf file which has been tested and works. I just need to be able to share a folder to a windows network and have ready write access to it. And also the permissions on the linux folders.

Any assistance very much apreciated!!!

thank you all!!

AM
0
Comment
Question by:Arthur_Mino
2 Comments
 
LVL 12

Accepted Solution

by:
ibu1 earned 500 total points
Comment Utility
Follow this example

[share]
comment = share
path = /Downloads
readonly = no
browsable = yes
writeable = yes
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode =  0777


Check that the shared directory has the permission of 777.If it is not do this

# chmod -R  777 /Download

Best of luck

0
 
LVL 6

Author Comment

by:Arthur_Mino
Comment Utility
G'day ibu1 and all,

Ok it took me all night but I found the cause of my mistake.


Your config file ibu1 is correct and it works.

But it turns out that because I had SWAT running and I was modifying the smb.conf file as well, this would cause a conflict between the two. There fore not just loading in my edited CLI smb.conf file but the SWAT file as well.

I noticed this when I was running the testparm smb.cnf, it would only show part of my settings. With a better look it all fell in to place.

I strongly suggest for people running SWAT to make sure you don't go back to the CLI to change the SMB file.

Thank you for getting back to me.


Cheers,

AM
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

11 Experts available now in Live!

Get 1:1 Help Now