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:

  1. create new user in ubuntu called "test".
  2. created new group called testers
  3. added test testers.
  4. 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 
  1. then changed user "test":
me@medev:~$ su test password: 
  1. 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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -