How can I give a new user all permissions of another existing user?
The use case is that I serve a website of a specific user, let's call him "webuser". The webroot is /home/webuser/WWW. I would like to give the same permissions to users specific to that user to all of my coworkers. However I would prefer to all give them their own user, so no credentials have to be shared.
You should read about the concept of groups in unix systems. The /home/webuser/www directory (and everything inside) should have be in group (for example "group1"). Webuser and another user should be members of this "group1". But remember that you should have the same rights on files and directory for owner and group.
The second solution, but very, very dirty, is to create another user with UID of webuser.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加