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

Re: Adding and removing a user automatically



[You (Martin Schulze)]
>On Wed, Mar 04, 1998 at 10:28:08PM -0600, Zed Pobre wrote:
>> Could someone point me in the direction of some sample shell script code
>> that will let me check to see if a given username already exists with a
>> given group ID?  I'm trying to finesse my IRAF installation script, and
>> just brute-force calling adduser on every install seems a little ugly.
>> I've examined the adduser code and suspect that I might be able to write a
>> similar custom routine manually in perl based upon it, but that's going to
>> add a dependency to the package, and is also going to be hard on my nerves
>> :)
>
>Take a look at the postinst script of msqld.

Um!  Adding users is a gross violation of policy.   From section 3.2:

No package except base-passwd may modify /etc/passwd, /etc/shadow, or /etc/group.

Do we need to file an "important" level bug against msqld?  Does that 
package actually create a user?

.....A. P. Harris...apharris@onShore.com...<URL:http://www.onShore.com/>



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: