Profilemanager multi association to profile

d.davolio at mastertraining.it d.davolio at mastertraining.it
Tue Apr 2 15:13:54 UTC 2013


Hi David,
It was easy because I had the users in a colon separated .csv list. It 
was something like:

#!/bin/bash

groupadd DOCENTE

for i in `cat docenti.csv`
     do
         a=`echo $i | awk -F: '{print $1}'`
         gpasswd -a $a DOCENTE
     done


Then I attached the desired profile to the DOCENTE group. Every user 
belonging to the group DOCENTE inherits the menu profile.

If you want you can retrieve the user list directly form "getent passwd" 
command.

Bye
Davo



On 03/28/2013 05:37 PM, David Groos wrote:
> Hey Davo -- Glad you were able to solve.  Want to post your script 
> here as an example?  Not everyone would need this but some of us would 
> at the point we need to do it. And, it provides a center for 
> discussing this problem/solution.
>
> Thanks,
> David
>
>
> On Thu, Mar 28, 2013 at 7:42 AM, d.davolio at mastertraining.it 
> <mailto:d.davolio at mastertraining.it> <d.davolio at mastertraining.it 
> <mailto:d.davolio at mastertraining.it>> wrote:
>
>     Well I found a way.
>     I created a secondary ubuntu group, I associated the desired menu
>     profile to this group with profile manager.
>     Then with "gpasswd -a user group" and a little script I associated
>     the secondary group to the desired users.
>     Seems to works.
>     Bye
>     Davo
>
>
>
>     On 03/28/2013 01:11 PM, d.davolio at mastertraining.it
>     <mailto:d.davolio at mastertraining.it> wrote:
>
>         Hi,
>         sorry to disturb. I bet other people asked the same question
>         but I can't find an answer:
>         is there a way to associate the desired groups to a profile,
>         outside the GUI?
>         I'm asking because the gui permit only one-to-one association
>         and I have +1000 users and +100 groups, so doing the
>         association by hand is time consuming, so to speak :)
>
>         Thanks for any info!
>         Davo
>
>
>
>
>     -- 
>     edubuntu-users mailing list
>     edubuntu-users at lists.ubuntu.com
>     <mailto:edubuntu-users at lists.ubuntu.com>
>     Modify settings or unsubscribe at:
>     https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/edubuntu-users/attachments/20130402/5d9df006/attachment.html>


More information about the edubuntu-users mailing list