Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
num_group_user=$(cat $svn_authz_file | grep "^$rep_group" | grep -c "$user" )
if [ $num_group_user -gt 0 ];then
echo "this user:$user already exist in $rep_group(authz.conf)"
echo "this user:$user dont exist in the group of repository:$rep"
choose "do you want to add user:$user"
$htpwd_tool $svn_user_file $user
echo "add user :$user to repository :$rep into svn userfile success"
choose "do you want to add user_group:$rep_group"
sed -i "1a \\$rep_group=$user" $svn_authz_file
echo "add user :$user to brand new $rep_group success"
choose "do you want to add user:$user to user_group:$rep_group"
sed -i "s/^$rep_group=/$rep_group=$user,/g" $svn_authz_file
echo "add user :$user to exist user_group: $rep_group success"
case $all_flag in
echo "no such way 1110"
echo "no such way 1100"
echo "no such way 1000"
echo "no such way 0110"
echo "no such way 0100"
echo "no such way 0010"
echo "this user:$user and this repository:$rep aleardy exist!"
echo "no such way 0011"
echo "no such way 1010"
echo "no such way 1011"