Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: cyberdude on September 04, 2004, 04:40:07 PM

Title: lazy admin tool ?
Post by: cyberdude on September 04, 2004, 04:40:07 PM
I have been using lazy admin tool a couple of times now, and it works just great!

But now i am facing the task of adding about 250 users to my system, and was wondering

Is it posible to add a group id (GID) to the lat-user when creating new user's

I have tryed but with no luck

does any of you have a sugestion ?

Here what's written in the lat-user sample file :

UID/GID     : User ID. If omitted, the first available free uid/gid will be used.

ant right abow the input line it sayes :
|Forward Address 7    | UID/GID |
but nomather what i writes there it wont work i have tryed with :
 /xxx (xxx = the GID of the group i want the user to be a member of) ant that way leavint the UID blank
but no luck....

Anu sugestion ?
Title: lazy admin tool ?
Post by: Michiel on September 05, 2004, 11:01:15 AM
You can't use lat-users to add users to a group. You need to use lat-group for that. Create all the users you need and then run
# lat-groups -a -c "mygroup | Group description | | usrs1 | user 2 | user 3"
to assign them to a group.
Michiel
Title: lazy admin tool ?
Post by: cyberdude on September 05, 2004, 12:36:24 PM
Quote from: "Michiel"
You can't use lat-users to add users to a group. You need to use lat-group for that. Create all the users you need and then run
# lat-groups -a -c "mygroup | Group description | | usrs1 | user 2 | user 3"
to assign them to a group.
Michiel


Hi!

if i run this command woud that if i'm right creat a new group ?

the ting i want is to asign new users to an existing group......
Title: Lazy admin tool
Post by: eekb on September 05, 2004, 12:45:57 PM
Hi,

I tried to work with the lazy admin tool. I made 80 users in the text file with username, surname and lastname. I used the command: lat-users -a -i users.list.
But after 5 users it stopped with an error. I have version 0.8.3-1. The password file for the five users was made but I'd like to make more users in one time.

Is there something I must know (some limitations in usernames). I use usernames like mbi04-csomename.

You're experience is better than mine. Can you give me a clou.

eek
Title: lazy admin tool ?
Post by: Michiel on September 05, 2004, 12:51:23 PM
I've tested lat-users with 1.000 users and didn't have a problem, so I suspect there is an error in your inputfile. Please mail me your input file at michiel_at_altiplano_dot_be and I'll have a look.
Michiel
Title: lazy admin tool ?
Post by: Michiel on September 05, 2004, 12:52:37 PM
I also need to know after which user the error ocurred and what the error message was.
Thanks,
Michiel
Title: Input file
Post by: eekb on September 05, 2004, 02:10:49 PM
I have sent you the input file.

thx,

Eek
Title: lazy admin tool ?
Post by: Michiel on September 05, 2004, 02:47:55 PM
The maximum allowed length of a user name is 12 characters. In practice SME seems to accept names up to 16 characters (using lat-user), but beyond that even SME gives up. I recommend you truncate the names to 12 characters before feeding them to lat-users.

Although not really a bug, I agree lat-users should check the length and give a more helpfull error message. I'll add it to my to-do list.

regards,
Michiel
Title: lazy admin tool ?
Post by: Michiel on September 08, 2004, 02:07:44 PM
I just released version 0.9.0 of the LAT tools, which fixes a.o. this problem.

New is also:
- lat-users now also can assign users to groups
- lat-users can now also be used to update settings (if the user already exists).
- minor bugs that were reported by nobody :-/

you can find the tools  here (http://mirror.contribs.org/smeserver/contribs/mblotwijk/Contribs/lazy-admin-tools/)

regards,
Michiel
Title: Just what I needed!
Post by: eekb on September 08, 2004, 02:53:16 PM
Hi Michiel,

I was just making updates for a lot of students. But I noticed that it was not possible to that with lat-users. when I almost finished updating I got the mail for this post.
Now I know that it is possible with the new version to update a lot of users in one handstroke!
It is just what I needed. Okay if i had an our before it saved me al lot of time, but in the future it is the first tool I will use to update my users!

A very good update of you'r program.

Greetz,

Igor