Menu

#3 Problem during: make install

open
nobody
5
2000-07-27
2000-07-27
No

ERROR INDICATOR:

[root@klh cvsd-0.8b1]# make install
...
install -m 750 -g 2401 -o 2401 correct-permissions-dist /home/cvsowner/cvsd-root/bin/correct-permissions
su cvsowner -c "CVSUMAKS=027 && cvs -d /home/cvsowner/cvsd-root/example init"
install -m 640 -g 2401 -o 2401 example-passwd-dist /home/cvsowner/cvsd-root/example/CVSROOT/passwd
install: cannot create regular file `/home/cvsowner/cvsd-root/example/CVSROOT/passwd': No such file or directory
make: *** [install-example] Error 1

NATURE OF PROBLEM:
1. User cvsowner's shell is /bin/false - need to specify a shell in su command.
2. Spelling error CVSUMAKS sh/b CVSUMASK.
3. Should be in /home/cvsowner to run cvs init command. Add -l switch to su command.

FIX:
1. Modify Makefile:
change from:
install-example:
su cvsowner -c "CVSUMAKS=027 && cvs -d $(ROOTDIR)/example init"
change to:
install-example:
su -s /bin/bash -l cvsowner -c "CVSUMASK=027 && cvs -d $(ROOTDIR)/example init"

Discussion


Log in to post a comment.