Local Configuration Vangas ### ### Install and configure local programs. ### ##################################### ### ### Ships Underway Data System (SUDS) ### # Note: data will be placed in directory # /var/www/data # which will be owned by user das 18 Feb 2010 vi /etc/group add das:x:1100:toby,dave,dswensen,dlangner /usr/sbin/useradd -m -s /bin/bash -g das -u 1100 -c "Data Acquisition System" das passwd das # from Pigeon # ssh das@coaster # IP Vangas is currently using #worked # exit ### Create and configure data directory mkdir -p /var/www/data chown -R das:das /var/www/data chmod -R 775 /var/www/data # Files created in a directory with the SGID (Set Group Identification) # attribute set inherit the parent directory's group ownership, otherwise # the file's group ownership corresponds to the user's default group. # # When set, the SGID attribute is represented by the letter "s" # which replaces the "x" in the group permissions: chmod g+s -R /var/www/data ls -dl /var/www/data drwxrwsr-x 2 das das 4096 2010-02-18 15:36 /var/www/data su - das # switch to user das touch /var/www/data/test.das exit su - toby # switch to user toby touch /var/www/data/test.toby exit ls -l /var/www/data -rw-rw-r-- 1 das das 0 2010-02-18 15:37 test.das -rw-rw-r-- 1 toby das 0 2010-02-18 15:38 test.toby ##################################### ### ### ssh keys for das ### su - das # switch to user das mkdir ~/.ssh chmod 700 ~/.ssh cd ~/.ssh ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/das/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/das/.ssh/id_rsa. Your public key has been saved in /home/das/.ssh/id_rsa.pub. The key fingerprint is: 4d:e6:83:d0:4f:8b:5f:d3:ff:52:65:21:34:1a:d5:e3 das@chandra The key's randomart image is: scp id_rsa.pub tangle.coas.oregonstate.edu:~/.ssh/id_rsa.chandra # on tangle # cat new key to authorize # test from Chandra ##################################### ### ### SUDS programs ### # copy suds program files from ktima ### or maybe from vangas ### Save this step for when both Vangas and Chandra are on the same ### local network. /usr/local/sbin/rsync_from_ktima sudstat sh: /var/www/data/wecoma/suds/current/cruise.config: No such file or directory