Losing username/password info

Tuesday, 3 April 2012 · 4 messages · last reply 4 Apr 2012
CD
Charles Duffy3 Apr 2012 19:37 #
Howdy -- I have a number of different installed instances of BaseX (7.2 release, current snapshot, local build, etc), each with a .basex file pointing against the same DBPATH. I've frequently noticed when switching between trees that "admin" account switches back to its default password, and my more limited user accounts disappear and need to be recreated. Are these stored somewhere other than DBPATH?
CG
Christian Grün3 Apr 2012 22:43 #
Quoted text · Charles Duffy · 3 lines
> I've frequently noticed when switching between trees that "admin" account > switches back to its default password, and my more limited user accounts > disappear and need to be recreated.
Global users are stored in the .basexperm file, while local permissions will be stored in the meta file of a database (inf.basex). I didn't come across this issue before.. Do you have a reproducible example? Thanks, Christian PS: sorry for delaying your other mails; seems this is getting a very busy week.
CG
Christian Grünin reply to Charles Duffy, 4 Apr 2012, 00:513 Apr 2012 22:58 #
You might want to check the "Configuration" Wiki page [1], which described how to change the path to all .basex... files. Hope this helps, Christian [1] http://docs.basex.org/wiki/Configuration
Quoted text · Charles Duffy · 19 lines
> Thank you -- I think this actually answers my question adequately. I was > expecting global users to be stored somewhere under the shared DBPATH, and > it could simply be that the .basexperm files were never written for the > other trees. If I can validate any larger issue, I'll get back with a > reproducer at that time. > > That said, I would suggest parameterizing the location of this file as a > future enhancement -- when wearing my sysadmin hat, it's often undesirable > for applications to have any kind of write permissions to the location their > binaries are installed; indeed, in the UNIX world it's not unheard of to > have binaries coming from a completely read-only disk or network store, > making it *impossible* to write data back to that location (as opposed to an > explicitly writable area under /var or such). > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CD
Charles Duffyin reply to Christian Grün, 3 Apr 2012, 22:434 Apr 2012 00:51 #
Quoted text · Christian Grün · 6 lines
On 04/03/2012 03:43 PM, Christian Grün wrote: >> I've frequently noticed when switching between trees that "admin" account >> switches back to its default password, and my more limited user accounts >> disappear and need to be recreated. > Global users are stored in the .basexperm file, while local > permissions will be stored in the meta file of a database (inf.basex).
Thank you -- I think this actually answers my question adequately. I was expecting global users to be stored somewhere under the shared DBPATH, and it could simply be that the .basexperm files were never written for the other trees. If I can validate any larger issue, I'll get back with a reproducer at that time. That said, I would suggest parameterizing the location of this file as a future enhancement -- when wearing my sysadmin hat, it's often undesirable for applications to have any kind of write permissions to the location their binaries are installed; indeed, in the UNIX world it's not unheard of to have binaries coming from a completely read-only disk or network store, making it *impossible* to write data back to that location (as opposed to an explicitly writable area under /var or such).

⚡Generated with XQuery