[Résumé] [Copyright]

SourceForge Installation Guide - Chapitre 5
Shell user authentication


5.1 Introduction

Sourceforge offers a shell account to all users with a project. It uses a dump from the database to generate /etc/shadow, /etc/passwd and /etc/group. This has two big drawbacks: first you have to wait for the next cron job for any changes to your password etc. and this implies a lock every 6 hour (on SourceForge) on three critical files of the system. This is not very important for VA since they have a lot of powerful machines but for a "one machine Sourceforge" this is critical.


5.2 Solution

We suggest that you use the nss-mysql library which can authenticate groups or users directly from your MySQL database. We recommend that you use the tarball that you can find at http://zoy.org/~guillaum/SF/.


5.3 Installation Guide

We suppose that you have created a users group. We'll assume that its PID is 100.Now Untar the archive and run

	configure --enable-default_home=SF_ROOT/home/users --enable-default_gid=100

Now type make, su and make install.

Generate two random passwords for two MySQL users. And edit guide/db_perms.sh and run it to give the correct rights to them.

You just have to modify your nsswitch.conf to add the "mysql" service to passwd, group and shadow.

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         files mysql
group:          files mysql
shadow:         files mysql

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis


[Résumé] [Copyright]

SourceForge Installation Guide
$Id: SF_install_guide.sgml,v 1.24 2001/05/31 12:46:42 guillaum Exp $
Guillaume Morin guillaume.morin@alcove.fr