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
261 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
ID: 17159055
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
ID: 17159737
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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

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

Suggested Solutions

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…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

947 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

21 Experts available now in Live!

Get 1:1 Help Now