linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Samba and permissions
@ 2002-08-02  5:38 Mark Sweitzer
  0 siblings, 0 replies; only message in thread
From: Mark Sweitzer @ 2002-08-02  5:38 UTC (permalink / raw)
  To: Linux-Admin (E-mail)


I have a Redhat 7.3 system running Samba server for Windows98 networked
users. These users are registered users on the Linux box, using encrypted
passwords mirrored in Samba's password list. These users need to have file
ownership for existing and new files edited on their Windows PC's. To allow
this, I've made the following mods:
in etc/profile: umask 002
in each user's data directory: chmod -r 7775
in "etc/samba/smb.conf" global settings section:
create mask = 7775
inherit permissions=no
force create mode 0664

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.
I've also tried "inherit permissions=yes" but it did not correct the
problem.
Any suggestions?
***********************
Thanks,
Mark S.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-02  5:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-02  5:38 Samba and permissions Mark Sweitzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).