Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
I was able to mount the partitian an browse its contents. My problem now is that i cannot write/creati files in the partition and this again is clearly a SElinux issue since when i disable selinux i can write and create files.
I do understand that if i enable the below seboolean:
samba_export_all_rw --> off
it will allow me to write but i think this is not recommended since this will allow samba to access any file/folder system which in fact negates the security of SELinux.
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
comment = test folder for samba service
path = /sambafolder
valid users = dude
read list = dude
read only = No
hosts allow = 192.168.0.
and the permissions on the relevant folder are 777
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.