Menu

#2 deb package - first time installation - adding user to erwin

v1.0_(example)
open
Core (2)
5
2004-04-29
2004-04-29
No

Starting on a default install of the configuration
file, and modifying the log-, pid- and data-directories
to a local (in home-directory) based data-dir, it fails
to add the first user needed to set up erwin correctly,
and actually tries to read the global configuration,
not the configuration-file located in
the current directory. This fails due to permission-rights.

Excerpt follows:

Username: firstuser
can't open file /var/lib/erwin/users.db.lock:
Permission denied at /usr/share/perl5/MLDBM/Sync.pm
line 234, <STDIN> line 1.
(in cleanup) can't unlock
/var/lib/erwin/users.db.lock: Bad file descriptor at
/usr/share/perl5/MLDBM/Sync.pm line 258, <STDIN> line 1.

Modifying the config with hard paths does not seem to
do any difference.

Discussion

  • Alex Brasetvik

    Alex Brasetvik - 2004-04-29
    • assigned_to: nobody --> brasetvik
     
  • Alex Brasetvik

    Alex Brasetvik - 2004-04-29

    Logged In: YES
    user_id=998434

    You should NOT edit config.defaults -- that is explicitly stated in the file.

    Do you invoke erwin with -c conf.pl? It seems it's not reading the configuration file properly if it is still using defaults.

     
  • Anonymous

    Anonymous - 2004-04-29

    Logged In: YES
    user_id=360944

    Yup, not edited any of the 'default' config files just
    copied the file directyl from
    /usr/share/doc/erwin/erwin.conf.example, and rewrote the
    DataDir into a local directory.

     
  • Alex Brasetvik

    Alex Brasetvik - 2004-04-29

    Logged In: YES
    user_id=998434

    Could you please post your configuration file and find out if it gets loaded at all? If it does, this might be a critical bug in the loading of configuration files.

     
  • Anonymous

    Anonymous - 2004-04-29

    Logged In: YES
    user_id=360944

    Found it!
    The default read of the config file when adding the first
    user REQUIRES the -c conf.pl statement, not as we've
    discussed earlier reading the directorys conf.pl -file.

     
  • Anonymous

    Anonymous - 2004-04-29

    Logged In: YES
    user_id=360944

    Did a little bit more research on the config-file parsing.
    Seems like the config-file must be explicitly mentioned
    using the -c conf.pl statement, followed by the current
    command, like this:

    erwin -c conf.pl --adduser

    Any other combinations, like for instance this:

    erwin --adduser
    erwin --adduser -c conf.pl

    will fail, as it does not thinkg we give it a proper
    configuration file as an argument. It might be that
    --adduser wants a nickname as argument, I have not checked
    into this.

     

Log in to post a comment.

Auth0 Logo