David Poleshuck wrote:
I would like teachers to be able to see students directories from a Windows machine through Samba--but only directories inside the home directory. Later I want to refine it to only their students.
Teachers are in a group called staff.
Students are in 4 groups (s2005, s2006 etc)
One approach is to have group ownership of a pupils folder set to the Teacher's group and use the SetGID options on ext3 and create mask functions in Samba to ensure that files and directories are created with permissions to allow the teacher's group access. You could also allow write access in the same manner. To give the teachers access, create a new share at the "year" level with permissions that only allow members of the staff group access. Then map that to a drive on the Windows machines (as part on the login script, probably). HTH, Tony