Linux file permissions

I own a particular file on a Linux system. I would like to give 2 groups (accounting, shipping) read access and only read access, and 3 users(Mike, Raj and Wally) write access and only write access.

How can I accomplish this?


I suggest using POSIX ACLs (Access Control Lists). Your filesystem must support them / have the acl option enabled, but if it does, then your problem simplifies to:

setfacl -m u:mike:w myfile
setfacl -m u:raj:w myfile
setfacl -m u:wally:w myfile
setfacl -m g:accounting:r myfile
setfacl -m g:shipping:r myfile

And you can do that for arbitrary sets of permissions.

Need Your Help

Don't know how to build task 'weeklydelete'

ruby-on-rails ruby heroku ruby-on-rails-4

So, I'm trying to setup Heroku scheduler with my cron_job task and I'm getting the following error when running heroku run rake weeklydelete:

Regarding Azure table design

azure logging azure-table-storage azure-tablequery

I am working as freelancer and right now working on one of my game and trying to use Azure table service to log my user moves in Azure tables.