• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Best way to edit users' home folders using samba

WaitingForNehalem

Platinum Member
A teacher needs the ability to view and edit the students' home folders. The students can't see each other's home folder though.

Code:
[homes]
    comment = Home Directories
    browseable = no
    writable = yes
    valid users = %S

Here are my two solutions:


Code:
chmod -R 777 /home

Code:
[student profiles]
    comment = student profiles
    path = /home
    writeable = no
    write list = 100, david
    valid users = 100, david

OR

Code:
chmod -R 755 /home

Code:
[student profiles]
    comment = student profiles
    path = /home
    writeable = no
    valid users = 100, david
    admin users = 100, david

Both of these solutions aren't ideal though. I don't like have the /home directory so open and I also don't like the teacher being logged in as root since the files he creates will be owned by root. Would that affect the student's ability to edit the file?

Would putting "directory mask" override the unix permissions?
 
Maybe I'm missing something, but why would the second solution have files created by the teacher owned by root?
 
Back
Top