Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-17 Thread Yousong Zhou
On 16 May 2017 at 00:02, Val Kulkov wrote: > I agree that not depending on the manual cooperation across groups of > people would be ideal. However, updating 35+ packages to use the > auto-allocation mechanism is not an easy undertaking. Updating 35+ packages is easy with a few lines of shell scr

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Eric Luehrsen
On 15.05.2017 18:02, Val Kulkov wrote: > On 15 May 2017 at 11:46, Yousong Zhou wrote: >> On 15 May 2017 at 23:29, Val Kulkov wrote: >>> Yousong, perhaps I was not clear. What I am suggesting is to change >>> the auto-allocation to start from 1000 rather than from 100 (1000 is >>> just a sugg

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Daniel Golle
On Mon, May 15, 2017 at 10:59:55PM +0800, Yousong Zhou wrote: > On 15 May 2017 at 22:41, Val Kulkov wrote: > > The auto-allocation of uid/gid emulates useradd/groupadd, picking the > > first unused uid/gid starting from 100. This works quite well on its > > own, but there are about three dozen pac

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Alberto Bursi
On 05/15/2017 07:29 PM, Tobias Welz wrote: > > If not, there would be the need to do some post-processing after > restore to somehow fix gids/uids to make everything work again; but it > will be an extra level of complexity. uhm, I might say something very noobish, but... are all packages gr

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Tobias Welz
Hello, In general I don't mind auto-allocation - it's somehow best for (PC) distributions. I'm not sure if the same applies to embedded systems and OSes like LEDE - at least with static backing up of passwd/shadow files. Wouldnt't a user (developer) expect to backup the settings and restore

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Val Kulkov
On 15 May 2017 at 11:46, Yousong Zhou wrote: > On 15 May 2017 at 23:29, Val Kulkov wrote: >> Yousong, perhaps I was not clear. What I am suggesting is to change >> the auto-allocation to start from 1000 rather than from 100 (1000 is >> just a suggestion, it could be anything else that is high eno

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Yousong Zhou
On 15 May 2017 at 23:29, Val Kulkov wrote: > Yousong, perhaps I was not clear. What I am suggesting is to change > the auto-allocation to start from 1000 rather than from 100 (1000 is > just a suggestion, it could be anything else that is high enough), and > to have a convention to allocate the 1-

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Val Kulkov
On 15 May 2017 at 11:12, Yousong Zhou wrote: > On 15 May 2017 at 23:04, Val Kulkov wrote: >> On 15 May 2017 at 10:59, Yousong Zhou wrote: >>> On 15 May 2017 at 22:41, Val Kulkov wrote: The auto-allocation of uid/gid emulates useradd/groupadd, picking the first unused uid/gid starting

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Yousong Zhou
On 15 May 2017 at 23:04, Val Kulkov wrote: > On 15 May 2017 at 10:59, Yousong Zhou wrote: >> On 15 May 2017 at 22:41, Val Kulkov wrote: >>> The auto-allocation of uid/gid emulates useradd/groupadd, picking the >>> first unused uid/gid starting from 100. This works quite well on its >>> own, but

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Val Kulkov
On 15 May 2017 at 10:59, Yousong Zhou wrote: > On 15 May 2017 at 22:41, Val Kulkov wrote: >> The auto-allocation of uid/gid emulates useradd/groupadd, picking the >> first unused uid/gid starting from 100. This works quite well on its >> own, but there are about three dozen packages in the packag

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Yousong Zhou
On 15 May 2017 at 22:41, Val Kulkov wrote: > The auto-allocation of uid/gid emulates useradd/groupadd, picking the > first unused uid/gid starting from 100. This works quite well on its > own, but there are about three dozen packages in the packages repo > that come with hardcoded uid/gid's: > > f

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Val Kulkov
On 15 May 2017 at 09:46, Yousong Zhou wrote: > On 15 May 2017 at 21:07, Val Kulkov wrote: >> On 15 May 2017 at 02:30, Alexandru Ardelean wrote: >>> On Sun, May 14, 2017 at 3:59 AM, Daniel Golle wrote: Hi Val, On Sat, May 13, 2017 at 06:23:29PM -0400, Val Kulkov wrote: > Is th

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Yousong Zhou
On 15 May 2017 at 21:07, Val Kulkov wrote: > On 15 May 2017 at 02:30, Alexandru Ardelean wrote: >> On Sun, May 14, 2017 at 3:59 AM, Daniel Golle wrote: >>> Hi Val, >>> >>> On Sat, May 13, 2017 at 06:23:29PM -0400, Val Kulkov wrote: Is there any convention on the use of uid and gid when crea

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Val Kulkov
On 15 May 2017 at 02:30, Alexandru Ardelean wrote: > On Sun, May 14, 2017 at 3:59 AM, Daniel Golle wrote: >> Hi Val, >> >> On Sat, May 13, 2017 at 06:23:29PM -0400, Val Kulkov wrote: >>> Is there any convention on the use of uid and gid when creating new >>> users or groups? Can someone point me

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-14 Thread Alexandru Ardelean
On Sun, May 14, 2017 at 3:59 AM, Daniel Golle wrote: > Hi Val, > > On Sat, May 13, 2017 at 06:23:29PM -0400, Val Kulkov wrote: >> Is there any convention on the use of uid and gid when creating new >> users or groups? Can someone point me to it, if it exists? >> >> I noticed that two packages, ice

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-13 Thread Daniel Golle
Hi Val, On Sat, May 13, 2017 at 06:23:29PM -0400, Val Kulkov wrote: > Is there any convention on the use of uid and gid when creating new > users or groups? Can someone point me to it, if it exists? > > I noticed that two packages, icecast and postfix, compete for the same uid=87: > > icecast's

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-13 Thread Eric Luehrsen
On 05/13/2017 06:23 PM, Val Kulkov wrote: > Is there any convention on the use of uid and gid when creating new > users or groups? Can someone point me to it, if it exists? > > I noticed that two packages, icecast and postfix, compete for the same uid=87: > > icecast's Makefile: > USERID:=iceca

[LEDE-DEV] convention on uid/gid for packages

2017-05-13 Thread Val Kulkov
Is there any convention on the use of uid and gid when creating new users or groups? Can someone point me to it, if it exists? I noticed that two packages, icecast and postfix, compete for the same uid=87: icecast's Makefile: USERID:=icecast=87:icecast=87 postfix's postfix.init: user_exists