samba with SElinux write issues
Greetings
I have set up a samba sever on a RedHat 6 system with selinux on enforcing mode. I created a test folder under /sambafolder and when i tried to mount ti was getting connection permissions error. The issue was caused because the relevant folder had wrong type context so after changing the folder context to Code:
samba_share_t I do understand that if i enable the below seboolean: Code:
samba_export_all_rw --> off My question is how do you actually solve this issue? how do you now allow write access to the samba partition? my samba config file is Code:
[sambafolder] |
UPDATE
even with selinux in permissive mode still get the same error :-s this is weird , the folder permission is 777, the samba config clearly configured to allow writes but i still get permission errors any ideas? |
Try adding 'writeable = yes' and see what happens...
|
I also tried with 'writeable = yes' but same results.
I read somewhere that this has to do with some sort of uid thing so if it might help the experts i executed an strace on the touch command. Heres the output: Quote:
|
UPDATE-2
Ok i made a progress but i my issue is not yet solved. The reason i could not create files was because i had the below option on the smb.conf file: Quote:
Now if i execute touch command i still get the permission error but the file is created. I cant edit it tho nor make any modifications inside the text file. |
Ok i have another update
if i mount the cifs share as a root i can read/write and create files without any issues. If i mount the folder as a non root user i can touch a file but get permission denied but the file is created how ever i cannot edit it. Why is this happening? i mean i mount the share as the user "dude" which is the authorized user for the specific share and the folder it self has 777 permission. I dont get it anyone has an idea why this is happening? |
I still havent figured this out and still have no clue why this is happening.
I made a new folder chmod it to 777 shared with samba mount it succesfully, but still get permission denied :-S SElinux is off Quote:
Quote:
Any samba guru for advise? |
All times are GMT -5. The time now is 11:51 AM. |