[KLUG Members] Samba file permissions

MPs members@kalamazoolinux.org
Mon, 26 Jan 2004 17:01:47 -0500 (EST)


On Thu, 22 Jan 2004, Adam Williams wrote:

> > 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.

That was pretty much what I was asking. We are just going to cron the file
back into the directorys every nite, no big deal.