Perl Program to add/remove users on SCO (

Perl Program to add/remove users on SCO (

Post by Tom Jenki » Wed, 05 Mar 1997 04:00:00

Anyone heard of a program, written in perl (or shell for that matter) to add
and remove users under



1. Add/remove user to user group(s) in a script ??

[Posted and mailed]

: >
: >
: >
: > I would like to know how I would go about adding/removing a user
: > to some user groups within a shell script.  I want to be able to give
: > some of my users temporary group membership for a certain set of groups
: > so they can run an application. When they exit from that application I
: > would like to remove them from the groups they were previously added to.
: > The users would be running the script from their own account via a captive menu
: > so I suspect they would have to adopt superuser privileges in order
: > to execute the group addition and removal.
: >
: > Is this possible?

Why not just adjust the application itself so that it has SETGID
privileges?  That way, the users can be given execute permissions
on the app, but the app (and not the users separately) can create
or modify its files as appropriate?

Just a thought.

= Steve =

    | Steve W. Jackson        |  CACI, Inc - FEDERAL              |
    | Project Manager         |  Software Revitalization Division |
    | 334-244-7400            |  600 Interstate Park Drive        |
    | 334-244-7447 Fax        |  Suite 623                        |


2. HPDJ600-Driver

3. biz.sco.* replaced by comp.unix.sco.*; biz.sco.* newsgroups removed.

4. linux hangs during enet traffic

5. How to add/remove programs from the "start menu"

6. prevent routing of mail messages

7. Add/Remove Program equivalent in Debian Linux

8. 1993 Version of MKS KornShell for MS-DOS?

9. How to add/remove startup program to gnome?

10. Mickeysoft to RENAME "Add/Remove Programs"

11. Add user that can add users?

12. Add and remove users in NIS?

13. Issues with adding / removing users