====== UNIX/Linux system administration references ====== [ __[[vlsi:home|Home]]__ ] [ __[[vlsi:workbook:computing:unix|UNIX/Linux]]__ ] [ __[[vlsi:workbook|Design WorkBook]]__ ] [ __[[vlsi:private:computing:cluster|VLSI computing cluster references (private)]]__ ] \\ {{ :vlsi:workbook:computing:unix:tux.png?150}} //Know how things work...// == Contents == * Introduction * User accounts and groups * Configuring disk quotas * Working with LVM * SSH server/client config * NFS * Setup a CVS repository * Setup an SVN repository * ... **Keywords:** ====== Introduction ====== NOT only the bare minimum!... ====== Reference books ====== * Æleen Frisch, //Essential System Administration//, O'Reilly, 3rd Edition, 2001 [x] * D.J. Barrett and R.E. Silverman, //SSH The Secure Shell: The Definitive Guide//, O'Reilly, 2001 [x] * and many, many others... ====== User accounts and groups ====== # cd /export/eltXXX/disk0/ # mkdir users # mkdir /users # useradd [options] .... # groupadd [options] ====== Configuring disk quotas ====== [[https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/ch-disk-quotas.html]] ====== SSH server configuration ====== The SSH server’s configuration file is ''/etc/ssh/sshd_config''. By default OpenSSH permits users (including root!) to login with their username/password combination. SSH server configuration file: ''/etc/ssh/sshd_config'' To make changes effective, always restart the SSH service: # /etc/init.d/sshd restart \\ __**Prevent root login**__ Setting in ''/etc/ssh/sshd_config'' the ''PermitRootLogin'' option to ''no'' the SSH server does not allow root to login. You can still use ''su'' after you have succesfully logged in as a normal user. PermitRootLogin no \\ __**Limit SSH access to a limited group of users**__ As an extra security measure, you can create a new group on the server machine and configure the SSH server to allow remote connections only for users member of that group. AllowGroups __**Setup the SSH server to use certificates for authentication**__ [[http://www.g-loaded.eu/2005/11/10/ssh-with-keys/]] ====== NFS setup ====== See the __[[vlsi:workbook:computing:unix:sysadmin:nfs|NFS]]__ page. ====== Setup CVS ====== [[http://commons.oreilly.com/wiki/index.php/Essential_CVS]] A nice manaul can be found at ftp.gnu.org/non-gnu/cvs/source/stable/1.11.22/cederqvist-1.11.22.pdf $ which cvs /usr/bin/cvs $ cvs -v Concurrent Versions System (CVS) 1.11.23 (client/server) ... ... # yum install cvs \\ __**Create a repository**__ Create a CVS top directory e.g. ''.cvsroot'' # mkdir /export/eltXXX/disk0/.cvsroot # chown cadmgr:mgrs .cvsroot/ All the following instructions must be accomplished by by the user hosting the cvs repository, which should be the ''cadmgr''. Login as ''cadmgr'' and then: cd /export/eltXXX/disk0/.cvsroot mkdir CVSROOT setenv CVSROOT /export/eltXXX/disk0/.cvsroot cvs checkout CVSROOT/modules cvs init [[http://www.thegeekstuff.com/2011/10/create-cvs-repository/]] __**Basic CVS commands**__ \\ * ''cvs checkout project'' or ''cvs checkout project/subdir'' * ''cvs add '' * ''cvs remove '' * ''cvs commit -m "Versioning text message info"'' * ''cvs commit -m "Versioning text message info" '' ====== Setup an SVN repository ====== $ which svn /usr/bin/svn By default, subversion is not installed on Scientific Linux 6.x # yum install subversion ====== ====== \\ ---- Last update: [[pacher@to.infn.it|Luca Pacher]] - Nov 21, 2013 ~~NOTOC~~