(I had posted this message to a thread about moving /var, but I believe there's something else going on.)
I was able to move /var on an SSD to a partition on a RAID, by booting to the a "live" install on a thumbdrive, mounting the old and new partitions, and copying using "cp -vpR (old) (new)".
The system boots, no problem.
However, when I try to log in as my ordinary user:
Quote:
pr 2 18:16:08 linuxgame systemd-logind[955]: New session 1 of user FOO.
Apr 2 18:16:08 linuxgame systemd-logind[955]: Linked /tmp/.X11-unix/X0 to /run/user/stefan/X11-display.
Apr 2 18:16:08 linuxgame kdm: :0 '[1195]: Cannot create authorization file in /var/run/kdm: Permission denied
Apr 2 18:16:08 linuxgame systemd-logind[955]: Removed session 1.
Apr 2 18:16:11 linuxgame NetworkManager[921]: (NetworkManager:921): GLib-GIO-WARNING **: Missing callback called fullpath = /var/run/ConsoleKit/database
Apr 2 18:16:19 linuxgame systemd-logind[955]: New session 2 of user FOO.
Apr 2 18:16:19 linuxgame systemd-logind[955]: Linked /tmp/.X11-unix/X0 to /run/user/stefan/X11-display.
Apr 2 18:16:19 linuxgame kdm: :0 '[1243]: Cannot create authorization file in /var/run/kdm: Permission denied
Apr 2 18:16:19 linuxgame systemd-logind[955]: Removed session 2.
|
X Windows started fine for the root user. (Using it right now!)
The files in question:
Quote:
drwxrwxrwt 2 root root 100 Apr 2 18:16 kdm
drwxr-xr-x 4 root root 80 Apr 2 18:16 pm-utils
drwx------ 2 root root 40 Apr 2 18:16 udisks
-rw------- 1 root smmsp 33 Apr 2 18:16 sendmail.pid
-rw-rw-r-- 1 root utmp 2304 Apr 2 18:17 utmp
drwx------ 3 root root 80 Apr 2 18:21 sudo
drwxr-xr-x 7 root root 160 Apr 2 18:23 udev
[root@linuxgame run]# ls -l kdm
total 8
-rw------- 1 root root 44 Apr 2 18:16 A:0-SB59Na
-rw-r--r-- 1 root root 5 Apr 2 18:15 kdm.pid
|
Digging through /var/log/messages, I also noticed:
Quote:
Apr 6 15:16:34 linuxgame dbus[957]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Apr 6 15:16:34 linuxgame dbus-daemon[957]: dbus[957]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Apr 6 15:16:34 linuxgame avahi-daemon[1332]: Found user 'avahi' (UID 70) and group 'avahi' (GID 70).
Apr 6 15:16:34 linuxgame avahi-daemon[1332]: Successfully dropped root privileges.
Apr 6 15:16:34 linuxgame avahi-daemon[1332]: open(/var/run/avahi-daemon//pid): Permission denied
Apr 6 15:16:34 linuxgame avahi-daemon[1332]: Failed to create PID file: Permission denied
Apr 6 15:16:34 linuxgame systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255
Apr 6 15:16:34 linuxgame systemd[1]: Unit avahi-daemon.service entered failed state.
Apr 6 15:16:35 linuxgame NetworkManager[912]: (NetworkManager:912): GLib-GIO-WARNING **: Missing callback called fullpath = /var/run/ConsoleKit/database
Apr 6 15:16:56 linuxgame chronyd[953]: Selected source 64.73.32.135
Apr 6 15:16:56 linuxgame chronyd[953]: Could not open temporary driftfile /var/lib/chrony/drift.tmp for writing
Apr 6 15:16:59 linuxgame dbus[957]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
Apr 6 15:16:59 linuxgame dbus-daemon[957]: dbus[957]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
Apr 6 15:17:00 linuxgame kernel: [ 46.950103] scsi_verify_blk_ioctl: 118 callbacks suppressed
Apr 6 15:17:00 linuxgame kernel: [ 46.950106] mdadm: sending ioctl 1261 to a partition!
Apr 6 15:17:00 linuxgame kernel: [ 46.950108] mdadm: sending ioctl 1261 to a partition!
Apr 6 15:17:02 linuxgame dbus-daemon[957]: ** Message: No devices in use, exit
Apr 6 15:17:17 linuxgame pulseaudio[1563]: pid.c: Stale PID file, overwriting.
Apr 6 15:17:17 linuxgame pulseaudio[1580]: pid.c: Daemon already running.
Apr 6 15:17:26 linuxgame sendmail[1104]: can not chdir(/var/spool/clientmqueue/): Permission denied
Apr 6 15:17:26 linuxgame sendmail[1104]: Program mode requires special privileges, e.g., root or TrustedUser.
Apr 6 15:17:26 linuxgame systemd[1]: sm-client.service: control process exited, code=exited status=78
Apr 6 15:17:26 linuxgame systemd[1]: Unit sm-client.service entered failed state.
|
Any ideas?
Thanks
Stefan
P.S. Selinux is set to "disabled." I tried running "restorecon -n -R /var" but nothing returned; I'm not sure if that rules out selinux as the cause, though.
---------- Post added at 04:26 PM ---------- Previous post was at 03:38 PM ----------
OK, I found a solution, and I'll post it here for others that run into this.
First, became the superuse and ran:
rpm -Va
This produced a nice list of files which were missing or had the wrong mode. To my great surprise, because I thought I'd properly copied over permissions, I found among the output:
.M....... /var
I believe that the "root" of the new partition which is now being mounted as root didn't have the write permissions.
I googled for the proper settings and issued:
chown -R root:root /var
chmod -R 755 /var
There were other problems, but I'll take care of those at my leisure. I can log in as my main user, and there were no errors starting services.