|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| ARCHIVES - Security Want to know if you should really apply the latest kernel patch? Want to know how to configure your firewall? Discuss any Security related topics in here! |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I'm running SuSE 10.0 on a PC with multiple users. (SuSE owns the box - it's not dual boot.) I'd like to create a shared folder that is owned by two users, such that:
1. Both users can create files in the folder, or move files there. 2. Any files in the folder can be modified by either of the users. 3. Once a file exists in the folder, no permissions need to be changed before conditions 1 & 2 are met (i.e. the folder's permissions would automatically apply to any files placed therein). I don't mind if this folder resides in the home folder of one of the users, or if it resides elsewhere in the filesystem. The folder does not need to be accessible over a network. The two users will never be logged on at the same time or open the same file at the same time. I can figure out how to change the permissions of the folder or any files individually, but what I want to do is create a shared workspace where both users have full access to any files placed there, without having to manually change the permissions of each new file. I'm obviously no expert at Linux, but I can usually figure things out with the help of my reference books and google. This problem stumped me. Everything I found on the web about shared folders and Linux was either about accessing shared Windows folders over a network, or about Apache or Samba. This is just a single box with two users who need a common workspace. I could probably try to use Apache or something, but I hope there's a simpler solution. |
|
|||
|
Quote:
this will change the permissions on the "work folder" so any user can write to it I'm not sure how to solve the second question where you want that all files in this folder to be read/write by the 2 users when you create them,... have to search for that myself. |
|
|||
|
Thanks.
Quote:
Surely someone has solved this one before, for a collaborative project or something. |
|
|||
|
Quote:
2: chgrp -R <new group> <directory where you want the files written> 3: chmod -R 775 <same directory> 4: chmod -R g+s <same directory> ( I can't remember the octal for setgid.... :unsure: ) That will make the directory read/write by anyone in that group, and (should) make all the files in the the same permissions. NOTE: This is untested and I am not responsible if you nuclear reactor melts down because user1 couldn't read user2's files... :lol: Z. EDIT: Another way to do it is instead of step 4, add the command Code:
umask 002 Z. |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|