[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: permissions



Andrew Critchlow wrote:
Can you add more then one group to a file in linux?

No.
But you can add one user to more than one group. If you have the situation that a file or a set of files should be shared among different users, you normally would change the group of these files to, say 'shared' and add all users who should have access to it to the group 'shared'. First you have (as root) to add the group 'shared' to your system and add the users to that group:
$ addgroup shared
$ adduser foo group shared

replace 'shared' by any name of your liking, except those already used by your system.

HTH, Johannes



Reply to: