pocketzuloo.blogg.se

Apache subversion
Apache subversion




apache subversion
  1. #Apache subversion install
  2. #Apache subversion update
  3. #Apache subversion upgrade
  4. #Apache subversion password
apache subversion

Grant write permission on both SVN repositories to authorized users: $ sudo sed -i "s # auth-access = write auth-access = write " /srv/svn/repo001/conf/nf $ sudo sed -i "s # anon-access = read anon-access = none " /srv/svn/repo002/conf/nf Press CTRL+ O, ENTER, and CTRL+ X to save the file and quit.įorbid anonymous access to both SVN repositories: $ sudo sed -i "s # anon-access = read anon-access = none " /srv/svn/repo001/conf/nf Open the user permissions file with the Nano editor: $ sudo nano /srv/svn/authzĮdit the file as follows to grant the permissions mentioned above:

  • User004 is a trainee who has only read permission on repo002.
  • User002 and user003 are qualified users who have read and write permissions on both repo001 and repo002.
  • User001 is the administrator who has read and write permissions on all SVN repositories.
  • Set up a file /srv/svn/authz to store user permissions: $ sudo cp /srv/svn/repo001/conf/authz /srv/svn/authz $ sudo htpasswd -bm /srv/svn/passwd user004 pass004 & history -d -1 $ sudo htpasswd -bm /srv/svn/passwd user003 pass003 & history -d -1 For example, to create users user002, user003, and user004, use these commands: $ sudo htpasswd -bm /srv/svn/passwd user002 pass002 & history -d -1 If you need more users, create them the same way, but don't use the -c flag, which erases the credential file. $ sudo htpasswd -bcm /srv/svn/passwd user001 pass001 & history -d -1

    #Apache subversion password

    For example, the username is user001 for the first user, and the password is pass001. Set up a password database file /srv/svn/passwd to store user credentials. $ sudo chown -R apache:apache /srv/svn/repo002 $ sudo chown -R apache:apache /srv/svn/repo001Ĭreate another SVN repository named repo002, if necessary: $ sudo svnadmin create /srv/svn/repo002 Specify the root directory of SVN repositories: $ sudo mkdir /srv/svnĬreate the first SVN repository named repo001: $ sudo svnadmin create /srv/svn/repo001

    #Apache subversion install

    Install Apache Subversion: $ sudo dnf install subversion subversion-tools -y Start the Apache service and make it start on boot: $ sudo systemctl start rviceĤ. Prevent Apache from exposing files in the document root directory: $ sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/nf Install Apache and the required Apache modules: $ sudo dnf install httpd httpd-tools mod_ssl mod_dav_svn -yĭisable the welcome page: $ sudo sed -i 's/^/#&/g' /etc/httpd/conf.d/nf

    #Apache subversion upgrade

    Upgrade the system, and reboot the machine to apply all updates: # dnf upgrade -refresh -yĪfter the machine reboots, log in as the sudo user snvsa to continue. # dnf install epel-release epel-next-release -y Install the Extra Packages for Enterprise Linux (EPEL) and EPEL-Next repositories: # dnf config-manager -set-enabled crb # firewall-cmd -zone=public -add-port=3690/tcp -permanent # firewall-cmd -zone=public -add-service=https -permanent # firewall-cmd -zone=public -add-service=http -permanent # firewall-cmd -zone=public -add-service=ssh -permanent

    #Apache subversion update

    Update firewall rules to allow traffic on ports: # echo 'svnsa ALL=(ALL) NOPASSWD: ALL' | tee -a /etc/sudoers.d/designated # echo 'svnsa:another-strong-password' | chpasswd & history -d -1 For example, if you chose this-strong-password as your password: # echo 'root:this-strong-password' | chpasswd & history -d -1Ĭreate a sudo user named svnsa with a strong password. # echo '/swap swap swap defaults 0 0' | tee -a /etc/fstabĬhange the initial root password to a strong password. Otherwise, set up a swap file of 2GB to ease system operations: # fallocate -l 2g /swap Then perform the tasks listed below to harden the system.įind out if any swap space exists on the system: # swapon -s Log in to the Apache Subversion server instance as root with the initial password you found on the Server Details page. If you are hosting the domain name on other platforms, instructions on setting up DNS records may vary.

    apache subversion

    To learn more about managing DNS through Vultr, refer to this article: Introduction to Vultr DNS.






    Apache subversion