[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to change homes and groups



Fantastic!
The only thing I had to do was create the group home folders first, so home0/2014 had to exist already before importing the new users.

Thanks a lot Wolfgang. I added your notes into the wiki:

https://wiki.debian.org/DebianEdu/Documentation/Wheezy/GettingStarted#Group_Customisation_Example_with_GOsa.2BALI-






On 16 August 2013 18:10, Wolfgang Schweer <wschweer@arcor.de> wrote:
On Tue, Aug 13, 2013 at 04:31:19PM +0900, Nigel Barker wrote:
>
> Could someone give me a brief outline like this: 1 add department, 2.
> create group..... and then I will try to figure it out and add to the
> documentation. At the moment I'm struggling with the concepts and
> getting a sinking feeling.
>
> This is what I'm trying to achieve
>
> student homes to be created in:
> home0/2014/
> home0/2015/
> etc.
>
> groups corresponding to each year, so student A will be a member of
> the 2014group, and the students group.
>
> The above will hopefully work from csv import.

You'll have to use templates (one for each year) for csv import, see
last point.

Theoretically, it should work somehow like outlined here:

(1) Department
Main menu: goto 'Directory structure', click the 'Students' department.
(The 'Base' field should show '/Students'.)
>From the drop box 'Actions' choose 'Create'/'Department'.
Fill in values for Name and Description fields, leave the Base field as
is (should be '/Students'). Save it clicking 'Ok'.
Now the new department below of /Students should show up, click it.

(2) Group
Choose 'Groups' from the main menu; 'Actions'/Create/Group.
Enter group name (leave 'Base' as is, should be /Students/<new
department>) and click the check box left of 'Samba group'. 'Ok' to save
it.

(3) Template
Choose 'users' from the main menu. Change to 'Students' in the Base
field. An Entry 'NewStudent' should show up, click it. This is the
'students' template, not a real user. As you'll have to create such a
template (to be able to use csv import for your structure) based on this
one, notice all entries showing up in the Generic, POSIX and Samba tabs,
mabe take sreenshots.
Now change to /Students/<new department> in the Base field; choose
Create/Template and start to fill in your desired values, first the
Generic tab (add your new group, too), then add POSIX and Samba account.
Choose your new template when doing csv import; testing it with a few
users recommended.

> samba access for every student to his own home

Should be done using the template.

> samba and linux access for all students to a shared folder
> home0/shared

first one: see commented out examples in /etc/samba/smb-debian-edu.conf
(end of file), second one: see manual.

Wolfgang



Reply to: