Differences between revisions 2 and 3
Revision 2 as of 2006-10-17 09:02:36
Size: 1462
Revision 3 as of 2006-10-17 09:05:55
Size: 1539
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:

If you want to do the same for all students, relace "year01" by "student"

Also cf. http://wiki.skolelinux.de/CipUX/Skripte

This page collects tweaks and scripts for daily administration that make use of cipux_task_* [:?../ShellTasks:commandline] tools. These tweaks can not only give an example on how to use the cipux API efficiently, but also could give hints to developers who will possibly create a Qt-GUI for CipUX in order to make webmin entirely superflicious...

add all users of group $X to group $Y

Remark: CipUX distinguishes between classes and roles. Here, classes are used.

# for i in `cipux_task_list_user_members_of_course $X` ; do \
   cipux_task_add_user_to_course $Y $i; done 

restore home dir according to course specific skel

Each course $X has its default skeleton file which is virtually the home directory of user $X (this user is created with any course and might be enabled to login with his own password). During restore process, corresponding config files are resynced, so user documents will be kept.

# for i in `cipux_task_list_user_members_of_course $X` ; do \
   cipux_task_restore_user_homedir  $i; done 

create public_html for all users in course year01

First, go to cipux CAT and create skel group "html". in ~html create public_html and, also, create index.html.'

for i in `cipux_task_list_user_members_of_course year01` \
   ; do cipux_task_restore_user_homedir $i /skole/tjener/home0 html \

If you want to do the same for all students, relace "year01" by "student"