Hello,I need your help for resuming a colleague's NasAlt-f has been installed on a DNS-325 with two disks in Raid 1I cannot connect to the system anymore after a problem with access rights to disksBasically he messed up access to disks and folders that now belongs all to user root and group rootI think this is causing the startup failure of all services (web interface included)I cannot ssh to the system as well..The only services working is samba which gives a useless access to a shared folder
thanks Joaoby long pressing the back button I managed to re establish web after controlled rebootunfortunately services don't start as expectedSambashare do not work (though reported as to started and running)
synching doesn't start (without any message) and can't be configured either
minidlna doesn't start either (permission denied can' execute the program)
how can i try to recover a stable situation?
Nov 11 04:29:33 DNS-325 daemon.info avahi-daemon[2584]: Found user 'avahi' (UID 68) and group 'avahi' (GID 68). Nov 11 03:29:33 DNS-325 daemon.info avahi-daemon[2584]: Successfully dropped root privileges. Nov 11 03:29:33 DNS-325 daemon.err avahi-daemon[2584]: open(/var/run/avahi-daemon//pid): Permission denied Nov 11 03:29:33 DNS-325 daemon.err avahi-daemon[2584]: Failed to create PID file: Permission denied
Trying to figure out war's the problem I tried to install a package I've never installed beforethe daap server for iTunes.
installation and configuration runs smoothly from web uibut the service doesn't startlooking at system log report i see these linesNov 11 04:29:33 DNS-325 daemon.info avahi-daemon[2584]: Found user 'avahi' (UID 68) and group 'avahi' (GID 68). Nov 11 03:29:33 DNS-325 daemon.info avahi-daemon[2584]: Successfully dropped root privileges. Nov 11 03:29:33 DNS-325 daemon.err avahi-daemon[2584]: open(/var/run/avahi-daemon//pid): Permission denied Nov 11 03:29:33 DNS-325 daemon.err avahi-daemon[2584]: Failed to create PID file: Permission denied
[root@DNS-327L]# ls -l /var/runlrwxrwxrwx 1 root root 8 Jan 1 1970 /var/run -> /tmp/run
[root@DNS-327L]# ls -l /var/run/total 36drwxr-xr-x 16 root root 540 Nov 11 19:20 .drwxrwxrwt 12 root root 360 Nov 11 19:20 ..drwxr-xr-x 2 avahi avahi 80 Nov 11 19:20 avahi-daemondrwxr-xr-x 2 root root 60 Nov 11 19:20 dbusdrwxr-xr-x 2 daapd multimed 60 Nov 11 19:20 forked-daapd
[root@DNS-327L]# ls -l /var/run/avahi-daemon/total 4drwxr-xr-x 2 avahi avahi 80 Nov 11 19:20 .drwxr-xr-x 16 root root 540 Nov 11 19:20 ..-rw-r--r-- 1 avahi avahi 5 Nov 11 19:20 pidsrwxrwxrwx 1 avahi avahi 0 Nov 11 19:20 socket
[root@DNS-325]# ls -l /var/run
lrwxrwxrwx 1 root root 8 Jan 1 1970 /var/run -> /tmp/run
[root@DNS-325]# ls -l /var/run/
total 32
-rw-r--r-- 1 root root 4 Nov 11 21:51 crond.pid
-rw-r--r-- 1 root root 10 Nov 11 21:51 ifstate
-rw-r--r-- 1 root root 4 Nov 11 21:51 inetd.pid
drwxr-xr-x 2 root root 40 Jan 1 1970 mdadm
-rw-r--r-- 1 root root 4 Nov 11 21:51 nmbd.pid
-rw-r--r-- 1 root root 4 Nov 11 21:51 smbd.pid
-rw------- 1 root root 4 Nov 11 21:51 sysctrl.pid
-rw-r--r-- 1 root root 4 Nov 11 21:51 syslogd.pid
-rw-r--r-- 1 root root 768 Nov 11 21:56 utmp
drwxr-xr-x 2 root root 40 Nov 11 21:51 vsftpd
Basically he messed up access to disks and folders that now belongs all to user root and group root
Can anyone advise if is there any chance for me to resume access to this system?even drastic solutions are welcome in order to get back to a clean installation
[root@DNS-327L]# ls -l /usr/sbin/avahi-daemon-rwxr-xr-x 1 root root 96732 Nov 11 18:12 /usr/sbin/avahi-daemon[root@DNS-327L]# ls -l /etc/avahi/total 20drwxr-xr-x 5 avahi avahi 140 Nov 12 15:02 .drwxr-xr-x 49 root root 4096 Nov 12 15:02 ..-rwxr-xr-x 1 avahi avahi 2509 Jun 24 17:02 avahi-autoipd.action-rw-r--r-- 1 avahi avahi 1560 Jun 24 17:02 avahi-daemon.conf-rwxr-xr-x 1 avahi avahi 2743 Jun 24 17:02 avahi-dnsconfd.action-rw-r--r-- 1 avahi avahi 1121 Jun 24 17:02 hostsdrwxr-xr-x 2 avahi avahi 560 Nov 12 15:05 services[root@DNS-327L]# ls -l /etc/avahi/services/total 60drwxr-xr-x 2 avahi avahi 560 Nov 12 15:05 .drwxr-xr-x 5 avahi avahi 140 Nov 12 15:02 ..-rw-r--r-- 1 avahi avahi 253 Nov 11 18:12 afpovertcp.service--rw-r--r-- 1 avahi avahi 248 Nov 11 18:12 daap.service--rw-r--r-- 1 avahi avahi 245 Nov 11 18:12 ftp.service-rw-r--r-- 1 avahi avahi 247 Nov 11 18:12 ftps.service-rw-r--r-- 1 avahi avahi 261 Nov 11 18:12 http.service-rw-r--r-- 1 avahi avahi 270 Nov 11 18:12 https.service-rw-r--r-- 1 avahi avahi 246 Nov 11 18:12 ipp.service--rw-r--r-- 1 avahi avahi 300 Nov 11 18:12 nfs.service--rw-r--r-- 1 avahi avahi 246 Nov 11 18:12 ntp.service-rw-r--r-- 1 avahi avahi 250 Nov 11 18:12 printer.service-rw-r--r-- 1 avahi avahi 248 Nov 11 18:12 rsync.service-rw-r--r-- 1 avahi avahi 250 Nov 11 18:12 sftp-ssh.service-rw-r--r-- 1 avahi avahi 246 Nov 11 18:12 smb.service-rw-r--r-- 1 avahi avahi 245 Nov 11 18:12 ssh.service-rw-r--r-- 1 avahi avahi 248 Nov 11 18:12 telnet.service
[monitor] 09:03:08 INFO: Starting syncthing [monitor] 09:03:08 FATAL: open /dev/null: permission denied
I can start it from command line (as root) with assigned port 8384
but synching web ui is not accessible neither at 127.0.0.1:8384 nor at <nas-ip>:8383
what is happening now?
thanks JoaoI've moved to a clean state by reinstalling ALT-FSamba now works as expected, but still I can't make synching workafter launching it from webui the program fail to start and this is what the log reports[monitor] 09:03:08 INFO: Starting syncthing [monitor] 09:03:08 FATAL: open /dev/null: permission denied
[root@DNS-327L]# ls -l /dev/nullcrw-rw-rw- 1 root root 1, 3 Nov 11 18:12 /dev/null
I can start it from command line (as root) with assigned port 8384
[root@DNS-327L]# ls -l /var/log/syncthing/ /var/run/syncthing/ /var/lib/syncthing//var/log/syncthing/:drwxr-xr-x 2 syncthin sync 60 Nov 13 15:58 .-rw-r--r-- 1 syncthin sync 1762 Nov 13 16:02 syncthing.log/var/run/syncthing/:drwxr-xr-x 2 syncthin sync 60 Nov 13 15:58 .-rw-r--r-- 1 syncthin sync 5 Nov 13 16:02 syncthing.pid
/var/lib/syncthing/:-rw-r--r-- 1 syncthin sync 619 Oct 21 18:25 cert.pem-rw------- 1 syncthin sync 2119 Oct 21 18:25 config.xml-rw------- 1 syncthin sync 33 Nov 13 16:03 csrftokens.txt-rw-r--r-- 1 syncthin sync 1066 Nov 13 15:59 https-cert.pem-rw------- 1 syncthin sync 1675 Nov 13 15:59 https-key.pemdrwxr-xr-x 2 syncthin sync 4096 Nov 13 16:02 index-v0.13.0.db-rw------- 1 syncthin sync 288 Oct 21 18:25 key.pem
but synching web ui is not accessible neither at 127.0.0.1:8384 nor at <nas-ip>:8383what is happening now?
[root@DNS-325]# ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Jun 25 16:30 /dev/null
I can't understand why the log message reports access denied
in any case , I can't start synchthing web ui neither from command line nor from alt-f web ui ..