MLUG: Re: [MLUG] Simple command to add a user to a group?
Re: [MLUG] Simple command to add a user to a group?
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mark Rages wrote:
On 1/14/06, Ian <EMAIL:PROTECTED> wrote:

ditto stephen...

just edit your /etc/group



but if I am writing an installation script, I don't want to be editing
people's /etc/group... what if I mess it up?

I don't see any other way to put someone into a group, because the way it is done is to change /etc/group. It has such a simple structure that it would be easy to write a short perl or sed script to do the task (I would use perl, but that's because it is the only tool I know). Indeed on most Linux/BSD systems, the adduser command is typcially some kind of script, which modifies /etc/group and /etc/master.password or whatever, which changes from system to system.


Stephen


_______________________________________________ members mailing list EMAIL:PROTECTED http://mlug.missouri.edu/mailman/listinfo/members