<div dir="ltr"><div><div>Hi Josh,<br><br>Thanks for your response. I am able to use --user root flag to add user to groups as owner now.<br><br></div>Many thanks!<br></div>Yanling<br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Mon, Aug 4, 2014 at 2:21 AM, Josh Moore <span dir="ltr"><<a href="mailto:josh@glencoesoftware.com" target="_blank">josh@glencoesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Yanling,<br>
<div><div class="h5"><br>
On Aug 1, 2014, at 8:25 PM, Yanling Liu wrote:<br>
<br>
> Trying to add one user to one group as owner at the command line using<br>
> following command:<br>
><br>
> bin/omero group adduser --name onegroup --as-owner --user-name oneuser -C<br>
> --sudo root -w rootpass -s localhost<br>
><br>
> However, OME prompts me username and password to login, instead of using<br>
> root user and root password. Seems to me the --sudo flag is not working<br>
> here. Is there anything I did wrong? Why am I asked to login even if I use<br>
> the --sudo flag with password supplied?<br>
<br>
</div></div>Likely you don't need "--sudo" here. The sudo flag is used to perform an<br>
action as another user. Since you are trying to create a user, it's probably<br>
safe to do that as "root" him/herself. Trying passing "--user root" or<br>
"-u root" instead of "--sudo root".<br>
<br>
<br>
> Thanks,<br>
> Yanling<br>
<br>
<br>
Cheers,<br>
~Josh.<br>
</blockquote></div><br></div>