Pierre Baco Posted November 29, 2005 Report Share Posted November 29, 2005 (edited) Hi. I'm looking for a way to grant temporarily all rights to a user on a specific dir, like sudo lets a user run specific command with root privileges. In other words, I'd like to have an "admin" user able to cleanup the /home dir and only this one, e.g. read/write/delete anything. A kind of "sudo grant_all /home". Any idea ? Pierre Edited November 29, 2005 by Pierre Baco Quote Link to comment Share on other sites More sharing options...
uralmasha Posted November 29, 2005 Report Share Posted November 29, 2005 The first thing that comes on my mind is to make the directories under question belong to group grouponly4thatuser and then grant the necessary access rights, smth like r--rw---- . The user "admin" should be member of grouponly4thatuser , too. Quote Link to comment Share on other sites More sharing options...
Pierre Baco Posted November 29, 2005 Author Report Share Posted November 29, 2005 No, that won't do: it requires a chgrp on the dirs. I want user admin to manage a dir just like user root would do, whatever the user and group owners of the dir are. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.