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

[cobalt-users] RE:Adding/Modifying/Deleting Users from shell



-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Gerald Waugh
Sent: Tuesday, October 22, 2002 11:55 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] Adding/Modifying/Deleting Users from shell
or script


On Tue, 22 Oct 2002, Ryan Howe wrote:

> I have created a MySQL database to manage users for billing purposes. The
> frontend is webbased simular to the current Raq GUI but with some
additional
> information. My question is how can I use the current perl scripts on the
> Raq to add/modify/delete users? It appears that you have to be in root in
> order to use the Cobalt::Meta.pm but I don't want to use a system()
command
> as root to use these scripts because of security. Also I have seen
> references to the Raq.shell-tools which appear to be exactly what I need
but
> again they would need to be run as root. How does the current GUI add
users
> the the domain with only site administrater permissions? I have tried
> running the scripts and logging in as admin which would should work, as
> admin can add to any domain, but this does not work. Any advise would be
> greatly appreciated. Thank you
>

  Even though you are logged into the GUI as admin the cobalt scripts are
  ran as root.
  Maybe you could write to the database.
  Then have a cron job that makes the additions.
  Wouldn't happen right away. But you send them an email when it's
  complete

Gerald



Thanks for the advise Gerald.  The cron job is not a bad idea I never
thought of that.  I have another question.  On my Raq3 there are the shell
scripts to add a user and delete a users, does anyone have a link for the
update shell-tools-1.1.1 I believe? I have seen a couple links for it but
they are all dead.

Thanks,
Ryan