[KLUG Members] Samba file permissions

Adam Williams members@kalamazoolinux.org
Thu, 22 Jan 2004 19:52:00 -0500


> Running on a mostly stock Redhat 8 server with smbd
> 2.2.7-security-rollup-fix I seem to be having a problem.
> I have set up an account for all my students, and they all have smb
> connections [full domain logins]. For accounting purposes I dropped a file
> called students.txt [root:root rw-r--r--] into each student home.
> Everything was good, except that they can delete the file. I just changed
> the permissions to rw-------, and it is still owned by root:root, but they
> can still delete the file. Is this a bug I should submit to the smbd
> lists, am I doing something wrong, or is this expected behavior?

Deleting a file is an operation on the directory not the contents of the
file.  Since they have "w" permission on the directory they can create,
rename, and delete files in that directory.

> Also, does anyone know how to export the Linux users' GROUP into the
> windows 98/XP login environment?

Not certain what you mean.  NT/2000/XP support the concept of user
groups, and Samba 3.x.x will provide group mapping.  Win9x barely knows
what a user is.