Allowing ssh login using Sudo In order to record all the commands executed by a engineer when doing a remote login via ssh to your server do the following: 1. Login to the Linux server using the root login. 2. Edit the /etc/sudoers file using visudo. After editing the contents of the file shoud be as follows: # sudoers file. # # This file MUST be edited with the 'visudo' command as root. # # See the sudoers man page for the details on how to write a sudoers file. # # Host alias specification # User alias specification # Cmnd alias specification Cmnd_Alias USR_BIN_CMDS = /usr/bin/telnet, /usr/bin/tail, /usr/bin/diff, /usr/bin/dig, /usr/bin/find, \ /usr/bin/head, /usr/bin/kill, /usr/bin/ldapsearch, /usr/bin/man, \ /usr/bin/updatedb, /usr/bin/wget, /usr/bin/du, /usr/bin/watch Cmnd_Alias SBIN_CMDS = /sbin/chkconfig, /sbin/fdisk, /sbin/fsck, /sbin/ifconfig Cmnd_Alias USR_SBIN_CMDS = /usr/sbin/crond Cmnd_Alias USR_LIB_CMDS = /usr/lib/rpm...
yum configuretion
ReplyDelete#mount /dev/cdrom /mnt/tmp
#cp /mnt/tmp/* /tmp/pub
#cd /tmp/pub/Server
#rpm -ivh createrepo*
#rpm -ivh vsftpd*
#createrepo -v /tmp/pub
#vim /etc/yum.repos.d/rhel.repo
[rhel]
name=Redhat Enterprise linux
baseurl=ftp://serverip/tmp/pub
enable=1
gpgcheck=0
:wq!
#service yum-updatesd restart
#service vsftpd restart
#yum clean all
#yum update all
yum configureation have completed
hi brijesh
ReplyDeletei have purchased laptop, and it has linpus linux installed on it , also i have installed win xp on it ,on different partition , now win xp is getting booted and i am not able to use linux , i am not able to change grub configuration , please tell me how to configure the grub for "linpus Linux"
thank you
ravji
Install GRUB on the first sector of the /boot partition. DO NOT INSTALL IT ON THE MBR!.
ReplyDeleteIf you are performing the Red Hat installation, for the "Boot Loader Installation" screen:
* Select "Use GRUB as the boot loader"
* Select Install Boot Loader record on "...First sector of boot partition".
* After finishing the Red Hat installation, reboot into Linux. If you don't have a boot disk, try booting in linux rescue mode
If you already have Linux installed:
* Run the following command (e.g. assuming /boot is /dev/hda2): grub-install /dev/hda2.
If you don't know which partition contains /boot, run the df command and check the output.
* Edit /etc/grub.conf and make sure there is an entry for your version of Windows. For reference, here is a copy of my /etc/grub.conf file.
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda2
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
root (hd0,1)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda3 hdc=ide-scsi
initrd /initrd-2.4.7-10.img
title Windows 2000
rootnoverify (hd0,0)
chainloader +1