Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update /conf file permissions #198

Merged
merged 1 commit into from
Aug 30, 2023
Merged

Conversation

UtkarshBhatthere
Copy link
Contributor

@UtkarshBhatthere UtkarshBhatthere commented Aug 29, 2023

$ cd /var/snap/microceph/current/conf/
$ whoami
ubuntu
$ ll
total 24
drwxr-xr-x 2 root root 4096 Aug 29 08:43 ./
drwxr-xr-x 4 root root 4096 Aug 29 08:43 ../
-rw------- 1 root root  151 Aug 29 08:43 ceph.client.admin.keyring
-rw-r----- 1 root root  263 Aug 29 08:44 ceph.conf
-rw-r----- 1 root root  102 Aug 29 08:44 ceph.keyring
-rw-r--r-- 1 root root   64 Aug 29 08:43 metadata.yaml
$ cat ceph.keyring 
cat: ceph.keyring: Permission denied
$ cat ceph.conf 
cat: ceph.conf: Permission denied
$ cat ceph.client.admin.keyring 
cat: ceph.client.admin.keyring: Permission denied
$ sudo cat ceph.keyring 
# Generated by MicroCeph, DO NOT EDIT.
[client.admin]
	key = AQCyr+1kE9cxChAA8A5pVgteASeXh24Hi796Sw==

Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
@sabaini
Copy link
Collaborator

sabaini commented Aug 29, 2023

Nice, many thanks -- lgtm!
As discussed would be a good opportunity to also look at the keyring handling in ceph/keyring.go

Copy link
Collaborator

@sabaini sabaini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cheers!

@sabaini sabaini merged commit 8034cb7 into canonical:main Aug 30, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/var/snap/microceph/current/conf/ceph.keyring is world-readable on filesystem
3 participants