...
Code Block |
---|
|
su - bhitch # We need a staff user who can sudo
cd /opt
sudo mkdir apache
sudo chown -R serveradmin:serveradminstaff ./apache # Make sure serveradmin can use the folder. |
...
Code Block |
---|
|
su - serveradmin
cd ~
gunzip apache-tomcat-6.0.20.tar.gz tar -xvpf apache-tomcat-6.0.20.tar.gz # All the permissions will be kept
mv ./apache-tomcat-6.0.20/ ./tomcat.1/ # This will be Tomcat1
exit # Switch back to your staff account |
...
Log in as your staff account which has sudo access to perform the actual move to /opt/
Code Block |
---|
|
sudo mkdir /opt/apache # just to organize things a bit better
cd /home/serveradmin
sudo mv ./tomcat.1/ /opt/apache/ |
...