Re: permission to write to /usr/local/share/packagename

2013-10-12 Thread Beco
On 4 October 2013 18:09, Vincent Bernat wrote: >4 octobre 2013 22:56 CEST, Beco : > > > On Debian, those high scores are usually stored in /var/games/X. The > file permissions allow a user from the group games to write the > file. See for example `monsterz`. > -- > Make sure your code "do

Re: permission to write to /usr/local/share/packagename

2013-10-05 Thread Beco
On 5 October 2013 07:43, Gert Wollny wrote: [snip] >> chmod g+s mytouch > > You shouldn't have to do this. Are you sure that you are in the games > group?, i.e. after adding yourself to the games group, did you logout > and login again? > > As member of the games group on my Debian system I can

Re: permission to write to /usr/local/share/packagename

2013-10-05 Thread Gert Wollny
On Sat, 2013-10-05 at 00:02 -0300, Beco wrote: > On 4 October 2013 22:56, Beco wrote: > > Hi mentors, > > [snip] > > > > I suppose that is all I have to do. But myapp still tells me > > "permission denied". > > I got it working using something I was trying to avoid. SGID. > > chmod g+s mytouc

Re: permission to write to /usr/local/share/packagename

2013-10-04 Thread Paul Wise
On Sat, Oct 5, 2013 at 11:58 AM, Paul Wise wrote: > per-user high-scores or I forgot to mention that most computers these days (at least in rich countries) are not multi-user so this isn't as big of an issue as it would seem. > network service to share high scores You need to ensure that both t

Re: permission to write to /usr/local/share/packagename

2013-10-04 Thread Paul Wise
On Sat, Oct 5, 2013 at 5:09 AM, Vincent Bernat wrote: > On Debian, those high scores are usually stored in /var/games/X. The > file permissions allow a user from the group games to write the > file. See for example `monsterz`. That usually requires the game to be setgid, which isn't worth the

Re: permission to write to /usr/local/share/packagename

2013-10-04 Thread Beco
On 4 October 2013 22:56, Beco wrote: > Hi mentors, [snip] > I suppose that is all I have to do. But myapp still tells me > "permission denied". I got it working using something I was trying to avoid. SGID. chmod g+s mytouch I think its kind of dangerous. But hell, is there any other safe way

Re: permission to write to /usr/local/share/packagename

2013-10-04 Thread Beco
Hi mentors, I'm putting my thoughts together. I think what I'm trying to ask is how to make it work "manually"? Suppose I do the following: Step 1: binary gcc myapp.c -o myapp sudo cp myapp /usr/games/ Step 2: prepare translations: mkdir -p /usr/share/locale/en/LC_MESSAGES xgettext -k_ --f

Re: permission to write to /usr/local/share/packagename

2013-10-04 Thread Beco
On 4 October 2013 18:23, Martin Eberhard Schauer wrote: > > There is a difference between building some software and installing it. You > need root rights for installations beyond your home directory. > > Cheers, >Martin Hi Martin, Thanks for the help. Are you saying that my program can't r

Re: permission to write to /usr/local/share/packagename

2013-10-04 Thread Martin Eberhard Schauer
>> Following the suggestion from Maysima (Linux-fan name?), after reading >> something about hierarchy, I'm using the following structure: First of all, you've decided to work with Debian. I recommend not to use $(random cookbook/advice), but Debian docs instead, asking here ore filing bugs whene

Re: permission to write to /usr/local/share/packagename

2013-10-04 Thread Vincent Bernat
❦ 4 octobre 2013 22:56 CEST, Beco  : >>> What I'm not getting is that I have no write permissions to this >>> directory where the data will be. >> Apps that run with user rights usually store their data in that user's >> home directory. Do you really need to write the data into the global >> loc

Re: permission to write to /usr/local/share/packagename

2013-10-04 Thread Beco
On 4 October 2013 17:12, Andrey Rahmatullin wrote: > >> What I'm not getting is that I have no write permissions to this >> directory where the data will be. > Apps that run with user rights usually store their data in that user's > home directory. Do you really need to write the data into the glo

Re: permission to write to /usr/local/share/packagename

2013-10-04 Thread Hermann Sorgel
On 10/05/2013 12:12 AM, Andrey Rahmatullin wrote: Apps that run with user rights usually store their data in that user's home directory. And /tmp directory for files that are required temporarily. -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscri

Re: permission to write to /usr/local/share/packagename

2013-10-04 Thread Andrey Rahmatullin
On Fri, Oct 04, 2013 at 04:58:10PM -0300, Beco wrote: > Following the suggestion from Maysima (Linux-fan name?), after reading > something about hierarchy, I'm using the following structure: > > /usr/local/game for the binary > /usr/local/share/locale for the language file ".mo" > /usr/local/share

permission to write to /usr/local/share/packagename

2013-10-04 Thread Beco
Hi guys, Following the suggestion from Maysima (Linux-fan name?), after reading something about hierarchy, I'm using the following structure: /usr/local/game for the binary /usr/local/share/locale for the language file ".mo" /usr/local/share/packagename for the data file. What I'm not getting is