LinuxQuestions.org
Visit Jeremy's Blog.
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 09-11-2005, 11:01 AM   #16
d00msdaypr0phet
Member
 
Registered: Mar 2005
Location: Oregon
Distribution: Debian, Ubuntu, Whatever
Posts: 32

Rep: Reputation: 15

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-
 
Old 09-11-2005, 12:29 PM   #17
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
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.
 
Old 09-11-2005, 04:21 PM   #18
perihelion
LQ Newbie
 
Registered: Sep 2005
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 09-11-2005, 04:24 PM   #19
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
What did it show when it denied permission?
 
Old 09-11-2005, 05:26 PM   #20
perihelion
LQ Newbie
 
Registered: Sep 2005
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 09-11-2005, 05:28 PM   #21
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
Really odd. I wonder what interaction they have. And people wonder why I won't touch SELinux
 
Old 03-12-2012, 11:39 AM   #22
davidedwardgill
Member
 
Registered: Apr 2008
Location: Michigan
Distribution: RedHat EE 5
Posts: 37

Rep: Reputation: 15
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.
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 02:35 AM
Can't write to Samba share erikcw Linux - Software 3 01-26-2005 04:59 AM
Unable to write to Samba Share sephiro499 Linux - Newbie 8 11-30-2004 01:05 PM
samba share with write but not delete Red Squirrel Linux - Software 7 08-29-2004 07:12 PM
Samba: Cannot write greater than 2 GB to share SparceMatrix Linux - Software 13 01-17-2004 03:13 AM

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

All times are GMT -5. The time now is 04:28 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration