Re: pw: pw: Invalid min_uid: '2000'; ignoring

2015-08-21 Thread Baptiste Daroussin
On Fri, Aug 21, 2015 at 04:13:00PM +0200, Baptiste Daroussin wrote: > On Fri, Aug 21, 2015 at 03:48:13PM +0200, O. Hartmann wrote: > > Setting up on NanoBSD vi pw command an initial /etc/pw.conf (usermod -D), I > > use > > amongst other options also: > > > > -u 2000,32767 -i 2000,32767 > > > > w

Re: pw: pw: Invalid min_uid: '2000'; ignoring

2015-08-21 Thread Baptiste Daroussin
On Fri, Aug 21, 2015 at 03:48:13PM +0200, O. Hartmann wrote: > Setting up on NanoBSD vi pw command an initial /etc/pw.conf (usermod -D), I > use > amongst other options also: > > -u 2000,32767 -i 2000,32767 > > which finally and successfully expands to > > [...] > # Range of valid default user

Re: pw is broken?

2013-03-09 Thread KT Sin
ah. my apologies. rebuilt the new libutil again and it seems that r248012 does indeed resolve the problem. :) --- On Sat, 3/9/13, KT Sin wrote: From: KT Sin Subject: Re: pw is broken? To: "hiren panchasara" , d...@freebsd.org Cc: "freebsd-current" Date: Saturday, March 9,

Re: pw is broken?

2013-03-09 Thread KT Sin
ah, this is a different problem. one quick workaround is to comment out the unused variable ic :P, or you could include INVARIANTS in your kernel config, or you could ping adrian :) --- On Sat, 3/9/13, Hartmann, O. wrote: > > But neither r248102 nor r248103 compile! > > /usr/src/sys/net80211

Re: pw is broken?

2013-03-09 Thread Andreas Tobler
On 09.03.13 15:52, Hartmann, O. wrote: > Am 03/09/13 15:34, schrieb hiren panchasara: >> On Mar 8, 2013 9:44 PM, "KT Sin" wrote: >>> >>> pw is crashing with seg fault due to this change? >>> >>> >> http://svnweb.freebsd.org/base/head/lib/libutil/gr_util.c?r1=245390&r2=247919 >> >> I think the corr

Re: pw is broken?

