permissions - How to add a group to an ACL in ubuntu -
problem
i need give read/write access system group called "mongodb" on usb key that's been formatted ext4. seems command worked, when try have system user write folder, permissions error:
2014-11-11t10:41:19.326-0500 [initandlisten] exception in initandlisten std::exception: boost::filesystem::status: permission denied: "/media/me/mongotest/mongodb", terminating
here's command used check group has access:
me@medev:~$ getfacl /media/me/mongotest/mongodb/ getfacl: removing leading '/' absolute path names # file: media/me/mongotest/mongodb/ # owner: root # group: root user::rwx group::r-x group:mongodb:rwx mask::rwx other::r-x
additional test
just prove working, did following:
- create new user in ubuntu called "test".
- created new group called testers
- added test testers.
- added testers acl list /media/me/mongotest/mongodb folder on usb:
me@medev:~$ getfacl /media/me/mongotest/mongodb/ getfacl: removing leading '/' absolute path names # file: media/me/mongotest/mongodb/ # owner: root # group: root user::rwx group::r-x group:mongodb:rwx group:testers:rwx mask::rwx other::r-x
- then changed user "test":
me@medev:~$ su test password:
- tried change directories usb key so:
test@medev:/home/me$ cd /media/me/mongotest bash: cd: /media/me/mongotest: permission denied test@medev:/home/me$ cd /media/me/mongotest/mongodb bash: cd: /media/me/mongotest/mongodb: permission denied test@medev:/home/me$
so seem i'm doing wrong way i'm creating / adding these permissions... because it's failing both users / groups.
i had set acl @ /media/me level.
so did this:
setfacl -m g:mongodb:rwx /media/me
i assumed had include "mongotest" in path because that's name assigned volume / filesystem. guess that's not case.
Comments
Post a Comment