Author Topic: Group folders  (Read 2127 times)

patcunha

  • Zen Apprentice
  • *
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Group folders
« on: May 05, 2008, 01:19:51 pm »
Hi!

I want to know if it is possible to see the folders of my students.
Can I do that?

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: Group folders
« Reply #1 on: May 05, 2008, 05:48:54 pm »
If you have access to your eBox machine using SSH or a shell. The folders are stored under /home/samba/users for the created users and /home/samba/groups for the groups.

Hope this helps.
My secret is my silence...

patcunha

  • Zen Apprentice
  • *
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: Group folders
« Reply #2 on: May 05, 2008, 06:20:05 pm »
Yes, it helps!

But I was looking for an easier way to do that without SSH.

I want the teachers to be able to easily collect students documents (works, tests, etc) without to much trouble. Something like exploring the network, until they find what they need.


But if there is no other way....

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: Group folders
« Reply #3 on: May 06, 2008, 09:30:02 am »
I think you're looking for a different permission set in the group shared directory. However, I don't know how Windows clients manage that kind of permissions...
My secret is my silence...

patcunha

  • Zen Apprentice
  • *
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: Group folders
« Reply #4 on: May 12, 2008, 10:08:49 am »
I took a look at my group folders and they are all empty! I used winscp with login root.
All my users are part of a group! So groups exist! Shouldn't there be group folders?

When I try to login with winscp with a user, which is admin, I can't! I want teachers to be able to do this!

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Group folders
« Reply #5 on: May 12, 2008, 01:33:19 pm »
Hi,

If you are willing to adding a line to the samba configuration file, you could do stuff like: all users belonging to a given group will have administration privileges for all the shares.

Just let me know if you want me to explain to you how to do that...


patcunha

  • Zen Apprentice
  • *
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: Group folders
« Reply #6 on: May 12, 2008, 06:17:52 pm »
Quote
you could do stuff like: all users belonging to a given group will have administration privileges for all the shares.

Yes! I'm very much interested!
Thanks!

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Group folders
« Reply #7 on: May 12, 2008, 08:47:57 pm »
Alright.

First of all, you need a group of users which will have administration rights to all the folders. Let's say this group is called supervisors

Write down that name.

Log into the eBox machine and use your favourite editor to modify  the following file:

Code: [Select]
/usr/share/ebox/stubs/samba/smb.conf.mas

You will have to add the following line around line 106:

Code: [Select]
admin users = @"supervisors"
Note that if you have picked another group you should substitute supervisors for the group name.

That file bit should look like this:

Code: [Select]
        path = <% $group->{'path'} %>
        valid users = @"<% $group->{'groupname'} %>"
        admin users = @"supervisors"
        force group = "<% $group->{'groupname'} %>"
        force create mode = 0770
        force directory mode = 0770
        printable = No
        read only = No
        browseable = Yes
%       }

Save the file and restart samba by running:

Code: [Select]
/etc/init.d/ebox samba restart