I have a simple IRC Bot that's running with ActiveRecord and a small SQLite3 DB.

When I run as root, the db can be accessed fine, however, when I run it as a normal user, I get a SQLite3::SQLException: unable to open database file: error.

Now I've already chmoded the DB to 0777 and set the owner to the user in question, however the issue still remains.

Any ideas?