From: "Alexey I. Froloff" <raorn@immo.ru> To: ALT Linux Community <community@altlinux.ru> Subject: Re: [Comm] Настройка jabberd Date: Thu, 4 Nov 2004 11:56:17 +0300 Message-ID: <20041104085617.GE15200@immo.ru> (raw) In-Reply-To: <20041104084514.GE27565@AKRASAVIN.localdomain> [-- Attachment #1.1: Type: text/plain, Size: 367 bytes --] * Krasavin Andrey <krasavin@> [041104 11:44]: > > Я оттуда выдрал функцию создания юзерской xml'ки. > Не могли бы Вы тогда поделиться скриптиком, а то я как-то не > очень силен в написании скриптов :( Это плохо... -- Regards, Sir Raorn. ------------------- > Что-то не слышно мнения QA, кстати. Удивительно. Робот мнений не имеет. :) -- at in devel@ [-- Attachment #1.2: jabber-adduser --] [-- Type: text/plain, Size: 671 bytes --] #!/bin/sh if [ $# -ne 3 ]; then echo "Usage: ${0##*/} <user> <host> <pass>" exit 1 fi user=$1 host=$2 pass=$3 mkdir -p /var/lib/jabber/$host if [ -e "/var/lib/jabber/$host/$user.xml" ]; then echo "User already exists, not creating." exit 1 fi cat > /var/lib/jabber/$host/$user.xml << EOF <xdb><password xmlns='jabber:iq:auth' xdbns='jabber:iq:auth'>$pass</password><query xmlns='jabber:iq:register' xdbns='jabber:iq:register'><username>$user</username><password xmlns='jabber:iq:auth'>$pass</password></query></xdb> EOF chown jabber:jabber /var/lib/jabber/$host/$user.xml chmod 600 /var/lib/jabber/$host/$user.xml echo "User \"$user@$host\" created" [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-11-04 8:56 UTC|newest] Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-11-03 6:52 Krasavin Andrey 2004-11-03 7:03 ` Denis Klykvin 2004-11-03 7:11 ` Krasavin Andrey 2004-11-03 7:14 ` Alexey I. Froloff 2004-11-03 7:16 ` Denis Klykvin 2004-11-03 7:11 ` Mike Lykov 2004-11-03 7:12 ` Alexey I. Froloff 2004-11-03 7:34 ` Krasavin Andrey 2004-11-03 7:51 ` Krasavin Andrey 2004-11-03 7:52 ` Alexey I. Froloff 2004-11-03 7:58 ` Krasavin Andrey 2004-11-03 7:55 ` Krasavin Andrey 2004-11-03 7:57 ` Alexey I. Froloff 2004-11-03 8:40 ` Krasavin Andrey 2004-11-03 8:46 ` Alexey I. Froloff 2004-11-03 9:01 ` Krasavin Andrey 2004-11-03 11:16 ` Krasavin Andrey 2004-11-03 11:18 ` Alexey I. Froloff 2004-11-03 11:48 ` Krasavin Andrey 2004-11-03 11:30 ` Krasavin Andrey 2004-11-03 11:36 ` Alexey I. Froloff 2004-11-03 11:44 ` Krasavin Andrey 2004-11-08 14:24 ` Maxim Tyurin 2004-11-03 11:39 ` Krasavin Andrey 2004-11-03 9:42 ` Krasavin Andrey 2004-11-03 11:22 ` Krasavin Andrey 2004-11-03 14:10 ` Krasavin Andrey 2004-11-03 14:18 ` Alexey I. Froloff 2004-11-03 14:53 ` [Comm][JT] " Andrey Rahmatullin 2004-11-04 6:38 ` Alexey I. Froloff 2004-11-03 15:06 ` [Comm] " Krasavin Andrey 2004-11-04 7:36 ` Krasavin Andrey 2004-11-04 7:39 ` Alexey I. Froloff 2004-11-04 7:52 ` Krasavin Andrey 2004-11-04 8:02 ` Alexey I. Froloff 2004-11-04 8:07 ` Krasavin Andrey 2004-11-04 8:09 ` Alexey I. Froloff 2004-11-04 8:45 ` Krasavin Andrey 2004-11-04 8:56 ` Alexey I. Froloff [this message] 2004-11-04 9:24 ` Krasavin Andrey 2004-11-04 11:45 ` Krasavin Andrey 2004-11-04 12:16 ` Krasavin Andrey 2004-11-04 12:17 ` Alexey I. Froloff 2004-11-04 12:34 ` Krasavin Andrey 2004-11-04 13:29 ` Mike Lykov 2004-11-04 13:38 ` Krasavin Andrey 2004-11-04 13:45 ` Mike Lykov 2004-11-04 13:56 ` Krasavin Andrey 2004-11-04 15:07 ` Krasavin Andrey 2004-11-08 16:28 ` Maxim Tyurin 2004-11-09 9:17 ` Krasavin Andrey 2004-11-09 18:03 ` Maxim Tyurin 2004-11-10 12:16 ` Krasavin Andrey 2004-11-11 7:48 ` Mike Lykov 2004-12-01 12:04 ` Krasavin Andrey 2004-12-01 12:20 ` Mike Lykov 2004-12-01 12:24 ` Хлызов А.А. 2004-12-01 12:35 ` Mike Lykov 2004-12-01 12:45 ` Хлызов А.А. 2004-12-01 13:32 ` Andrey Rahmatullin 2004-12-01 14:06 ` Krasavin Andrey 2004-12-01 12:44 ` Krasavin Andrey 2004-12-02 14:51 ` Maxim Tyurin 2004-12-06 6:42 ` Krasavin Andrey 2004-12-01 12:27 ` Alexey Morsov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20041104085617.GE15200@immo.ru \ --to=raorn@immo.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git