Operating System - Linux
1753362 Members
5183 Online
108792 Solutions
New Discussion юеВ

Altering entry in FSTAB_LINUX

 
SOLVED
Go to solution
AA786
Frequent Advisor

Altering entry in FSTAB_LINUX

fscontext=system_u:object_r:removable_t,exec,

Wat is this entry in fstab for CDROM,how i can remvove this entry in linux,i modified and reboot again its showing same

i need like this
------------------------------
/dev/hda /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
-----------------------
NOT
/dev/hda /media/cdrecorder auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
7 REPLIES 7
Matti_Kurkela
Honored Contributor
Solution

Re: Altering entry in FSTAB_LINUX

The fscontext option is related to SELinux security system. It sets the security type of the CDROM device to removable_t.

The labeling allows the SELinux security policy to selectively grant access to the CDROM to any applications and/or users.

Some sort of autoconfiguration system is apparently updating your /etc/fstab. As you did not tell us the name and version of your Linux distribution, we cannot help you very much: different distributions have different ways of disabling the autoconfiguration.

MK
MK
AA786
Frequent Advisor

Re: Altering entry in FSTAB_LINUX

i am using RHEL 4 with update 4
AA786
Frequent Advisor

Re: Altering entry in FSTAB_LINUX

How i can disable security.SE linux (modification disable while reboot) IN COMMAND MODE?
Ivan Ferreira
Honored Contributor

Re: Altering entry in FSTAB_LINUX

Edit /etc/sysconfig/selinux and set:

SELINUX=disabled

You must reboot, you can use meanwhile:

setenforce 0
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
AA786
Frequent Advisor

Re: Altering entry in FSTAB_LINUX

Thanks..... its working ,,,
another problem ..after every reboot.in fstab
/dev/hda /media/cdrecorder
changing to /media/cdrecorder1
/media/cdrecorder2
/media/cdrecorder3

how i can make only to

dev/hda /media/cdrecorder
Jeeshan
Honored Contributor

Re: Altering entry in FSTAB_LINUX

create a folder in /media named cdrecorder with proper permission and add this entry in fstab and reboot.
a warrior never quits
AA786
Frequent Advisor

Re: Altering entry in FSTAB_LINUX

.