Hi
I have been running our server in centos 6.2 ,Since selinux had enabled in my centos 6.2 made my server to unreachable.I just made the server to mount in recovery mode in ubuntu .My server harddrive is /dev/sda1 .pls help us how can i disable selinux after mounting .I had hosted the server in vps
root@sw:~# fdisk -l
Disk /dev/sda: 500.0 GB, 499999834112 bytes
255 heads, 63 sectors/track, 60788 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ab69f
Device Boot Start End Blocks Id System
/dev/sda1 * 1 65 522081 83 Linux
/dev/sda2 66 60657 486705240 83 Linux
/dev/sda3 60658 60788 1052257+ 82 Linux swap / Solaris
Last login: Thu Jun 21 16:58:04 2012 from 58.68.21.67
root@:~# clear
root@sw:~# mount /dev/sda1 /mnt
root@sw:~# cd /mnt/
root@sw:/mnt# ls
config-2.6.18-238.9.1.el5PAE symvers-2.6.18-238.9.1.el5PAE.gz
config-2.6.18-238.el5PAE symvers-2.6.18-238.el5PAE.gz
grub System.map-2.6.18-238.9.1.el5PAE
initrd-2.6.18-238.9.1.el5PAE.img System.map-2.6.18-238.el5PAE
initrd-2.6.18-238.el5PAE.img vmlinuz-2.6.18-238.9.1.el5PAE
lost+found vmlinuz-2.6.18-238.el5PAE
message
root@sw:/mnt# cd grub/
root@sw:/mnt/grub# ls
device.map grub.conf minix_stage1_5 stage2
e2fs_stage1_5 iso9660_stage1_5 reiserfs_stage1_5 ufs2_stage1_5
fat_stage1_5 jfs_stage1_5 splash.xpm.gz vstafs_stage1_5
ffs_stage1_5 menu.lst stage1 xfs_stage1_5
root@sw:/mnt/grub#
Where i have to disable selinux in grub.conf.I had mounted the file system ,But i could not know how to disable selinux in grub.conf file after mounting
Quote:
cat grub.conf
# 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. console=ttyS0,57600 console=tty0
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2 console=ttyS0,57600 console=tty0
# initrd /initrd-version.img
#boot=/dev/sda
serial --unit=0 --speed=57600
terminal --timeout=2 serial console
default=0
timeout=5
hiddenmenu
title CentOS (2.6.18-238.9.1.el5PAE)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.9.1.el5PAE ro root=LABEL=/ nodmraid console=ttyS0,57600 console=tty0
initrd /initrd-2.6.18-238.9.1.el5PAE.img
title CentOS (2.6.18-238.el5PAE)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.el5PAE ro root=LABEL=/ nodmraid console=ttyS0,57600 console=tty0
initrd /initrd-2.6.18-238.el5PAE.img
|
root@sw:~# fdisk -l
Disk /dev/sda: 500.0 GB, 499999834112 bytes
255 heads, 63 sectors/track, 60788 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ab69f
Device Boot Start End Blocks Id System
/dev/sda1 * 1 65 522081 83 Linux
/dev/sda2 66 60657 486705240 83 Linux
/dev/sda3 60658 60788 1052257+ 82 Linux swap / Solaris