Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
IF this partition in on your linux system I would recommend simplifying your config. Make the share public see if that works. also I would say use chmod 770 on the linux dir that shared. I dont know if you are in peer, domain, or ADS mode so this may seem vauge. Also Log files are you friends. Use them...even jack up the log levels to say 5 in the smb.conf if you can to glean more info as to the problem..atm you are shooting in the dark.
-ddp-
vimal - I'm not sure where you got that this has anything at all to do with ntfs. It doesn't, it's all samba on ext[2/3] or reiserfs.
I think snowbat hit it on the head. I missed it last night. That create mask should be 0000 to give full permissions to everyone. As a mask, it gets negated before being used.
Just for kicks and giggles I created a very simple wide open share.
[test]
comment = Test share
path = /shares/test
read only = No
guest ok = Yes
The /shares/test directory is set to 0777. I restarted the service, went to my XP box, and tried to copy "config.php" to the share. Again I was told either the disk was full or I lacked permission. I guess Samba just isn't for me. I did turn up the log level to 3 -- at that point I could see where the permission was being denied, but it didn't make any sense that it should be denied. It should be a simple, albeit very unsafe share that is writable by everyone.
OK... got it fixed. It was something stupid. I don't know much about SELinux, but once I shut it down and rebooted, everything started to magically work. Thanks for all the help.
This is a 7 year old thread. I am writing on it because it comes up first for google with "samba cannot write to share". This is an auto fill after samba cannot.
Anyway.
SELinux is a great security tool. You just need to know to use it. Anyone setting up actual servers SHOULD have SELinux running. If it is for your home videos or the such... Who really cares...
SELinux has rules, these are the rules that matter for a basic samba server. There ARE other rules for samba though.
setsebool -P samba_domain_controller 1
setsebool -P samba_enable_home_dirs 1
setsebool -P samba_export_all_ro 1
setsebool -P samba_export_all_rw 1
setsebool -P use_samba_home_dirs 1
SELinux's mystical why doesn't it work problems are labels. For what ever reason no one knows they exsist... Infact these labels can cause issues with SElinux off... I don't know how, but they can.
chcon -t samba_share_t \share\backup
If you are using a home server and really don't care. Don't just yum remove selinux. Make certain to find a good removal document for it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.