You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2008/08/08 18:17:28 UTC

[Spamassassin Wiki] Update of "NewUploadedCorporaUser" by JustinMason

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by JustinMason:
http://wiki.apache.org/spamassassin/NewUploadedCorporaUser

The comment on the change is:
move to its own page

New page:
= Creating New Uploaded Corpora Users =

These are instructions for PMC members who wish to set up a new account for users to upload their HandClassifiedCorpora for us to use in the NightlyMassCheck runs.

Log in to the zone and run:

{{{
MCUSER=[username]
MCPWD=[random password]

sudo mkdir /export/home/nitemc/$MCUSER
sudo chmod 1777 /export/home/nitemc/$MCUSER
cd /export/home/nitemc/$MCUSER
echo "$MCPWD" > rsync_password
chmod 600 rsync_password

sed -e "s/MCUSER/$MCUSER/" -e "s/MCPWD/$MCPWD/" > .corpus
}}}

And paste in these lines:

{{{
opts_weekly="--net -j 8 --reuse --cache --cachedir=/tmpfs/aicache_nightly --cs_schedule_cache --cs_cachedir=/export/home/nitemc/cache --restart=500 ham:detect:/export/home/bbmass/uploadedcorpora/MCUSER/ham/* --after="-15552000" --tail=25000 spam:detect:/export/home/bbmass/uploadedcorpora/MCUSER/spam/*"
opts_nightly=" --reuse --cache --cachedir=/tmpfs/aicache_nightly --cs_schedule_cache --cs_cachedir=/export/home/nitemc/cache --restart=500 ham:detect:/export/home/bbmass/uploadedcorpora/MCUSER/ham/* --after="-15552000" --tail=25000 spam:detect:/export/home/bbmass/uploadedcorpora/MCUSER/spam/*"
tmp=$HOME/tmp
tree=$HOME/svn
prefs_weekly=$HOME/user_prefs.weekly
prefs_nightly=$HOME/user_prefs.nightly
username=bb-MCUSER
password=__RSYNC_PASSWORD__
serverhost=spamassassin.zones.apache.org.:38899
clienthosts=__CLIENTHOSTS__
clienttree=nightlymc_MCUSER
}}}

Then CTRL-D to end cat.

{{{
mkdir tmp
svn co http://svn.apache.org/repos/asf/spamassassin/trunk svn
[accept certificate 'p'ermanently]

sudo chown -R nitemc .
}}}

In SVN trunk, edit {{{build/nightlymc/run_nitemc}}}, add their username to the list, check that file in.

Then in the zone, as the uid "automc", do this:

{{{
  cd /home/automc/svn/spamassassin
  svn up
}}}

so that that latest script is updated for when cron runs.

Finally, edit {{{/home/corpus-rsync/secrets}}} and add a line to the end, like so:

{{{
bb-$MCUSER:$MCPWD
}}}

e.g. if MCUSER was "jm" and the generated MCPWD was "Wi0FdPWg":

{{{
bb-jm:Wi0FdPWg
}}}

That's it.  Now tell the user their username (with the "bb-" prefix) and password.