LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2010, 09:14 AM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 627
Blog Entries: 1

Rep: Reputation: 48
change default noexec to exec for all partition in an external drive


Hi!
Whenever I plug an external harddrive to a CentOS system,
all partitions mounted will have noexec that makes my
binaries or script files not executable.

Quote:
[root@centos52-64-dell ~]# mount
/dev/sda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdb2 on /media/ext3-datadisk type ext3 (rw)
/dev/sda1 on /windows type ntfs (ro,umask=0222)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb5 on /media/distro1-f10 type ext3 (rw,noexec,nosuid,nodev)
/dev/sdb7 on /media/distro3-u804 type ext3 (rw,noexec,nosuid,nodev)
/dev/sdb8 on /media/movie-files type ext3 (rw,noexec,nosuid,nodev)
/dev/sdb1 on /media/VFDATAD1 type vfat (rw,noexec,nosuid,nodev,shortname=winnt,uid=500)
/dev/sdb6 on /media/distro2-test-C54 type ext3 (rw,noexec,nosuid,nodev)

I have to remount it using, e.g.,

mount -o remount,exec /dev/sdb1

But I am sick and tired of doing it everyday.
What I can I do ?

I don't want to use /etc/fstab to solve this problem because
it will cause booting problem (curable though) when the hard drive is not
around.
 
Old 01-16-2010, 02:15 AM   #2
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
I read

http://www.mail-archive.com/gentoo-u.../msg96542.html

http://felipec.wordpress.com/2006/12...ce-with-gnome/

and I tried

Quote:
gconftool-2 --type list --list-type=string --set /system/storage/default_options/vfat/mount_options "[exec]"
or

Quote:
gconftool-2 --type string -s /system/storage/volumes/_org_freedesktop_Hal_devices_volume_uuid_4A46_1ADD/mount_options "[exec]"
None work!
 
  


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
help..!! how do i change my default document directory to another drive zizo Linux - Newbie 2 12-17-2008 05:11 AM
How to change permissions on an external drive in pclinuxos2007 Clarence27 Linux - Newbie 1 05-07-2008 05:12 AM
automounting usb drive with -noexec off Rohan_mk1 Linux - Software 0 12-13-2006 09:53 AM
Changing default permissions on external USB drive jwsegar Linux - Newbie 2 06-11-2006 07:11 PM
Change default cd drive in Mandrake 10.1? funkadelik Linux - Newbie 7 01-21-2005 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:36 PM.

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