sexta-feira, agosto 20, 2004

Instalacao do CVS para não utilizar os usuarios da maquina

Instalacao do CVS para não utilizar os usuarios da maquina

- instalar o rpm do cvs mais atualizado

- adduser cvs

- Alterar o profile do usário cvs
###############################################################################
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
CVSROOT=/opt/cvsroot

export PATH CVSROOT
###############################################################################

mkdir /opt/cvsroot
cd /opt/cvsroot
cvs -d /opt/cvsroot init
cd /opt/cvsroot
chown -R cvs:cvs /opt/cvsroot


vi /opt/cvsroot/CVSROOT/passwd

cvssuper:G3unzBZoGac66:cvs
cvstest::cvs #nao vai pedir senha
cvsteste2:$1$hR1ikFEk$4ZMpGlk2iMbdsx2f9mVVn0:12571:cvs # (aqui eh necessario criar o usuario no sistema e copiar a senha criptografada e so depois deletar o usuario) este usuario se autenticara e usara os direitos ao diretorio do usuario cvs

Alterar no /opt/cvsroot/CVSROOT/config (descomentar o #SystemAuth=no)
###############################################################################
# Set this to "no" if pserver shouldn't check system users/passwords
#SystemAuth=no
SystemAuth=no

# Put CVS lock files in this directory rather than directly in the repository.
#LockDir=/var/lock/cvs

# Set `TopLevelAdmin' to `yes' to create a CVS directory at the top
# level of the new working directory when using the `cvs checkout'
# command.
#TopLevelAdmin=no

# Set `LogHistory' to `all' or `TOFEWGCMAR' to log all transactions to the
# history file, or a subset as needed (ie `TMAR' logs all write operations)
#LogHistory=TOFEWGCMAR
###############################################################################

Criar o /etc/xinet.d/cvspserver
service cvspserver
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = cvs
server = /usr/bin/cvs
server_args = -f --allow-root /opt/cvsroot pserver
}

Nenhum comentário: