|
Size: 1770
Comment:
|
← Revision 3 as of 2014-07-24 01:02:00 ⇥
Size: 2553
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 21: | Line 21: |
| mkdir LOG mkdir usr |
mkdir {LOG,usr} |
| Line 25: | Line 24: |
| 1. As root enter the following commands | 1. Alter /u/cc<company>/usr/common.sh so that CCDIR defaults to /u/cc<company> .<<BR>> |
| Line 27: | Line 26: |
| #cd /u/cc{company} #chgrp -R {company} . #find . -type d -exec chmod 770 {} \; |
if [ "$CCDIR" = "" ] ; then CCDIR=/u/cc<company> fi |
| Line 31: | Line 30: |
| 1. Change permissions so only members of group can look inside directory structure: {{{ chgrp -R <company> . find . -type d -exec chmod 770 {} \; }}} 1. Move the users' home directories into their own environment.<<BR>> {{{ usermod -d /u/cc<company>/usr/<username> -m <username> }}} 1. Modify ~username/.vnc/xstartup to call /u/cc{company}/usr/common.sh 1. Edit /etc/inittab and add _new to their inittab_vnc or inittab_vnc_ws script. Kill all related programs. If <company> is part of username you can:<<BR>> {{{ ps auxwww|grep <company> | cut -b10-15 |xargs kill init Q }}} Otherwise, you can use the same command above but repeat it for every user and substituting username in <company><<BR>> 1. Exit out of root (exit). You would normally need to log out and log back in at this point for your group settings to take effect. |
|
| Line 33: | Line 49: |
| . /u/cc{company}/usr/common.sh | . /u/cc<company>/usr/common.sh gorel <company> |
| Line 35: | Line 52: |
1. Conset to <COMPANYNAME><<BR>> {{{ conset -c <COMPANYNAME> }}} 1. Create directory usr. Copy /u/ccr.xx/usr/common.sh into this directory. Edit it so that CCDIR is set to /u/cc{company} . 1. Conset to <COMPANY> 1. add user via addusr 1. Modify ~username/.vnc/xstartup to call /u/cc{company}/usr/common.sh |
1. Conset to <COMPANY> if you are not in the right company. 1. Check the VNC sessions if they are now in correct environment. Once everything is working as it should, delete original company directory. |
Converting a company on SAAS server (Abe) - from old /u/ccr.xx to new version - with it's own environment
- Perform everything from here as root (su -) until notified to exit.
- Edit the file /etc/group and add an entry (use their company name in lower case) at the bottom. Increment the last used GID by 1.
sarissa:x:3239:ccc,lp,monavale,annan,mos zebra:x:3240:ccc,lp,zebra1,zebra2,zebra3,zebra4,zebra-canberra,zebra-tracey urban:x:3241:ccc,lp,uclp,ucmt,uclk,ucho temples:x:3242:ccc,lp,temples1,temples2,temples3 company:x:3243:ccc,lp,john,luke,matthew
- Make sure lp, ccc, cc2 and jon are members of this new group.
Create company environment directory under /u
mkdir cc<company>
- Under new directory create links to relevant revision directories: std, binl, binx11, lib, manual, pixmap, standard
cd /u/cc<company> ln -s /u/ccr.nn/{std,binl,binx11,lib,manual,pixmap,standard} ./ - Copy Company directories (including test company) and adm directory from its original source (this is important so they retain all their terminal numbers)
cp -a /u/ccr.nn/{<COMPANY>,<COMPANY>TEST,adm} ./ mkdir {LOG,usr} cp /u/ccr.nn/usr/common.sh usr/ Alter /u/cc<company>/usr/common.sh so that CCDIR defaults to /u/cc<company> .
if [ "$CCDIR" = "" ] ; then CCDIR=/u/cc<company> fi- Change permissions so only members of group can look inside directory structure:
chgrp -R <company> . find . -type d -exec chmod 770 {} \; Move the users' home directories into their own environment.
usermod -d /u/cc<company>/usr/<username> -m <username>
- Modify ~username/.vnc/xstartup to call /u/cc{company}/usr/common.sh
Edit /etc/inittab and add _new to their inittab_vnc or inittab_vnc_ws script. Kill all related programs. If <company> is part of username you can:
ps auxwww|grep <company> | cut -b10-15 |xargs kill init Q
Otherwise, you can use the same command above but repeat it for every user and substituting username in <company>
- Exit out of root (exit). You would normally need to log out and log back in at this point for your group settings to take effect.
- Change environment to new company:
. /u/cc<company>/usr/common.sh gorel <company>
Conset to <COMPANY> if you are not in the right company.
- Check the VNC sessions if they are now in correct environment. Once everything is working as it should, delete original company directory.
