[Gluster-users] ownership problem with the mount point

David Touzeau david at touzeau.eu
Mon Dec 28 09:48:50 UTC 2009


I'm resend this query because the older subject did not correspond to
the topic.

i'm trying to use the mount point "/var/lib/cyrus-clustered" in order to
make cyrus-imap in cluster mode.
Everything works except permissions problems

What i means...

here it is the cyrus-imap events in the mail.log: 

Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: DBERROR:
dbenv->open '/var/lib/cyrus/db' failed: Permission denied
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: DBERROR: init() on
berkeley
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: checkpointing cyrus
databases
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: DBERROR:
archive /var/lib/cyrus-clustered/db: cyrusdb error
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: DBERROR db4:
txn_checkpoint interface requires an environment configured for the
transaction subsystem
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: DBERROR: couldn't
checkpoint: Invalid argument
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: DBERROR:
sync /var/lib/cyrus-clustered/db: cyrusdb error
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: DBERROR db4:
DB_ENV->log_archive interface requires an environment configured for the
logging subsystem
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: DBERROR: error
listing log files: Invalid argument
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: DBERROR:
archive /var/lib/cyrus-clustered/db: cyrusdb error
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: archiving database
file: /var/lib/cyrus-clustered/mailboxes.db
Dec 27 16:40:05 ub-cluster2 cyrus/ctl_cyrusdb[9145]: error
opening /var/lib/cyrus-clustered/mailboxes.db for reading

------------------------------------------------------------------
it seems there is ownership permissions problems.
------------------------------------------------------------------

cyrus-imap run has cyrus:mail for user and group.

when doing an ls -la on the mounted path : 

drwxr-xr-x 15 cyrus mail  4096 2009-12-27 17:19 .
drwxr-xr-x 15 cyrus mail  4096 2009-12-27 17:19 ..
-rwxr-x---  1 bind  mail   144 2009-12-27 12:01 annotations.db
-rwxr-x---  1 bind  mail   144 2009-11-25 17:36 annotations.db~
drwxr-x--- 13 bind  mail  4096 2009-11-25 17:36 cyrus
drwxr-x---  2 bind  mail  4096 2009-12-27 12:01 db
drwx------  2 cyrus mail  4096 2009-12-27 16:57 db.backup1
drwxr-x---  2 bind  mail  4096 2009-12-27 16:29 db.backup2
-rwxr-x---  1 bind  mail  8192 2009-12-27 04:05 deliver.db
-rwxr-x---  1 bind  mail  8192 2009-11-25 17:36 deliver.db~
drwxr-x---  2 bind  mail  4096 2009-12-23 19:30 log
-rwxr-x---  1 bind  mail  8744 2009-12-27 12:01 mailboxes.db
-rwxr-x---  1 bind  mail  1640 2009-11-25 17:36 mailboxes.db~
-rwxr-x---  1 bind  mail  3676 2009-11-25 17:36 mailboxes.db.old~
-rwxr-x---  1 bind  mail   373 2009-11-25 17:36 mailboxlist.txt~
drwxr-x---  2 bind  mail  4096 2009-12-23 19:30 msg
drwxr-x---  2 bind  mail 12288 2009-12-27 15:29 proc
drwxr-x--- 28 bind  mail  4096 2009-12-23 19:28 quota
drwxr-x---  2 bind  mail  4096 2009-12-23 19:30 rpm
drwxr-x---  2 bind  mail  4096 2009-11-26 08:22 socket
drwxr-x---  2 bind  mail  4096 2009-12-23 19:30 srvtab
drwxr-x---  2 bind  mail  4096 2009-11-25 17:36 sync
-rwxr-x---  1 bind  mail     0 2009-12-27 03:13 titi
-rwxr-x---  1 bind  mail  8192 2009-12-27 04:05 tls_sessions.db
-rwxr-x---  1 bind  mail  8192 2009-11-25 17:36 tls_sessions.db~
drwxr-x--- 28 bind  mail  4096 2009-12-23 19:28 user

you can see that files and folder are owned by bind:mail instead
cyrus:mail

mount points are : 
/etc/artica-cluster/dispatcher-2.vol on /var/spool/cyrus/mail-clustered
type fuse.glusterfs (rw,allow_other,default_permissions,max_read=131072)
/etc/artica-cluster/dispatcher-1.vol on /var/lib/cyrus-clustered type
fuse.glusterfs (rw,allow_other,default_permissions,max_read=13107

how to force the client to mount has a specific user in order to not
corrupt the permissions settings ? 


More information about the Gluster-users mailing list