in reply to Got gdbm store returned -1 error 13 when trying to write!

I don't have anything to add to the given answer, but note that dbmopen is deprecated. use AnyDBM_File; and tie instead.

Makeshifts last the longest.

  • Comment on Re: Got gdbm store returned -1 error 13 when trying to write!

Replies are listed 'Best First'.
Re: Re: Got gdbm store returned -1 error 13 when trying to write!
by perlkid (Novice) on Jun 27, 2002 at 18:36 UTC
    I finally found the problem, it was the permission problem.
    I originally thought that when I create a db using

    dbmopen(%DB, 'file', 0666)

    it would create a database file with the permission specified (0666) if the file doesn't exist
    and also I thought the db file would be "file.db" The real db file somehow (on the RedHat)
    has no extension and the permission was set to (0644 when investigating with the ls command)
    I still have no explanation to myself why though!
    but the problem is solved, thanks :)

    -perlkid
      Sounds like your umask is set to 0733. The extension is not necessarily appended for you - it depends on the DBM module you're using.

      Makeshifts last the longest.