[ome-devel] --sudo flag won't work

Yanling Liu vrnova at gmail.com
Mon Aug 4 16:08:24 BST 2014


Hi Josh,

Thanks for your response. I am able to use --user root flag to add user to
groups as owner now.

Many thanks!
Yanling


On Mon, Aug 4, 2014 at 2:21 AM, Josh Moore <josh at glencoesoftware.com> wrote:

> Hi Yanling,
>
> On Aug 1, 2014, at 8:25 PM, Yanling Liu wrote:
>
> > Trying to add one user to one group as owner at the command line using
> > following command:
> >
> > bin/omero group adduser --name onegroup --as-owner --user-name oneuser -C
> > --sudo root -w rootpass -s localhost
> >
> > However, OME prompts me username and password to login, instead of using
> > root user and root password. Seems to me the --sudo flag is not working
> > here. Is there anything I did wrong? Why am I asked to login even if I
> use
> > the --sudo flag with password supplied?
>
> Likely you don't need "--sudo" here. The sudo flag is used to perform an
> action as another user. Since you are trying to create a user, it's
> probably
> safe to do that as "root" him/herself. Trying passing "--user root" or
> "-u root" instead of "--sudo root".
>
>
> > Thanks,
> > Yanling
>
>
> Cheers,
> ~Josh.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20140804/68647933/attachment.html>


More information about the ome-devel mailing list