Re: test if user exists in postinst

2001-04-10 Thread Josip Rodin
On Mon, Apr 09, 2001 at 06:01:08PM -0400, Matt Zimmerman wrote: > > I am cleaning up my packages, and one improvement > > I want to add is that network daemon runs under its > > own UID, not nobody (as it was until now). > > > > What is the best way of testing (and adding) a new username > > in po

Re: test if user exists in postinst

2001-04-10 Thread Roland Mas
Radovan Garabik (2001-04-09 22:29:44 +0200) : > What is the best way of testing (and adding) a new username in > postinst? ,[ man adduser ] |Add a system user |If called with one non-option argument and the --system |option, adduser will add a system user. If an user wi

Re: test if user exists in postinst

2001-04-10 Thread Josip Rodin
On Mon, Apr 09, 2001 at 06:01:08PM -0400, Matt Zimmerman wrote: > > I am cleaning up my packages, and one improvement > > I want to add is that network daemon runs under its > > own UID, not nobody (as it was until now). > > > > What is the best way of testing (and adding) a new username > > in p

Re: test if user exists in postinst

2001-04-10 Thread Roland Mas
Radovan Garabik (2001-04-09 22:29:44 +0200) : > What is the best way of testing (and adding) a new username in > postinst? ,[ man adduser ] |Add a system user |If called with one non-option argument and the --system |option, adduser will add a system user. If an user w

Re: test if user exists in postinst

2001-04-09 Thread Matt Zimmerman
On Mon, Apr 09, 2001 at 10:29:44PM +0200, Radovan Garabik wrote: > I am cleaning up my packages, and one improvement > I want to add is that network daemon runs under its > own UID, not nobody (as it was until now). > > What is the best way of testing (and adding) a new username > in postinst? >

test if user exists in postinst

2001-04-09 Thread Radovan Garabik
Hi all I am cleaning up my packages, and one improvement I want to add is that network daemon runs under its own UID, not nobody (as it was until now). What is the best way of testing (and adding) a new username in postinst? I am using something like this: if ! grep -q '^xtelld:' /etc/passwd; the

Re: test if user exists in postinst

2001-04-09 Thread Matt Zimmerman
On Mon, Apr 09, 2001 at 10:29:44PM +0200, Radovan Garabik wrote: > I am cleaning up my packages, and one improvement > I want to add is that network daemon runs under its > own UID, not nobody (as it was until now). > > What is the best way of testing (and adding) a new username > in postinst? >

test if user exists in postinst

2001-04-09 Thread Radovan Garabik
Hi all I am cleaning up my packages, and one improvement I want to add is that network daemon runs under its own UID, not nobody (as it was until now). What is the best way of testing (and adding) a new username in postinst? I am using something like this: if ! grep -q '^xtelld:' /etc/passwd; th