Help - Search - Members - Calendar
Full Version: "Shared" folder between user on same machine
Linuxhelp > Support > Technical Support
tested1
How do I go about creating a directory so that anything inside of it (including new directorys) retain the permission of the originial directory?
Termina
/etc/profile has a 'umask' line. Changing this will decide what permissions a newly created file has.

777 - umask = permission

So a umask of 000 = 777, 022 = 755, etc.

Keep in mind, however, that if a user cannot 'execute' a directory, nor read it, they cannot access any file in the directory.

In your case, you'd want umask 007 (for these users, atleast. You can add this umask line to their .bash_profile)

If you have several users that need to 'share' a folder, just add them to a group (man groupadd) and set the group of the folder.

chgrp -R groupname foldername

Best of luck
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.