Hi Michael,  

It works now, after "chmod +r /etc/ceph/*"  
It's a stupid mistake, I remember that i have checked it before. 

Thank you Michael. 

Regards,  
Ndhuynh 

>>> Michael Kuriger <[email protected]> 11/25/2014 1:21 AM >>>

The non root user needs to be able to read the key file. 

Michael Kuriger  

[email protected] 

818-649-7235 

MikeKuriger (IM) 



From: Huynh Dac Nguyen <[email protected]>
Date: Wednesday, November 19, 2014 at 8:44 PM
To: "[email protected]" <[email protected]>
Subject: [ceph-users] how to run rados common by non-root user in ceph
node



Hi All,  


After setting up the ceph, i can run ceph, rados command by root user, 



how can i run them by non-root account?  


i created a key already:  
[root@ho-srv-ceph-02 ~]# ceph auth list 
client.oneadmin 
key: AQBQY21UaLLhCBAAKjsM8qRxFpJA4ppbA7Rn9A== 
caps: [mon] allow r 
caps: [osd] allow rw pool=one 


[oneadmin@ho-srv-ceph-02 ~]$ rados df 
2014-11-20 11:43:44.143434 7f53ac04a760 -1 monclient(hunting): ERROR:
missing keyring, cannot use cephx for authentication 
2014-11-20 11:43:44.143611 7f53ac04a760  0 librados: client.admin
initialization error (2) No such file or directory 
couldn't connect to cluster! error -2 



Regards, 
Ndhuynh 

This e-mail message including any attachments is for the sole use of
the intended(s) and may contain privileged or confidential information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not intended recipient, please immediately contact the sender
by reply e-mail and delete the original message and destroy all copies
thereof.

This e-mail message including any attachments is for the sole use of the
intended(s) and may contain privileged or confidential information. Any
unauthorized review, use, disclosure or distribution is prohibited. If
you are not intended recipient, please immediately contact the sender by
reply e-mail and delete the original message and destroy all copies
thereof.
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to