LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-25-2006, 09:29 AM   #1
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Rep: Reputation: 31
rc script to mount filesystem not working?


my system is a intel laptop on fedora core 6

I am trying to mount a ntfs partition using ntfs-3g using two scripts first one in rc5.d to mount and second one to unmount in rc0.d


I have getting the error in messages log

Nov 25 15:13:42 localhost kernel: audit(1164467622.166:80): avc: denied { read write } for pid=2810 comm="fusermount" name="fuse" dev=tmpfs ino=1403 scontext=system_u:system_r:mount_t:s0 tcontext=system_ubject_r:fixed_disk_device_t:s0 tclass=chr_file


Also when i trying running rc script it fails see below:

[root@localhost init.d]# ./ntfsmount
fusermount: failed to open /dev/fuse: Permission denied
Retrying mount ...
fusermount: failed to open /dev/fuse: Permission denied
Failed to mount NTFSUnmounting /dev/hda1 ()

Any ideas? i suspect selinux, so i stopped and started selinux so it relabelled the filesystem and it did relabel the two scripts see below

-rwxr-xr-x root root system_ubject_r:initrc_exec_t ntfsmount
-rwxr-xr-x root root system_ubject_r:initrc_exec_t ntfsunmount

Thanks in advance
 
Old 11-26-2006, 09:51 PM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
I haven't used ntfs-3g, but have you tried adding a line to /etc/fstab instead of custom scripts? That's the normal way to specify which disks are mounted during boot.
 
Old 11-28-2006, 07:02 AM   #3
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by KenJackson
I haven't used ntfs-3g, but have you tried adding a line to /etc/fstab instead of custom scripts? That's the normal way to specify which disks are mounted during boot.
Hi

Yes i tried that initially, but that also did not work
 
Old 12-01-2006, 07:28 PM   #4
igu
Member
 
Registered: Jan 2003
Distribution: Fedora, Gentoo, SUSE, Mandriva
Posts: 127

Rep: Reputation: 15
This should help: http://www.ntfs-3g.org/support.html#selinux
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
Can't mount filesystem !! tuxuser19 Slackware 1 12-14-2005 06:59 PM
HELP!!! Can't mount filesystem!!! SteelTitan Linux - General 2 06-28-2005 01:57 PM
HELP: I cannot mount my filesystem. Manuel-H Linux - Software 1 06-19-2004 08:14 AM
Can't mount filesystem bureado Linux - Newbie 1 10-29-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration