LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GNOME Links (https://www.linuxquestions.org/questions/linux-newbie-8/gnome-links-631565/)

soplin 03-29-2008 03:51 PM

GNOME Links
 
Suppose there are two home users, A and B, and each of these members have folders they'd like to share with one another without making copies, how could they achieve that?

I thought of using links, but GNOME links requires a file to be created in the other user's home, which is restricted by an Access Files only mode and so that can't be done.

thank you

jay73 03-29-2008 04:00 PM

Create a common directory owned by either and create a group that is shared by both. You may still need to chmod it a bit to make it writable by both (in general, chmod 775 for the directory, chmod 664 for the files).

soplin 03-29-2008 04:12 PM

Perhaps users A and B do not want the other user changing stuff, but just be able to access the files.

On relatively the same topic, how would could I make a folder that allows a user to add files, create folders, access files, but not delete or modify anything that has been added or created?

thanks

jay73 03-29-2008 06:05 PM

You would have to use the sticky bit to prevent users from removing files in that case. You can prevent writing to / modifying a file by denying members of the group write permissions on the file(s) (chmod 644, which is the default).

soplin 03-29-2008 10:57 PM

Thank you for the responses.
This still doesn't fix what I'm trying to do.

I'm trying to create a neutral folder, and user A and B can both create and put files into this folder. A can modify and delete A stuff and B can modify and delete B stuff. The two can do things like read files and folders, of each other's stuff if and only if they allow it.

thanks

soplin 03-30-2008 02:17 PM

I found the answer to this problem. Thank you jay73!

As root, you create a folder and a group.
The owner of that folder is to be that new group.
One assigns users to that group.

chmod o+t folder
This makes it so that anyone part of that group can add, delete and write their own files and directories with their own permissions.

Wonderful!


All times are GMT -5. The time now is 09:18 PM.