incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From afshin afzali <a.afzali2...@gmail.com>
Subject local.ini Permission Problem
Date Thu, 17 Jun 2010 11:19:19 GMT
Hi Guys,

After successful installation of couchdb 0.11 on ubuntu server 10.4 LTS,
I've encountered to two issues :
1) The reader_acl fails
2) Can not create couchdb admin user

and as I could realize, the issue come from permissions of local.ini file!
as you can see the default permission is 644 and means the others (including
couchdb user) could just read it.


root@srv1:/etc/couchdb# ls -l
total 20
drwxr-xr-x 2 root root 4096 2010-06-17 08:17 default.d
-rw-r--r-- 1 root root 4579 2010-06-17 08:17 default.ini
drwxr-xr-x 2 root root 4096 2010-06-17 08:17 local.d
-rw-r--r-- 1 root root 1332 2010-06-17 10:45 local.ini


When I try to define couchdb's admin user, couchdb writes to local.ini and
gets this.

[Thu, 17 Jun 2010 09:04:46 GMT] [error] [<0.8936.0>] ** Generic server
couch_config terminating
** Last message in was {set,"admins","admin","admin",true}
** When Server state == {config,[{<0.8955.0>,#Fun<couch_config.2.17946139>},
                                 {<0.8954.0>,#Fun<couch_config.2.17946139>},
                                 {<0.8952.0>,#Fun<couch_config.2.17946139>},
                                 {<0.8950.0>,#Fun<couch_config.2.17946139>},
                                 {<0.8948.0>,#Fun<couch_config.2.17946139>},
                                 {<0.8947.0>,#Fun<couch_config.2.17946139>},
                                 {<0.8947.0>,#Fun<couch_config.2.17946139>},
                                 {<0.8945.0>,#Fun<couch_config.3.70971031>},
                                 {false,#Fun<couch_server.3.35387302>},
                                 {<0.8942.0>,#Fun<couch_config.3.70971031>},
                                 {<0.8942.0>,#Fun<couch_config.2.17946139>},
                                 {<0.5.0>,#Fun<couch_config.2.17946139>}],
                                "/etc/couchdb/local.ini"}
** Reason for termination ==
** {{badmatch,{error,eacces}},
    [{couch_config_writer,save_to_file,2},
     {couch_config,handle_call,3},
     {gen_server,handle_msg,5},
     {proc_lib,init_p_do_apply,3}]}


After changing the permissions to 646 (I know this causes security issue)
the problem solved!


appreciate all comments,
-- afshin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message