Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-04-2006, 05:19 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 19

Rep: Reputation: 0
RHEL4 + Samba + Selinux: chcon and setsebool error

This is driving me bananas.

I have samba up and running. I can connect and see my share directories.
However I can only browse my home directory. I get errors along the lines of

'/opt/samba-test' does not exist or is not a directory, when connecting to [samba-test]

in my log file.

Looking around the web I gather I have to sort out Samba with Selinux.

I've tried running

chcon -t samba_share_t /opt/samba-test

but i get this error

chcon: failed to change context of /opt/samba-test to system_ubject_r:samba_share_t: Invalid argument

I've also tried

setsebool -P smbd_disable_trans 1

but that gives

Error setting boolean smbd_disable_trans to value 1 (No such file or directory)

What am I doing wrong? And what should I be doing?


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
I think SELinux killed samba, but I am not sure neddis Linux - Newbie 1 07-19-2006 11:24 PM
mistake with chcon Archproject Red Hat 2 04-27-2006 11:26 AM
security, desktop, selinux, samba issues ciscohead Fedora 1 01-07-2006 05:14 PM
missing selinux files in RHEL4 net-warrior Red Hat 5 12-27-2005 01:54 PM
RHEL4 and Samba machine accounts wdingus Red Hat 3 04-25-2005 01:34 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration