When creating a new instance from an autoconf style build, the new schema files copied into the instance specific directory are owned by root, not the server uid. They should be chown'd to the server uid.
Created attachment 142214 [details] diffs
ok.
Reviewed by: nkinder (Thanks!) Files: see diff Branch: HEAD Fix Description: Add a new function - ds_copy_group_files_using_mode_owner() - that allows you to set the file mode and owner when copying directories and files. Use that function when copying the schema files to the new instance directory. Platforms tested: RHEL4 Flag Day: no Doc impact: no Checking in ldapserver/ldap/admin/src/create_instance.c; /cvs/dirsec/ldapserver/ldap/admin/src/create_instance.c,v <-- create_instance.c new revision: 1.37; previous revision: 1.36 done
They seem to be owned by nobody here: -rw------- 1 nobody nobody 24K Dec 14 15:09 __db.001 -rw------- 1 nobody nobody 9.6M Dec 14 15:09 __db.002 -rw------- 1 nobody nobody 1.1M Dec 14 15:09 __db.003 -rw------- 1 nobody nobody 4.4M Dec 14 15:09 __db.004 -rw------- 1 nobody nobody 48K Dec 14 15:09 __db.005 -rw------- 1 nobody nobody 21 Dec 14 15:09 DBVERSION -rw------- 1 nobody nobody 10M Dec 20 15:42 log.0000000005 drwx------ 2 nobody nobody 4.0K Dec 14 15:09 NetscapeRoot drwx------ 2 nobody nobody 4.0K Dec 14 15:22 userRoot "nobody" is the server uid. Verified aginst: 1197673782 redhat-ds-base-8.0.0-11.el5dsrv Fri Dec 14 2007 1197673784 redhat-ds-admin-8.0.0-1.15.el5dsrv Fri Dec 14 2007 1197673785 redhat-ds-console-8.0.0-8.el5dsrv Fri Dec 14 2007 1197673786 redhat-admin-console-8.0.0-9.el5dsrv Fri Dec 14 2007