LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chmod command (https://www.linuxquestions.org/questions/linux-newbie-8/chmod-command-226193/)

linuxtesting2 09-03-2004 11:57 AM

chmod command
 
How can i add access for to users to 1 file/map. Do i have to add these accounts into one group, and allow that group to rwx that file? I dont want to change the ownership of the file, and i dont want every people to have access to that file. Do i need to make a group for those to, or is there some other ways?

ppuru 09-03-2004 12:01 PM

yes, the best way to achieve this is to create a group and assign permissions to this group.

groupadd - to add group
usermod -G groupname username - to add user to the new group.

chgrp groupname directoryname

egag 09-03-2004 12:02 PM

yip, i think you gotto make a group of them with rwx-access.

egag


All times are GMT -5. The time now is 10:31 AM.