• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Linux Samba file sharing problem.

Asnrefugee

Senior member
Linux is set up to have the owner only be able to modify it. How would I be able to change it so that users and also modify it when the folder/file is created.
 
First you need to create groups and assign users to groups. There are many GUI tools to do this, but they are different for each distro.
The command line tool for adding groups is "groupadd"

Then you need to set your folders to have group permissions. Use "chown" to assign group permissions to a folder/file: chown owner:group folder

Then you need to set the Directory Set Group ID so files created in the folder can be edited by the group.
Taken from http://www.comptechdoc.org/os/...de/linux_ugfilesp.html

Directory Set Group ID

If the setgid bit on a directory entry is set, files in that directory will have the group ownership as the directory, instead of than the group of the user that created the file.

This attribute is helpful when several users need access to certain files. If the users work in a directory with the setgid attribute set then any files created in the directory by any of the users will have the permission of the group. For example, the administrator can create a group called spcprj and add the users Kathy and Mark to the group spcprj. The directory spcprjdir can be created with the set GID bit set and Kathy and Mark although in different primary groups can work in the directory and have full access to all files in that directory, but still not be able to access files in each other's primary group.

The following command will set the GID bit on a directory:

chmod g+s spcprjdir
 
You may also want to look at the following Samba directives:

force create mode
force directory mode
force group
force user
 
Back
Top