Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th April 2012, 12:26 AM
StefanJ Offline
Registered User
 
Join Date: Nov 2006
Posts: 101
linuxfirefox
Some services do not start after /var move; permission problems?

(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.

Last edited by StefanJ; 6th April 2012 at 11:41 PM.
Reply With Quote
  #2  
Old 7th April 2012, 04:13 PM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 800
windows_xp_2003chrome
Re: Some services do not start after /var move; permission problems?

You probably should have used the "-a" flag.
Would have saved you some hassle.
Reply With Quote
  #3  
Old 7th April 2012, 04:35 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,097
linuxfirefox
Re: Some services do not start after /var move; permission problems?

Using a "restorecon /var" might also have saved time.

Note: not all files in /var are owned by root. (/var/spool set -/mail has files owned by each user, group mail; abrt -owned by abrt, abrt-upload - saslauth group smolt.. at owned by daemon, clientmquue owned by smmsp, cups - group lp, squid - owned by squid) then there are the /var/www files that are owned by apache and others,
Reply With Quote
Reply

Tags
or var, permission, problems, services, start

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some services don't start eliassal Servers & Networking 4 7th June 2010 06:05 PM
permission denied to move a file, Fedora 10 baerb8 Using Fedora 7 25th December 2008 02:36 AM
services delayed start, services dependencies, bootup pankajp Using Fedora 0 9th September 2008 02:23 PM
Services won't start after FC2 -> FC3 fjleal Servers & Networking 13 18th October 2005 01:42 AM
Cant start services mugs Servers & Networking 10 26th August 2004 12:52 AM


Current GMT-time: 05:26 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat