Research Administration Tasks: Difference between revisions

From Research
Jump to navigation Jump to search
Robbat2 (talk | contribs)
No edit summary
Robbat2 (talk | contribs)
No edit summary
Line 1: Line 1:
* Adding users
* Adding users
** As root on yamato, run /usr/local/sbin/diradm.superadduser '$username' '$email' '$Fullname'
** As root on yamato, run {{Commandline | /usr/local/sbin/diradm.superadduser '$username' '$email' '$Fullname'}}
** Note that a file named '$username' is created in your current directory with the template filled out for mailing (the same file is displayed onscreen).
** Note that a file named '$username' is created in your current directory with the template filled out for mailing (the same file is displayed onscreen).
* Adding groups
* Adding groups
Line 7: Line 7:
* Adding or removing users from a group
* Adding or removing users from a group
** same syntax as gpasswd(8)
** same syntax as gpasswd(8)
** As root on hood, diradm gpasswd (-a|-d) USERNAME GROUP  
** As root on hood, {{Commandline | diradm gpasswd (-a|-d) USERNAME GROUP}}
* Adding projects
* Adding projects
** As root on hood: diradm amadd -O $mapbase $key $src
** As root on hood: {{Commandline | diradm amadd -O $mapbase $key $src}}
** EG (CVS): {{Commandline | diradm amadd -O auto.cvs foobar 209.87.56.240:/export/cvs/foobar}}
** EG (CVS): {{Commandline | diradm amadd -O auto.cvs foobar 209.87.56.240:/export/cvs/foobar}}
** EG (SVN): {{Commandline | diradm amadd -O auto.svn foobar 209.87.56.240:/export/svn/foobar}}
** EG (SVN): {{Commandline | diradm amadd -O auto.svn foobar 209.87.56.240:/export/svn/foobar}}
** '-O' means the default mount options for automount.
** '-O' means the default mount options for automount.
** As root on yamato: create the $src directory now, and give it the approriate permissions. chgrp -R it, and chmod 2771 it.
** As root on yamato: create the $src directory now, and give it the approriate permissions. chgrp -R it, and chmod 2771 it.
** mkdir -p $src # EG /export/cvs/foobar or /export/projects/0/r/rnapredict
** {{Commandline | mkdir -p $src}} # EG /export/cvs/foobar or /export/projects/0/r/rnapredict
** chgrp -R root:$group $src # eg $group being rnapredict or whatever.
** {{Commandline | chgrp -R root:$group $src}} # eg $group being rnapredict or whatever.
** chmod 2771 $src
** {{Commandline | chmod 2771 $src}}
** mkdir -p $src/htdocs # only if they are going to serve web content
** {{Commandline | mkdir -p $src/htdocs}} # only if they are going to serve web content
** chmod 2775 $src/htdocs  
** {{Commandline | chmod 2775 $src/htdocs }}
* Adding CVS repositories
* Adding CVS repositories
** See amadd example above, create the /export/cvs/foobar directory.
** See amadd example above, create the /export/cvs/foobar directory.
** Run: cvs -d /export/cvs/foobar init
** On Yamato:
** Run: chmod -R 2770 /export/cvs/foobar
** {{Commandline | cvs -d /export/cvs/foobar init}}
** Run: chgrp foobar /export/cvs/foobar
** {{Commandline | chmod -R 2770 /export/cvs/foobar}}
** {{Commandline | chgrp foobar /export/cvs/foobar}}
* Adding SubVersion repositories
* Adding SubVersion repositories
** See amadd example above, create the /export/svn/foobar directory.
** See amadd example above, create the /export/svn/foobar directory.

Revision as of 07:39, 11 September 2005

  • Adding users
    • As root on yamato, run
      /usr/local/sbin/diradm.superadduser '$username' '$email' '$Fullname'
    • Note that a file named '$username' is created in your current directory with the template filled out for mailing (the same file is displayed onscreen).
  • Adding groups
    • As root on hood, diradm groupadd
    • same syntax as groupadd(8).
  • Adding or removing users from a group
    • same syntax as gpasswd(8)
    • As root on hood,
      diradm gpasswd (-a
  • Adding projects
    • As root on hood:
      diradm amadd -O $mapbase $key $src
    • EG (CVS):
      diradm amadd -O auto.cvs foobar 209.87.56.240:/export/cvs/foobar
    • EG (SVN):
      diradm amadd -O auto.svn foobar 209.87.56.240:/export/svn/foobar
    • '-O' means the default mount options for automount.
    • As root on yamato: create the $src directory now, and give it the approriate permissions. chgrp -R it, and chmod 2771 it.
    • mkdir -p $src
      # EG /export/cvs/foobar or /export/projects/0/r/rnapredict
    • chgrp -R root:$group $src
      # eg $group being rnapredict or whatever.
    • chmod 2771 $src
    • mkdir -p $src/htdocs
      # only if they are going to serve web content
    • chmod 2775 $src/htdocs
  • Adding CVS repositories
    • See amadd example above, create the /export/cvs/foobar directory.
    • On Yamato:
    • cvs -d /export/cvs/foobar init
    • chmod -R 2770 /export/cvs/foobar
    • chgrp foobar /export/cvs/foobar
  • Adding SubVersion repositories
    • See amadd example above, create the /export/svn/foobar directory.
    • Now on nelson, run:
      svnadmin create /var/svnroot/foobar --fs-type fsfs
  • General user management
    • diradm offers almost all regular POSIX commands, sometimes with a few extra frills. The only commands NOT completely implemented are gpasswd and passwd.
  • Gentoo update procedures (eg, how to update without ever messing up a machine).
    • TODO
  • Welcoming new users; email template or typical wording you've used
    • This is in the diradm.superadduser script, as it fills out the template.
To: $FULLNAME <$EMAIL>
Subject: Research account created - $NEWUSER

Hello $FULLNAME,

Your research account has been created.
Username: $NEWUSER
Password: $NEWPASS

Please visit http://research.iat.sfu.ca/network/changepassword.php to change
your password when you receive this email.

For support with the research network, please email:
help@research.iat.sfu.ca

And include a good description of the entire problem and a suitable subject
line.

Please note that this username/password pair is only valid for the SFU Surrey
Research Network, and is NOT tied into the main SFU authentication systems.
  • quotas
    • TODO