From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 03:35:45 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 8F3021065677; Sat, 17 Jan 2009 03:35:45 +0000 (UTC) (envelope-from joafog.lists@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 5B8818FC08; Sat, 17 Jan 2009 03:35:45 +0000 (UTC) (envelope-from joafog.lists@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so2097728wfg.7 for ; Fri, 16 Jan 2009 19:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UcKHebHo9Tv6pOHMAUOc6PHaeXt4XK2wEhd40kEvjhQ=; b=DdAAg5bp9E6QH4sHvvnj70BKPc7TA3CJFoeD9djusRRG47A/Ne9XexFdiu48zytAgj IKvJvF7GOjEfQ83FnwzCJmCMC4t+xUVGrspzvndM1GvbZ1Y6A09MvjdB6kISxwqhfkRo SbiCNq75N0iyCY2IKvNqzRyy5AUTifLvjPOrs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=IzjOBQ3nn2Ide5U0ZSWsWirhkKySxNZxXhY4qyZUzJXj8ZsjBt9O1oCBPw5tpMTPNN 99E3k3XLegxl/j2f0w5MekaZFa93KObqCr/pECs+n9F8vp221EUn0PIr35i+MbwOB9oH KT1ffE46gNIa3+Km7rKOxuJzvxrzfvQ6xAgFU= MIME-Version: 1.0 Received: by 10.142.51.4 with SMTP id y4mr1309296wfy.211.1232163345084; Fri, 16 Jan 2009 19:35:45 -0800 (PST) In-Reply-To: <200901161528.44418.beech@freebsd.org> References: <4970F8CE.4090307@comcast.net> <49711BAE.5070505@comcast.net> <200901161528.44418.beech@freebsd.org> Date: Sat, 17 Jan 2009 04:35:45 +0100 Message-ID: From: Joakim Fogelberg To: Beech Rintoul Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Rem P Roberti , 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 03:35:45 -0000 On Sat, Jan 17, 2009 at 1:28 AM, Beech Rintoul wrote: > On Friday 16 January 2009 15:15:13 Joakim Fogelberg wrote: >> On Sat, Jan 17, 2009 at 12:43 AM, Rem P Roberti > wrote: >> > Joakim Fogelberg wrote: >> >> On Fri, Jan 16, 2009 at 11:09 PM, Beech Rintoul > wrote: >> >>> What are the premissions of /usr/local/share/skype? Try doing chmod 755 >> >>> /usr/local/share/skype and start with: >> >> >> >> This did the trick for me. I just installed skype and: >> >> >> >> will-try# ls -l /usr/local/share/ | grep skype >> >> drwx------ 6 root wheel 512 Jan 17 00:13 skype >> >> >> >> After changing the permissions I am able to start skype from the Gnome >> >> menu. >> > >> > Thanks for the shot, Joakim, but that didn't work either. When calling >> > Skype >> > from user's command prompt still get the same result. BTW, I'm using >> > Xfce as my desktop. >> > >> > Rem >> >> Just for the record... I'm also able to start Skype from the command >> prompt. > > What happens if you do: /usr/local/share/skype/skype as a normal user? No problem for me. Skype is started without any problems. >> >> I'm not sure if I really understand makefiles, but it seems to me that >> /usr/local/share/skype are created with the following directive in >> /usr/ports/net/skype/Makefile: >> @cd ${WRKSRC}/&&${COPYTREE_SHARE} "avatars icons sounds lang" >> ${PREFIX}/${SKYPEDIR}/ >> >> Maybe the directory should be created first? I.e. change it to the >> following: @${INSTALL} -d ${PREFIX}/${SKYPEDIR} >> @cd ${WRKSRC}/&&${COPYTREE_SHARE} "avatars icons sounds lang" >> ${PREFIX}/${SKYPEDIR}/ > > copytree_share does create the dir first if it doesn't exist. FWIW, I loaded > xfwm and tried to reproduce this, but it works fine as a normal user on my > -current box. I doubt if it would be any different on a 7.x box. I've seen > this problem once or twice before, but both me and Skype are at a loss to > explain why it's happening. I'll chat with the Skype devs later this evening > and see if one of them has any suggestions. 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) > > Beech > -- > --------------------------------------------------------------------------------------- > Beech Rintoul - FreeBSD Developer - beech@FreeBSD.org > /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x > \ / - NO HTML/RTF in e-mail | http://people.freebsd.org/~beech > X - NO Word docs in e-mail | Skype: akbeech > / \ - http://www.FreeBSD.org/releases/7.1R/announce.html > --------------------------------------------------------------------------------------- > > > > > -- Joakim Fogelberg