LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-14-2011, 01:54 AM   #1
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Rep: Reputation: 36
"Allow executing file as program" stuck


I am using Ubuntu 9.10, Nautilus 2.28.1.

When I view a text file properties, Permissions tab, the "Execute" checkbox will not allow the tick to be removed from the box. If I double-click on a text file, Nautilus will always put up a prompt asking whether I want to view the file or execute it as a script. Removing the tick stops it doing this.

I used to be able to remove it - anyone know why I can't now? Nautilus just puts the tick back in again. Even if I sudo nautilus and try changing it as root...
 
Old 05-14-2011, 02:03 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You don't need sudo to root to remove the 'x' permission bit of a file you own.

You didn't give many details. For example, if the filesystem is vfat or ntfs, the permissions are determined at mount-time by the mount options. You can't change the permissions on individual files on these filesystems. The filesystem isn't native, and the ownership & permissions effect all files the same. These permissions are virtual.

Last edited by jschiwal; 05-18-2011 at 03:01 AM. Reason: if -> is typo
 
1 members found this post helpful.
Old 05-14-2011, 07:11 AM   #3
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Original Poster
Rep: Reputation: 36
Quote:
if the filesystem if vfat or ntfs...
Ah! You've hit the nail on the head - I kick myself now for not realising before.

The text files affected are on the NTFS partition of my hard drive, because I also access them through Windows (it's a dual boot machine). If I create an sample text file on my ext3 partition, there is no problem changing that setting.

Thank you for clearing up my query.
 
Old 05-18-2011, 03:03 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
For mass storage drives, and NTFS and vfat file systems, I'd recommend mounting them so that the 'x' bit of files is not set. Of course you need to the 'x' bit on directories.
 
  


Reply

Tags
check, executing, nautilus, script, tick


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how can I "cat" or "grep" a file to ignore lines starting with "#" ??? callagga Linux - Newbie 7 08-16-2013 06:58 AM
[SOLVED] Errors executing shell script: "command not found" and "no such file or directory" eko000 Linux - Newbie 1 01-14-2011 07:54 AM
a bash file executing only "ls -l" doesn't produce colorful listing sirbijan Linux - General 2 08-06-2006 06:19 AM
Stuck at "searching for Info file" during install... kuplo Linux - Newbie 1 12-07-2005 09:23 AM
Debian Boot Up Problem - stuck at "BR" & "I" jc70417 Debian 2 08-30-2005 04:36 PM


All times are GMT -5. The time now is 03:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration