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

Josh Moore josh at glencoesoftware.com
Mon Aug 4 07:21:35 BST 2014


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.


More information about the ome-devel mailing list