Re: "Permissions Denied" error as root: SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



R. G. Newbury wrote:
To recap, attempting to run a script, as root, with permissions 755 produced a 'Permissions denied' error.

The problem was that the partition was mounted with 'users,defaults' options, and 'users' implies 'noexec' and overrides 'defaults' (which implies 'exec'),

Changing the line in fstab to 'defaults' and quick 'umount' and 'mount' fixed the problem.

Weird bit is that I was logged in as root..WHICH WAS MISLEADING. When 'nonexec' is set, ALL users are denied execution privileges. (This is most useful for security purposes in denying the use of programs on for example a USB stick from compromising the system.

So, besides checking the permissions on a file, and the parent directories, you have to check how the partition was mounted. This will catch you when you are playing with something on a 'spare' partition.
Or when you change the fstab without realizing the implications!

Thanks to all for the pointers, which gave the solution.

Geoff

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux