<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi David,<br>
It was easy because I had the users in a colon separated .csv list.
It was something like:<br>
<br>
<small>#!/bin/bash<br>
<br>
groupadd DOCENTE<br>
<br>
for i in `cat docenti.csv`<br>
do<br>
a=`echo $i | awk -F: '{print $1}'`<br>
gpasswd -a $a DOCENTE<br>
done</small><br>
<br>
<br>
Then I attached the desired profile to the DOCENTE group. Every user
belonging to the group DOCENTE inherits the menu profile. <br>
<br>
If you want you can retrieve the user list directly form "getent
passwd" command.<br>
<br>
Bye<br>
Davo<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 03/28/2013 05:37 PM, David Groos
wrote:<br>
</div>
<blockquote
cite="mid:CAAMth24TwroiUiXQhNoYiq_f1PfuhGbsuf36Pgc-EGWUmhDUKw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>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.<br>
<br>
</div>
Thanks,<br>
</div>
David<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Mar 28, 2013 at 7:42 AM, <a
moz-do-not-send="true"
href="mailto:d.davolio@mastertraining.it">d.davolio@mastertraining.it</a>
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:d.davolio@mastertraining.it" target="_blank">d.davolio@mastertraining.it</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Well I
found a way.<br>
I created a secondary ubuntu group, I associated the desired
menu profile to this group with profile manager.<br>
Then with "gpasswd -a user group" and a little script I
associated the secondary group to the desired users.<br>
Seems to works.<br>
Bye<br>
Davo
<div class="HOEnZb">
<div class="h5"><br>
<br>
<br>
On 03/28/2013 01:11 PM, <a moz-do-not-send="true"
href="mailto:d.davolio@mastertraining.it"
target="_blank">d.davolio@mastertraining.it</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
sorry to disturb. I bet other people asked the same
question but I can't find an answer:<br>
is there a way to associate the desired groups to a
profile, outside the GUI?<br>
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 :)<br>
<br>
Thanks for any info!<br>
Davo<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
edubuntu-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:edubuntu-users@lists.ubuntu.com"
target="_blank">edubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a
moz-do-not-send="true"
href="https://lists.ubuntu.com/mailman/listinfo/edubuntu-users"
target="_blank">https://lists.ubuntu.com/mailman/listinfo/edubuntu-users</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>