You are not logged in.

#1 2011-08-10 20:49:59

mezcal
Member
From: Czech Republic
Registered: 2006-01-31
Posts: 67
Website

[SOLVED] syslog-ng doesn`t start,Permission denied (13)

Hello,

I have a new HDD. I have copied the system to the new disk.
Everything seems OK. Syslog does not start.

Starting Syslog-NG                                                    [BUSY] Error opening configuration file; filename='/etc/syslog-ng/syslog-ng.conf', error='Permission denied (13)'

I have tried chmod 666,777 .
Reinstalling syslog-ng.
Formating and copying the system again

I`m confused.
Any idea what should be the problem.

Last edited by mezcal (2011-08-11 13:31:56)

Offline

#2 2011-08-10 21:20:58

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [SOLVED] syslog-ng doesn`t start,Permission denied (13)

Check the permissions on the directory it's in, also.

ls -ld /etc
ls -ld /etc/syslog-ng
ls -l /etc/syslog-ng/syslog-ng.conf

It's worth checking the permissions on /tmp as well, since weird things happen if it's not right:

drwxrwxrwt 7 root root 200 Aug 10 17:08 /tmp

Offline

#3 2011-08-11 05:02:38

mezcal
Member
From: Czech Republic
Registered: 2006-01-31
Posts: 67
Website

Re: [SOLVED] syslog-ng doesn`t start,Permission denied (13)

thanks.

Permissions are same as on my working laptop.

[root@wsf ~]# ls -ld /etc
drwxr-xr-x 79 root root 4096 11. srp 06.42 /etc
[root@wsf ~]# ls -ld /etc/syslog-ng
drwxr-xr-x 3 root root 4096 10. srp 22.15 /etc/syslog-ng
[root@wsf ~]# ls -l /etc/syslog-ng/syslog-ng.conf
-rw-r--r-- 1 root root 3674 13. čec 05.01 /etc/syslog-ng/syslog-ng.conf
[root@wsf ~]# ls -ld /tmp
drwxrwxrwt 13 root root 4096 11. srp 06.52 /tmp

Offline

#4 2011-08-11 10:17:26

mezcal
Member
From: Czech Republic
Registered: 2006-01-31
Posts: 67
Website

Re: [SOLVED] syslog-ng doesn`t start,Permission denied (13)

Apache is not working too.

[Thu Aug 11 12:08:13 2011] [error] [client 127.0.0.1] (13)Permission denied: access to /info.php denied
[Thu Aug 11 12:08:13 2011] [error] [client 127.0.0.1] (13)Permission denied: access to /error/HTTP_FORBIDDEN.html.var denied

Has archlinux SELinux or something like this.?

Offline

#5 2011-08-11 13:31:25

mezcal
Member
From: Czech Republic
Registered: 2006-01-31
Posts: 67
Website

Re: [SOLVED] syslog-ng doesn`t start,Permission denied (13)

I have created new partitions by fdisk and filesystem by mkfs.ext4. Then I copied the system. cp -a /mnt/old/* /mnt/new
It`s working now.

The only difference I had used GUI disk utility for formating and partitioning before.

Offline

Board footer

Powered by FluxBB