LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sharing files read only for a group (https://www.linuxquestions.org/questions/linux-newbie-8/sharing-files-read-only-for-a-group-359727/)

asheesh.tyagi 09-03-2005 01:01 AM

sharing files read only for a group
 
Hi
i have installed redhat enterprise linux 3 on my system. now i want to give
a folder to a group of users where they can make files and read each others files, but cat not write to each others files.

if i give rwxr-x--- on the folder then no one can make files in his folder. and
if i give rwxrwx--- on this folder then any one can write to the files even they don't have write permission on files using :wq!(forcefully)in vi . gedit and other
editors says file is read only and can not write to the file.vi also says that file is read only but write to the file when i use :wq!.
folder owner is root and group is SALES.

all the users have their own private group and have a common group SALES
as their secondary group. i have not implemented SGID bit on that folder.
users umask is 002.

looking forward for response.

Thanking you

Ashish Tyagi

tuXfree 09-03-2005 01:29 AM

Hello,

Try this kind of permission " drwxr-xr-x " to your folder, users belong to same groups can view the files in this folder but they cannot write even using "wq!" only root have a full access.

Hope it helps...

otoomet 09-03-2005 02:51 AM

Right to write in a folder gives you permission to remove files there, AFAIR. This may explain why vi and gedit behave differently.

Best,
Ott

asheesh.tyagi 09-03-2005 06:26 AM

hi
thanks but is it not possible to give right to users to make files and write to their own files while others can only read the files.


All times are GMT -5. The time now is 05:53 PM.