sid24ss / distcc

Automatically exported from code.google.com/p/distcc
GNU General Public License v2.0
0 stars 0 forks source link

RPM fails to create and assign ownership of /var/run/distcc #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The RPM fails to create /var/run/distcc. It's a pain with the cluster we're
running it over as it has to be corrected every time the compute nodes are
reinstalled, which is a routine event and can be triggered by users without
superuser access.

Answering the following questions is a big help:

1. What version of distcc are you using?

Building from 3.1-1 source using 'make rpm', and the distcc-server package
deployed and installed to host. Probably installed with rpm.

2. What platform are you running on?

Rocks 5.2, a cluster distribution based on CentOS 5.3

uname -a:
Linux compute-0-0.local 2.6.18-128.1.14.el5 #1 SMP Wed Jun 17 06:38:05 EDT
2009 x86_64 x86_64 x86_64 GNU/Linux

cc --version
cc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)

3. What were you trying to do?

Starting distccd with /etc/init.d/distcc start

4. What went wrong?

[root@host ~]# /etc/init.d/distcc start
Starting distccdrunuser: warning: cannot change directory to
/var/run/distcc: No such file or directory
/etc/profile.d/bio.sh: line 47: /var/run/distcc/.ncbirc: No such file or
directory
mkdir: cannot create directory `/var/run/distcc': Permission denied

Checking /var/run the distcc dir is missing.

Creating /var/run/distcc and chown it to the distcc user resolves this issue.

Could the rpm.spec file be altered to check the existence and ownership of
this directory?

Original issue reported on code.google.com by bloodr...@gmail.com on 13 Jul 2009 at 11:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
In rpm.spec, the /var/run/distcc is created after rpm installation using:
/usr/sbin/useradd -d /var/run/distcc

The cmd is aimed to add a user using /var/run/distcc as its home directory. 
Thus, I just wonder if you install rpm as superuser or not? If yes, the 
directory should be created as expected.

Original comment by compan...@gmail.com on 27 Jun 2012 at 12:53