-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 31-Jul-2002/11:03 -0600, Mark Sweitzer <[EMAIL PROTECTED]> wrote: [typical samba setup snipped] >This allows proper file ownership, and I then set all files in each user's >directory to be "read only" to all users but its owner. It also allows me to >assign other group permissions as is necessary without disrupting the >ownerships. Sometimes though, a user will copy a data file from their own >directory into another user's directory, with the intention of having the >file be "writable" by the 2nd user. However, the file continues to hold the >original ownership, and is "read only" to the 2nd user, even though it now >resides in the 2nd user's data directory. > >I need to find the correct "chmod" command, or other method, to allow these >special files to become writable. It needs to be via a one-time command or >script entered at the server, as these Windows users do not have access to a >Linux shell, only to their Samba network shares.
You need a shared directory under home (/home/shared_files), owned by root and a group that the users belong to mkdir /home/shared_files chown root.groupname /home/shared_files chmod 0775 /home/shared_files chmod g+s /home/shared_files and samba settings of [Shared_Files] comment = Shared Files path = /home/shared_files browseable = yes public = no inherit permissions = yes force create mode = 0664 force directory mode = 0775 force group = groupname valid users = @groupname Create a group for these users in /etc/group. Then they can put files that they intend to share in a subdirectory of /home/shared_files and all members of the group will have access to it. If you really need to restrict access only to a specific subset of yor users, create a group for that subset and create a directory and a Samba share for the group. Tony - -- Anthony E. Greene <mailto:[EMAIL PROTECTED]%3E> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux. The choice of a GNU generation <http://www.linux.org/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Anthony E. Greene <mailto:[EMAIL PROTECTED]> 0x6C94239D iD8DBQE9SKilpCpg3WyUI50RAplDAKD6GRyMRZL2I1k7CXYbuoUzZoEv4wCggVmq d0g3bLweE0yi2PZUQFlskac= =YvpN -----END PGP SIGNATURE----- -- redhat-list mailing list Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list