Displaying 20 results from an estimated 500 matches similar to: "Samba can't access dir - SELinux problem?"
2008 Jan 21
0
SELinux issue
Hey all... not exactly an SELinux veteran, but am trying to work
through some issues.
Specifically, setting up a simple Samba configuration on a CentOS 5
machine. Determined I needed to do
setsebool -P samba_enable_home_dirs 1
In order to get access to home directory shares working correctly.
Fine; this is documented in samba_selinux(8).
However, I still see the following in my
2010 Dec 17
1
Passing LD_LIBRARY_PATH through sudo
Hello,
I have a CentOS 5.5/64bit VM, where I only have sudo rights:
afarber ALL=(ALL) NOPASSWD: ALL
I'm trying to pass LD_LIBRARY_PATH
through sudo to install DBD::Oracle
( https://rt.cpan.org/Ticket/Display.html?id=63678 )
and have tried using "sudo -E" and also
changing these lines in the stock /etc/sudoers:
Defaults !env_reset
Defaults env_keep =
2012 Jan 20
1
Setting From address for cronjob mails (because Gmail rejects)
Hello,
I have two identical CentOS 6.2 machines with
stock Postfix package and unchanged config:
# rpm -qa|grep post
postfix-2.6.6-2.2.el6_1.x86_64
# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
2016 Jun 24
1
haproxy + Apache + virtual hosts -> wrong host is displayed
Hello,
I hope my question is not off-topic here.
On CentOS 7.2.1511 I have installed:
haproxy-1.5.14-3.el7.x86_64
httpd-2.4.6-40.el7.centos.1.x86_64
The /etc/haproxy/haproxy.cfg binds HAProxy to
ports 80 and 443 and accepts HTTPS to slova.de:
defaults
mode http
option http-server-close
option forwardfor except 127.0.0.0/8
option
2011 Jan 31
1
Squid and SELinux
Hi.
I'm trying to setup squid with SELinux, the problem i encounter is taht
i want to add another directory for cache, in this system we have a home
partition with huge space, i create a squid dir and add the path with
semanage:
semanage fcontext -a -t squid_cache_t '/home/squid(/.*)?'
i check the files and are in the good context:
drwxr-xr-x squid squid
2006 Aug 25
1
SELinux targeted - named, portmap and syslogd errors
Yesterday I activated SELinux in targeted mode, then I rebooted and started
receiving some error messages in the system services initialization:
======================================================================
audit(1156518721.252:2): avc: denied { read } for pid=2223 comm="syslogd"
name="libc-2.3.4.so" dev=dm-0 ino=50441 scontext=user_u:system_r:syslogd_t
2008 Aug 01
2
BackupPC 3.1.0 on CentOS 5.2 triggers SE Linux denial
Hi. I've installed BackupPC 3.1.0 from Testing repository, to Cent
OS 5.2 x86_64, and I am hitting an SE Linux denial - the httpd cannot
talk to the BackupPC socket:
type=AVC msg=audit(07/31/2008 17:18:53.623:410) : avc: denied {
connectto } for pid=11767 comm=httpd
path=/var/log/BackupPC/BackupPC.sock
scontext=user_u:system_r:httpd_t:s0
tcontext=user_u:system_r:initrc_t:s0
2007 Mar 12
2
selinux disable but still working
I have some centos 4.4 server. i have disable selinux for some software
problem:
# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disable
#
2007 Nov 13
1
Can't get samba to start.
Hey,
I'm having problems with samba. It has never worked properly on my server
since I've had it installed.. Its for a home server, running xbox-Linux
Fedora Core 6.
I've just uninstalled every trace of the old samba, and started a fresh.
With the latest samba sources I found on the website.
The nmbd starts fine, but smbd never starts, and in the kernel log, I get
the following
2010 Sep 29
5
Forbidden: can't access *.html files in /var/www/html
Hello,
I'm using the latest CentOS with phpBB 3.0.x + postgreSQL + sendmail
(relayed through gmail.com) - all those programs working fine,
with no big modifications of the CentOS defaults (i.e. SELinux is on).
Now I'm struggling with the seemingly simple problem, that when
I put an .html file into /var/www/html/ then Apache won't serve it.
In the browser I see:
"Forbidden
You
2009 Dec 10
3
An error message I don't recognize
I have recently been told I will have to maintain some CentOS servers at
work. Since I have only been using Slackware for the last 16 years, I
decided to install CentOS on one of my servers at home to get an idea of
the differences. I installed CentOS 5.4 from CD with no problems, did a
yum update, set up a couple of samba shares and started to copy over
some files from one of my other
2008 Oct 30
1
nfs mounted /home and selinux
I'm trying to set the context on an nfs mounted /home. I believe
exactly like in Redhat's Deployment Guide at
http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.2/html/Deployment_Guide/ch45s02s03.html
On my system running CentOS 5.2:
$ ls -alZ /home
drwxr-xr-x root root system_u:object_r:home_root_t .
drwxr-xr-x root root system_u:object_r:root_t ..
$ mount -t
2011 Jan 14
1
httpd and selinux
Hello,
Running httpd-2.2.3-43.el5.centos.3 on CentOS release 5.5 (Final), I
have :
$ ps -Ze
LABEL PID TTY TIME CMD
user_u:system_r:httpd_t 12833 ? 00:00:00 httpd
Is it normal for httpd to have this context (user_u:system_r:httpd_t) ?
I was expecting system_u:system_r:httpd_t.
And if it is not normal, is it because I have restarted httpd by
2011 Sep 08
1
Trying to understand SELinux MSG
Hello,
I received the below SELinux message today and I am trying to figure out what
caused it. I see what it says under Allow Access but I am not sure this is
what I really want to do without know why it happened in the first place.
What should I be looking at to understand what or why this has happened?
Any help I would be most grateful for.
Here is the output form SELinux
SUMMARY:
2008 Aug 06
2
Dovecot PAM sessions with Maildir
I am configuring a new mail server on RHEL 5 x64. I have configured
dovecot as follows:
...
protocols = imaps
...
ssl_cert_file = /etc/pki/dovecot/certs/mailserver.cer
ssl_key_file = /etc/pki/dovecot/private/mailserver.pem
...
login_process_size = 64
...
mail_location = maildir:~/Maildir
...
passdb pam {
args = "session=yes cache_key=%u%s dovecot"
}
...
I'm getting the following
2008 Oct 04
2
ejabberd 2.0.2 vs SELinux vs CentOS 5
Lordy, I've been having problems with this darn thing, so I hope someone
can help me. :s
My troubles started when I downloaded the latest erlang and ejabberd
packages. I crashed and burned very quickly, trying two or three
different versions of erlang along with several of ejabberd 2.0.x.
Finally, after a week of pain, I admitted defeat, wiped the whole lot
and installed the binary on the
2006 Sep 02
1
imap fails, policy wrong?
up until a week or so ago, I had no problem using IMAP logging into a server
running Fedora Core (I think 4 or 5 ) with dovecot 1.0. Had used squirrelmail
and other mail agents using IMAP with no problem. as of 2 days ago, I
get a squirrelmail error "ERROR: Connection dropped by IMAP server.
Query: CAPABILITY" and turning on dovecot debugging shows the following:
2007 May 25
1
smbd write failure, kernel
Hello!
I have samba 3.0.23c-2 installed on Fedora Core 7. Smbd and nmbd daemons
start automotically with computer via commands in rc.local:
smbd -D
nmbd -D
But there is one problem. When smbd starts via rc.local, it can't write
files to the disk.
And when I start it myself, everything is fine.
smbd.log:
[2007/05/21 09:49:06, 0] lib/util_sock.c:write_data(562) write_data:
write failure
2005 Nov 12
5
selinux stuff - I just don't get
I am getting tons of these messages since I updated to 4.2
Nov 12 12:21:39 srv1 dbus: Can't send to audit system: USER_AVC pid=2839
uid=81 loginuid=-1 message=avc: denied { send_msg } for
scontext=user_u:system_r:unconfined_t tcontext=user_u:system_r:initrc_t
tclass=dbus
Now I can see this process...
# ps aux|grep 2839
dbus 2839 0.0 0.3 16168 1888 ? Ssl Nov11 0:13 dbus-
2012 Nov 26
0
Installation and Setup of Samba4 AD DC on CentOS6
I have setup a Samba4 server and would like to report my experiences in
the hope that it may be helpful to others.
I basically followed the official Samba4 HowTo, which is very good.
Based on what I have seen, this is the only document I would recommend
people to follow. I will try not to repeat things that are covered in
the HowTo, but rather focus on what I did differently or additionally,