Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by Aristotle (Chancellor)
on Jun 27, 2002 at 11:34 UTC ( [id://177678]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://177678]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-25 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found