2013-03-09 Thread KT Sin
saw the commit an hour ago. rebuilt libutil.so.9 and unfortunately it still crashes for me :( --- On Sat, 3/9/13, hiren panchasara wrote: From: hiren panchasara Subject: Re: pw is broken? To: kt...@acm.org Cc: "freebsd-current" Date: Saturday, March 9, 2013, 10:34 PM On Mar 8,

Re: pw is broken?

2013-03-09 Thread Hartmann, O.
Am 03/09/13 15:34, schrieb hiren panchasara: > On Mar 8, 2013 9:44 PM, "KT Sin" wrote: >> >> pw is crashing with seg fault due to this change? >> >> > http://svnweb.freebsd.org/base/head/lib/libutil/gr_util.c?r1=245390&r2=247919 > > I think the correct fix is committed with: > http://svnweb.freeb

Re: pw is broken?

2013-03-09 Thread hiren panchasara
On Mar 8, 2013 9:44 PM, "KT Sin" wrote: > > pw is crashing with seg fault due to this change? > > http://svnweb.freebsd.org/base/head/lib/libutil/gr_util.c?r1=245390&r2=247919 I think the correct fix is committed with: http://svnweb.freebsd.org/changeset/base/248102 Hiren > > # gdb ./pw > GNU gd

Re: pw keeps setting /etc/group to 0600

2012-11-30 Thread matt
On 11/17/12 07:24, Ryan Stone wrote: > /etc/group is supposed to be world-reable, right? Tools like groups or pw > groupshow certainly seem to think so: > > [rstone@rstone-server ~]groups > 1001 920 > [rstone@rstone-server ~]ls -l /etc/group > -rw--- 1 root 0 482 Nov 14 21:02 /etc/group > [

Re: pw keeps setting /etc/group to 0600

2012-11-21 Thread Mateusz Guzik
On Wed, Nov 21, 2012 at 05:45:43PM +0200, Jaakko Heinonen wrote: > On 2012-11-19, Mateusz Guzik wrote: > > First, pw should not fail if other instance is running, it should wait > > instead (think of parallel batch scripts adding some users/groups). > > > > Second, current code has a race: > > loc

Re: pw keeps setting /etc/group to 0600

2012-11-21 Thread Jaakko Heinonen
On 2012-11-19, Mateusz Guzik wrote: > First, pw should not fail if other instance is running, it should wait > instead (think of parallel batch scripts adding some users/groups). > > Second, current code has a race: > lockfd = open(group_file, O_RDONLY, 0); > if (lockfd < 0 || fcntl(lockfd, F_SETF

Re: pw keeps setting /etc/group to 0600

2012-11-19 Thread Baptiste Daroussin
On Mon, Nov 19, 2012 at 11:37:45PM +0100, Baptiste Daroussin wrote: > On Mon, Nov 19, 2012 at 11:28:43PM +0100, Mateusz Guzik wrote: > > On Sat, Nov 17, 2012 at 11:20:21AM -0500, Ryan Stone wrote: > > > My original complaint that /etc/group gets permissions of 0600 is a result > > > of a bug in lib

Re: pw keeps setting /etc/group to 0600

2012-11-19 Thread Baptiste Daroussin
On Mon, Nov 19, 2012 at 11:28:43PM +0100, Mateusz Guzik wrote: > On Sat, Nov 17, 2012 at 11:20:21AM -0500, Ryan Stone wrote: > > My original complaint that /etc/group gets permissions of 0600 is a result > > of a bug in libutil, which bapt@ ported pw to use in r242349. The new > > group manipulati

Re: pw keeps setting /etc/group to 0600

2012-11-19 Thread Mateusz Guzik
On Sat, Nov 17, 2012 at 11:20:21AM -0500, Ryan Stone wrote: > My original complaint that /etc/group gets permissions of 0600 is a result > of a bug in libutil, which bapt@ ported pw to use in r242349. The new > group manipulation API using mktemp to create a temporary file, writes the > new group

Re: pw keeps setting /etc/group to 0600

2012-11-17 Thread Mateusz Guzik
On Sat, Nov 17, 2012 at 11:20:21AM -0500, Ryan Stone wrote: > Wow. So apparently things are even more broken than I though. Let's play, > "What group am I in?" > > root@group-testing:/usr/home/rstone # cd /tmp > root@group-testing:/tmp # pw groupadd testing > root@group-testing:/tmp # mkdir test

Re: pw keeps setting /etc/group to 0600

2012-11-17 Thread Ryan Stone
Wow. So apparently things are even more broken than I though. Let's play, "What group am I in?" root@group-testing:/usr/home/rstone # cd /tmp root@group-testing:/tmp # pw groupadd testing root@group-testing:/tmp # mkdir testdir root@group-testing:/tmp # chown root:testing testdir/ root@group-tes

Re: pw

2003-01-23 Thread Garance A Drosihn
At 2:25 AM +0600 1/24/03, Max Khon wrote: hi, there! Can we enable using '$' in usernames in pw? The patch is attached. Other variant is to enable using '$' only at end of user name. I'd prefer to go with "only at the end of a user name", and I did have a patch which does that. Now I just hav

Re: pw

2003-01-23 Thread Mike Makonnen
Attached is Terry's patch modified to include $ in group names as well. I have tested it. Both adduser(8) and rmuser(8) work as expected. Please give -audit a chance to object and then commit it. Also, please close PR: bin/46890 when you do. We should have had this a long time ago. If -audit does

Re: pw

2003-01-23 Thread Terry Lambert
Max Khon wrote: > most messages were related to adduser.pl. adduser.pl has gone > and adduser.sh now uses pw directly > > as for login class and group names -- there is nothing wrong with '$' > in them but if anyone would be uncomfortable with it why not commit > the patch that someone (Terry?) su

Re: pw

2003-01-23 Thread Max Khon
hi, there! On Thu, Jan 23, 2003 at 03:54:18PM -0500, Craig Rodrigues wrote: > > Can we enable using '$' in usernames in pw? > > The patch is attached. > > The same patch was submitted here by David Chapman: > >http://www.freebsd.org/cgi/getmsg.cgi?fetch=1059329+1062195+/usr/local/www/db/text/20

Re: pw

2003-01-23 Thread Craig Rodrigues
On Fri, Jan 24, 2003 at 02:25:38AM +0600, Max Khon wrote: > hi, there! > > Can we enable using '$' in usernames in pw? > The patch is attached. The same patch was submitted here by David Chapman: http://www.freebsd.org/cgi/getmsg.cgi?fetch=1059329+1062195+/usr/local/www/db/text/2002/freebsd-curre

Re: pw group add problem

2001-08-29 Thread Dima Dorfman
"David W. Chapman Jr." <[EMAIL PROTECTED]> wrote: > When I run the command in the topic I get the following error. > > pw: group update: Inappropriate ioctl for device > > This works in -stable > > I noticed this problem while testing postfix-current which runs > > /usr/sbin/pw groupadd ${grou