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, [email protected] <mailto:[email protected]> <[email protected] <mailto:[email protected]>> 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, [email protected]
    <mailto:[email protected]> 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
    [email protected]
    <mailto:[email protected]>
    Modify settings or unsubscribe at:
    https://lists.ubuntu.com/mailman/listinfo/edubuntu-users



-- 
edubuntu-users mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/edubuntu-users

Reply via email to