pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: HEADS-UP: PostgreSQL update



* On 2010-12-23 at 12:27 GMT, OBATA Akio wrote:

> On Mon, 20 Dec 2010 22:43:53 +0900, Jonathan Perkin 
> <sketch%netbsd.org@localhost> wrote:
> 
> >* On 2010-12-19 at 14:43 GMT, Joerg Sonnenberger wrote:
> >
> >>On Sun, Dec 19, 2010 at 11:14:15AM +0100, Adam wrote:
> >>> * PGUSER shell has been disabled (was /bin/sh): the user doesn't need
> >>> a shell; before the user showed up on login screen on Mac OS X.
> >>
> >>This is annoying. The normal way to create administrative users for me
> >>was always to su pgsql and use ident auth.
> >
> >We need to find some way to disable this on OSX, same happens for cyrus -
> >it should be possible to have a valid shell but not appear in the login
> >screen, like the 'root' account, hopefully.
> 
> (I can only access MacOS X 10.4, so cannot test completely).
> Could you try following? 'cyrus' user disappear from login screen?
> % sudo dscl . -create /users/cyrus Password '*'

Yes, this works for me on 10.6 - thanks!

> If so, following patch may resolve this issue.

Yep, looks good, please commit :-)

> Index: user_darwin/Makefile
> ===================================================================
> RCS file: /cvsroot/pkgsrc/sysutils/user_darwin/Makefile,v
> retrieving revision 1.9
> diff -u -r1.9 Makefile
> --- user_darwin/Makefile        27 Jan 2010 20:30:24 -0000      1.9
> +++ user_darwin/Makefile        23 Dec 2010 12:24:28 -0000
> @@ -1,7 +1,7 @@
>  # $NetBSD: Makefile,v 1.9 2010/01/27 20:30:24 joerg Exp $
>  #
> 
> -DISTNAME=              user-20071026
> +DISTNAME=              user-20101223
>  CATEGORIES=            sysutils
>  MASTER_SITES=          # empty
>  DISTFILES=             # empty
> cvs diff: Diffing user_darwin/files
> Index: user_darwin/files/useradd.sh
> ===================================================================
> RCS file: /cvsroot/pkgsrc/sysutils/user_darwin/files/useradd.sh,v
> retrieving revision 1.3
> diff -u -r1.3 useradd.sh
> --- user_darwin/files/useradd.sh        29 Oct 2007 08:12:55 -0000      1.3
> +++ user_darwin/files/useradd.sh        23 Dec 2010 12:24:28 -0000
> @@ -96,6 +96,7 @@
>      dscl . -create /users/$user NFSHomeDirectory "$homedir"
>      dscl . -create /users/$user UserShell "$shell"
>      dscl . -create /users/$user Comment "$comment"
> +    decl . -create /users/$user Password '*'
>  fi
> 
>  if ! nireport . /users/uid=$uid uid 2>/dev/null &&                     \
> 
> -- 
> OBATA Akio / obache%NetBSD.org@localhost
> 

-- 
Jonathan Perkin                                     The NetBSD Project
http://www.perkin.org.uk/                       http://www.netbsd.org/


Home | Main Index | Thread Index | Old Index