Skip to main content
Jump to: navigation, search

Difference between revisions of "Modeling Project Releng/Component Creation/Build Server Setup"

(New page: == Add new user == <table><tr><td> su export newuser=''newuser'' /usr/sbin/adduser $newuser; \ /usr/bin/usermod -G www -p ${newuser}1 $newuser </td></tr></table> == Add new compon...)
m (Add new user)
Line 7: Line 7:
  /usr/sbin/adduser $newuser; \
  /usr/sbin/adduser $newuser; \
  /usr/bin/usermod -G www -p ${newuser}1 $newuser
  /usr/sbin/usermod -G www -p ${newuser}1 $newuser
== Add new component ==
== Add new component ==

Revision as of 14:49, 14 November 2007

Add new user

export newuser=newuser
/usr/sbin/adduser $newuser; \
/usr/sbin/usermod -G www -p ${newuser}1 $newuser

Add new component

export newcomponent=newcomponent;
cd /home/www-data/build/modeling/emft; mkdir $newcomponent; \
chown apache:apache *; chmod g+w *; \
cd /var/www/html/modeling/emft/; cvs up -Pd $newcomponent; \
cd $newcomponent; \
chown -R www * .*; chmod -R g+w * .*; \
cd /var/www/html/modeling/emft/$newcomponent/build/; \
cd /var/www/html/modeling/emft/cdo/build/.htaccess .; \
chmod 664 .htaccess; \
cd /var/www/html/modeling/emft/$newcomponent; \
ln -s /home/www-data/build/modeling/emft/$newcomponent/downloads/

Edit firewall

/sbin/iptables -I INPUT -p tcp -s newhost_or_IP --dport 22 -j ACCEPT # newuser (newcomponent)


Finally, send the user an email or IM with his new .htaccess and ssh usernames/passwords.

Back to the top