From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 04:01:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EC111065672 for ; Sat, 17 Jan 2009 04:01:53 +0000 (UTC) (envelope-from remegius@comcast.net) Received: from QMTA10.emeryville.ca.mail.comcast.net (qmta10.emeryville.ca.mail.comcast.net [76.96.30.17]) by mx1.freebsd.org (Postfix) with ESMTP id E7E088FC19 for ; Sat, 17 Jan 2009 04:01:52 +0000 (UTC) (envelope-from remegius@comcast.net) Received: from OMTA09.emeryville.ca.mail.comcast.net ([76.96.30.20]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id 4Qo01b00S0S2fkCAAU1tYK; Sat, 17 Jan 2009 04:01:53 +0000 Received: from bsd.remdog.net ([76.102.24.75]) by OMTA09.emeryville.ca.mail.comcast.net with comcast id 4U1s1b0091dCpWs8VU1tnm; Sat, 17 Jan 2009 04:01:53 +0000 Message-ID: <49715832.5000501@comcast.net> Date: Fri, 16 Jan 2009 20:01:54 -0800 From: Rem P Roberti User-Agent: Thunderbird 2.0.0.19 (X11/20090115) MIME-Version: 1.0 To: Joakim Fogelberg References: <4970F8CE.4090307@comcast.net> <49711BAE.5070505@comcast.net> <200901161528.44418.beech@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Beech Rintoul , freebsd-questions@freebsd.org Subject: Re: skype permissions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2009 04:01:53 -0000 > I have 7.1-RELEASE-p2 installed. > compat.linux.osrelease: 2.6.16 > linprocfs mounted > linux_base-f8-8_10 > > I changed to root (su -) before I installed skype. root's shell is > /bin/csh. umask is 22. I can\t recall that I should have done anything > "creative" with the root account. > > I just removed skype, checked that /usr/local/share/skype were > removed, and reinstalled skype (this time I actually logged in as root > instead of using 'su -'. I also checked that the umask was 22) with: > > make WITH_NVIDIA_GL=yes > make WITH_NVIDIA_GL=yes install > > and: > > will-try# ls -l /usr/local/share/|grep skype > drwx------ 6 root wheel 512 Jan 17 04:03 skype > > I'm not really sure if I understand the COPY_SHARE routine in bsd.port.mk: > > COPYTREE_SHARE= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \ > 2>&1) && \ > ${CHOWN} -R > ${SHAREOWN}:${SHAREGRP} $$1 && \ > ${FIND} -d $$0 $$2 -type d > -exec chmod 755 $$1/{} \; && \ > ${FIND} -d $$0 $$2 -type f > -exec chmod ${SHAREMODE} $$1/{} \;' -- > > but it seems to me that the 4:th row change the permission on all > directories below /usr/local/share/skype/. However, the permissions > for the directory /usr/local/share/skype are not changed. I also made > a quick test with cpio, to simulate how /usr/local/share/skype are > created: > > will-try# ls -lR > total 0 > will-try# mkdir subdir > will-try# find subdir | cpio -dumpl rootdir/ > 0 blocks > will-try# ls -lR > total 4 > drwx------ 3 root wheel 512 Jan 17 04:24 rootdir > drwxr-xr-x 2 root wheel 512 Jan 17 04:24 subdir > > ./rootdir: > total 2 > drwxr-xr-x 2 root wheel 512 Jan 17 04:24 subdir > > ./rootdir/subdir: > total 0 > > ./subdir: > total 0 > > It seems that the directory created by cpio do indeed get the wrong > permissions. Maybe there should be an explicit change of the > permission in COPYTREE_SHARE ? (chmod 755 $$1) > > Yes, when I change /usr/local/share/skype from drwx------ to drwxr-xr-x I am able to get some response as user. But, as posted earlier, it only goes so far, ending by telling me that another instance of skype may be running (which, of course, it isn't). Rem