Fedora Linux Support Community & Resources Center
  #1  
Old 21st June 2012, 08:27 PM
hlfmanhlfamzng Offline
Registered User
 
Join Date: Jul 2004
Location: Arris Dome
Posts: 216
linuxfirefox
fstab - now root cannot execute programs - permission denied

In messing with the fstab file, I messed up the ability to execute program files somehow.

I wanted to give regular users(non-root) access to a spare hard drive. But when I try to execute programs from the spare hard drive, it gives me 'permission denied' at the konsole.

Anybody know their fstabs? Here's what I have in the fstab:

UUID=a4497ba9-31e4-443a-952e-59029f513264 / ext4 defaults 1 1
UUID=c14a194e-9d4e-4f85-8434-63dae2247a83 /home ext4 defaults 1 2
/dev/sda1 /spare ext4 exec,rw,users 0 0

That is, I want the spare hard drive (which is sda1) to be mounted as spare, which it now is, and my user account can go into the drive. But what did I miss so that all users including root cannot execute programs?

Executables worked 20 minutes ago, before I made all these changes. It's something I did.

Is there a gui which will make all of this easier?
Reply With Quote
  #2  
Old 21st June 2012, 10:07 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,997
linuxfirefox
Re: fstab - now root cannot execute programs - permission denied

The fstab is just part of the set up for you to run exes as general users. Most likely the ownership and group bits on the exe files in your /spare drive are not set to allow the users in question to run the applications.
Reply With Quote
  #3  
Old 22nd June 2012, 03:48 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: fstab - now root cannot execute programs - permission denied

If executables worked before you put it in your fstab, then I would bet that permissions on your mount point aren't set correctly.

Plus you have the mountpoint in / so you could also be hitting selinux issues as well.

Try mounting it in /mnt/spare instead of /spare and make certain you have the correct permissions set when you create the mountpoint.
Reply With Quote
  #4  
Old 22nd June 2012, 08:30 AM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,131
linuxredhatmozilla
Re: fstab - now root cannot execute programs - permission denied

Quote:
/dev/sda1 /spare ext4 exec,rw,users 0 0
Mount options are order-dependant (see 'man mount'). Since 'users' contains 'noexec', it overrides the 'exec'.
Try:
Code:
/dev/sda1 /spare ext4 users,exec,rw 0 0
By the way, you can check the options used by looking at /proc/mount.
__________________
:confused:
Reply With Quote
  #5  
Old 28th June 2012, 06:13 PM
hlfmanhlfamzng Offline
Registered User
 
Join Date: Jul 2004
Location: Arris Dome
Posts: 216
linuxfirefox
Re: fstab - now root cannot execute programs - permission denied

Quote:
Originally Posted by Skull One View Post
Mount options are order-dependant (see 'man mount'). Since 'users' contains 'noexec', it overrides the 'exec'.
Try:
Code:
/dev/sda1 /spare ext4 users,exec,rw 0 0
That fixed it. Thanks.
Reply With Quote
Reply

Tags
denied, execute, fstab, permission, programs, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] root denied permission razing32 Using Fedora 5 30th January 2011 05:43 PM
id:5:initdefault: permission denied. . as root? tommycomeau Using Fedora 9 14th February 2010 08:42 PM
Fedora 11 - scripts dont execute, says permission denied , but perms are given. help. chandan.maddann Servers & Networking 2 13th August 2009 08:26 PM
permission denied even in root Motile Installation, Upgrades and Live Media 6 30th January 2008 08:27 PM
fstab auto mount - permission denied? Shadowplane676 Using Fedora 3 1st May 2006 07:18 PM


Current GMT-time: 06:16 (Thursday, 24-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat