• 1
I instead receive a "You don't have permission to access / on this server." "Apache/2.2.3 (Fedora) Server at localhost Port 80" No Icon for selinux
Could you include a screenshot of the event?


[root@Notebook1 ~]# service setroubleshoot restart
Stopping setroubleshootd: [ OK ]
Starting setroubleshootd: [ OK ]
[root@Notebook1 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@Notebook1 ~]# ls -la /var/www/html
total 24
drwxr-xr-x 2 root root 4096 Nov 21 04:51 .
drwxr-xr-x 6 root root 4096 Nov 18 20:33 ..
-rw-r--r-- 1 jim jim 201 Nov 21 05:02 index.html
[root@Notebook1 ~]# su jim
[jim@Notebook1 root]$ /sbin/service --status-all
anacron is stopped
atd is stopped
automount is stopped
Avahi daemon is not running
Avahi DNS daemon is not running
hcid is stopped
sdpd is stopped
capi not installed - No such file or directory (2)
cpuspeed is stopped
crond (pid 2208) is running...
cupsd is stopped
cups-config-daemon is obsolete
cat: /var/run/dhcdbd.pid: Permission denied
Device not specified in /etc/sysconfig/diskdump
dund is stopped
Usage: /etc/init.d/firstboot {start|stop}
gpm (pid 2176) is running...
hald is stopped
hidd is stopped
hpiod is stopped
hpssd is stopped
Only 'root' may use this init script
httpd (pid 6901) is running...
/etc/init.d/ip6tables: line 45: /etc/sysconfig/ip6tables-config: Permission denied
Firewall is not configured. <--- maybe the issue is here? selinux is set to enforcing.
irattach is stopped
lircmd is stopped
lircd is stopped
mdmpd is stopped
dbus-daemon (pid 5064) is running...
multipathd is stopped
nasd dead but subsys locked
Server address not specified in /etc/sysconfig/netdump
netplugd is stopped
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1
NetworkManager (pid 2385) is running...
NetworkManagerDispatcher is stopped
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped
rpc.statd (pid 1892) is running...
nscd is stopped
ntpd is stopped
pand is stopped
/etc/init.d/functions: line 137: /var/run/pcscd.pid: Permission denied
pcscd dead but pid file exists
portmap dead but subsys locked
Process accounting is disabled.
rdisc is stopped
restorecond (pid 4652) is running...
rpc.idmapd is stopped
saslauthd is stopped
sendmail is stopped
smartd dead but subsys locked
spamd is stopped
sshd (pid 2065) is running...
/etc/init.d/functions: line 137: /var/run/syslogd.pid: Permission denied
syslogd dead but pid file exists
/etc/init.d/functions: line 137: /var/run/klogd.pid: Permission denied
klogd dead but pid file exists
Xvnc is stopped
winbindd is stopped
wpa_supplicant is stopped
xfs (pid 2246) is running...
ypbind is stopped

I instead receive a "You don't have permission to access / on this server." "Apache/2.2.3 (Fedora) Server at localhost Port 80" No Icon for selinux
Could you include a screenshot of the event?


[root@Notebook1 ~]# service setroubleshoot restart
Stopping setroubleshootd: [ OK ]
Starting setroubleshootd: [ OK ]
[root@Notebook1 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@Notebook1 ~]# ls -la /var/www/html
total 24
drwxr-xr-x 2 root root 4096 Nov 21 04:51 .
drwxr-xr-x 6 root root 4096 Nov 18 20:33 ..
-rw-r--r-- 1 jim jim 201 Nov 21 05:02 index.html
[root@Notebook1 ~]# su jim
[jim@Notebook1 root]$ /sbin/service --status-all
anacron is stopped
atd is stopped
automount is stopped
Avahi daemon is not running
Avahi DNS daemon is not running
hcid is stopped
sdpd is stopped
capi not installed - No such file or directory (2)
cpuspeed is stopped
crond (pid 2208) is running...
cupsd is stopped
cups-config-daemon is obsolete
cat: /var/run/dhcdbd.pid: Permission denied
Device not specified in /etc/sysconfig/diskdump
dund is stopped
Usage: /etc/init.d/firstboot {start|stop}
gpm (pid 2176) is running...
hald is stopped
hidd is stopped
hpiod is stopped
hpssd is stopped
Only 'root' may use this init script
httpd (pid 6901) is running...
/etc/init.d/ip6tables: line 45: /etc/sysconfig/ip6tables-config: Permission denied
Firewall is not configured. <--- maybe the issue is here? selinux is set to enforcing.
irattach is stopped
lircmd is stopped
lircd is stopped
mdmpd is stopped
dbus-daemon (pid 5064) is running...
multipathd is stopped
nasd dead but subsys locked
Server address not specified in /etc/sysconfig/netdump
netplugd is stopped
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1
NetworkManager (pid 2385) is running...
NetworkManagerDispatcher is stopped
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped
rpc.statd (pid 1892) is running...
nscd is stopped
ntpd is stopped
pand is stopped
/etc/init.d/functions: line 137: /var/run/pcscd.pid: Permission denied
pcscd dead but pid file exists
portmap dead but subsys locked
Process accounting is disabled.
rdisc is stopped
restorecond (pid 4652) is running...
rpc.idmapd is stopped
saslauthd is stopped
sendmail is stopped
smartd dead but subsys locked
spamd is stopped
sshd (pid 2065) is running...
/etc/init.d/functions: line 137: /var/run/syslogd.pid: Permission denied
syslogd dead but pid file exists
/etc/init.d/functions: line 137: /var/run/klogd.pid: Permission denied
klogd dead but pid file exists
Xvnc is stopped
winbindd is stopped
wpa_supplicant is stopped
xfs (pid 2246) is running...
ypbind is stopped


jim

resolved

A: forgot that apache needs to be the owner of files and the setcon error popped up

B: change the type to httpd_sys_content_t resolvce

> # You should see a denial on firefox
> # An icon should appear in the upper right hand corner indicating an SELinux > Denial has occured

I have the denial (403 forbidden in Firefox) but no icon appears in the notification area. When I try to launch sealert (which seems to be the denial browser) I get :
-----------
[mathieu@bochecha ~]$ sealert
Introspect error: Message did not receive a reply (timeout by message bus)

(Navigateur setroubleshoot:4417): libglade-CRITICAL **: glade_xml_build_interface: assertion `wid != NULL' failed
Traceback (most recent call last):
File "/usr/bin/sealert", line 438, in ?
start_service()
File "/usr/bin/sealert", line 376, in start_service
app.main()
File "/usr/bin/sealert", line 350, in main
self.browser = BrowserApplet()
File "/usr/lib/python2.4/site-packages/setroubleshoot/browser.py", line 79, in __init__
self.init_widgets()
File "/usr/lib/python2.4/site-packages/setroubleshoot/browser.py", line 104, in init_widgets
self.window.connect_after("realize", self.on_realize)
AttributeError: 'NoneType' object has no attribute 'connect_after'
[mathieu@bochecha ~]$
-----------
What's the problem ?

Thanx

bochecha

erwqe

(Anonymous)
wer

thanks for the guideline man. i will keep this in my archive.
------------
muhabbet | Korku | netlog | hi5

  • 1
?

Log in