[Gluster-devel] how to use libgfapi with non-root user

Niels de Vos ndevos at redhat.com
Thu Feb 20 17:04:33 UTC 2014

On Thu, Feb 20, 2014 at 09:35:00PM +0530, Vijay Bellur wrote:
> On 02/20/2014 02:33 PM, Gong XiaoHui wrote:
> >Hi,
> >
> >    This is a programmer from china, now I have a problem with
> >libgfapi(V3.4.2). My application run as non-root user uses a api called
> >glfs_init, but it return -1.
> >
> > From the internet I find a solution, add” option
> >rpc-auth-allow-insecure on” into the vol file on my gluster system, then
> >the glfs_init return 1, it does’t work ok either.
> >
> >I need some help to resolve this problem, expect your reply. Thank you
> >very much.
> >
> Have you tried this?
> gluster volume set <volname> server.allow-insecure on
> This would also be needed in addition to editing glusterd's volume file.

In case this is not working yet, you should probably stop and start the 
volume where you changed the server.allow-insecure setting.


More information about the Gluster-devel mailing list