Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by perlkid (Novice)
on Jun 27, 2002 at 18:36 UTC ( #177809=note: print w/replies, xml ) Need Help??


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

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
  • Comment on Re: Re: Got gdbm store returned -1 error 13 when trying to write!

Replies are listed 'Best First'.
Re^3: Got gdbm store returned -1 error 13 when trying to write!
by Aristotle (Chancellor) on Jun 27, 2002 at 21:34 UTC
    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://177809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-06-30 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (98 votes). Check out past polls.

    Notices?