Hi, I'm trying to build a contrib which needs a group and an ibay to be created if not exists. I found a code to make an ibays, but I don't know how to make a group. So please help me out guys...
if /sbin/e-smith/db accounts get ibayname > /dev/null then echo "'ibayname' ibay already exists" /sbin/e-smith/db accounts setprop ibayname CgiBin enabled /sbin/e-smith/db accounts setprop ibayname PublicAccess global /sbin/e-smith/db accounts setprop ibayname UserAccess wr-group-rd-group /sbin/e-smith/db accounts setprop ibayname Group groupname /sbin/e-smith/signal-event ibay-modify ibayname else echo "creating ibay 'cvsroot'" /sbin/e-smith/db accounts set cvsroot ibay Name "summary" minUid=$(/sbin/e-smith/db configuration get MinUid) let "uid=minUid+1" while grep -q :$uid:$uid: /etc/passwd do let uid=uid+1 done /sbin/e-smith/db accounts setprop ibayname Uid $uid Gid $uid /sbin/e-smith/db accounts setprop ibayname PublicAccess global /sbin/e-smith/db accounts setprop ibayname UserAccess wr-group-rd-group /sbin/e-smith/db accounts setprop ibayname PasswordSet no CgiBin enabled /sbin/e-smith/db accounts setprop ibayname Group groupname /sbin/e-smith/signal-event ibay-create ibayname fi With kind regards, Ben ______________________________________________________ This message has been checked for all known viruses ______________________________________________________ De informatie verzonden met dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan. Wij aanvaarden geen aansprakelijkheid voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail bericht, noch voor tijdige ontvangst ervan. ______________________________________________________ HTTP://WWW.Syncera.NL ______________________________________________________ -- Please report bugs to [EMAIL PROTECTED] Please mail [EMAIL PROTECTED] (only) to discuss security issues Support for registered customers and partners to [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org