Tuesday, August 14, 2012

Security Enhanced Linux

Wanted to share one of the Linux folder to the team [windows users ;-)] within the network. Thought it's good to start samba service and followed the step's mentioned in this link.

I was able to start the service but not able to access the folders from windows machine. Looked at the log "/var/log/samba/smbd.log" and noticed below error.

  '/home/someuser' does not exist or permission denied when connecting to [SharedFolder] Error was Permission denied
[2012/08/12 14:03:04, 0] smbd/service.c:make_connection_snum(1003)

I have given all rights and tried all possible debugging, finally found that recent addition of Security Enhanced access control policy denies access to that shared folder.  To find out use the command "getenforce", to disable the enforcement used command "setenforce 0"

It also can be configured in file "/etc/selinux/config"  but requires restart.

Happy Sharing! 

No comments:

Running Jobs as application user in Cloudera hadoop distribution

When an Hadoop cluster is not enabled with Kerberos authentication, Internally triggered jobs would be running as an 'yarn' user ra...