Differences between revisions 4 and 5
Revision 4 as of 2010-01-22 14:32:21
Size: 2170
Editor: PieterSmit
Comment:
Revision 5 as of 2010-01-25 15:02:36
Size: 2383
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 65: Line 65:

 * Password
   * /etc/login.defs
   * modify user with # chage [opt] uname
   * groupadd -g 200 sales (GID=200)
   * Add Group: # usermod -a -G sales joshua ( without -a remove other groups)


RedHat

  • Set-up and installation notes.
  • Add new yum repo
    •      sudo wget -P /etc/yum.repos.d/  ftp://server1/pub/gls/server1.repo
  • Start / Stop a service.
    •     $ sudo /sbin/service httpd stop
          $ sudo /sbin/chkconfig httpd off
          OR
          System->Admin->Services
  • YUM
    •      yum localinstall xxxxx.rpm
           yum clean dbcache / all
  • Persistent Kernel Configuration sysctl, add to /proc/sys
    •      sysctl -a
           sysctl -p   << Process sysctl.conf
  • fdisk & partitions

    •      partprove   << reinitializes the kernel's in-memory version of the partition table
           e2label /dev/sdX MYfsLabel
             mount LABEL-MYfsLabel /mnt
           blkid   << show all labels
           tune2fs -o acl,user_xattr /dev/sda2   << set default mount options., check with dumpe2fs
  • Files in use
    •       fuser -v /mnt/home    << who is using file system
            fuser -km /mnt/home   << kill all actions on a filesystem
            mount -o remount,rw  /
            mount --bind /something /anotherthing
  • NFS Filesystems /etc/fstab , activated by /etc/init.d/netfs
    •       mount -t nfs server1:/var/ftp/pub  /mnt/server1
            Line in /etc/fstab
            server1:/var/ftp/pub  /mnt/server1  nfs  defaults  0 0
  • Automounter (autofs RPM) U5-P137
    • /etc/auto.master: << contains dir in fs, and yet another config file with further specific mount options.

      • /misc /etc/auto.misc

        /net -hosts << -hosts allow browsing of nfs shares (could also use -g flag) /home/guests /etc/auto.home.guests /- /etc/auto.direct << /- Allows auto.direct to mount anywhere in file-system

      /etc/auto.misc:
      • server1 -ro,soft server1:/var/ftp/pub or cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
      /etc/auto.home.guests
      • -fstype=nfs server1:/home/guests/& << Mounts nfs on server1 with same name as dir access local in /home/guests

  • Password
    • /etc/login.defs
    • modify user with # chage [opt] uname
    • groupadd -g 200 sales (GID=200)
    • Add Group: # usermod -a -G sales joshua ( without -a remove other groups)

...


CategoryLinux

LinuxRedhat (last edited 2021-06-06 00:25:15 by PieterSmit)