FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 08-25-2008, 08:50 AM
"R. G. Newbury"
 
Default "Permission Denied" error for root user when perms are 0775?

Weird problem.
I downloaded an svn version of mythtv, cd'd to the folder, and tried to
run './configure --help', Got a 'Permission Denied' error.


I am root and the permissions were and are 0775...chmod changes nothing,
even trying 0777.


Does anyone have any idea what is going on? The directory is on a 'rw'
partition, since I just downloaded to it, using a script. But the
configure script itself will not run. I changed the first line from:

#!/bin/sh to #!/bin/bash > no change.

And bash *is* in /bin and executable, owned by root.

I'm stumped....

Geoff

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 08-25-2008, 12:16 PM
Thomas Cameron
 
Default "Permission Denied" error for root user when perms are 0775?

R. G. Newbury wrote:

Weird problem.
I downloaded an svn version of mythtv, cd'd to the folder, and tried to
run './configure --help', Got a 'Permission Denied' error.


I am root and the permissions were and are 0775...chmod changes nothing,
even trying 0777.


Does anyone have any idea what is going on? The directory is on a 'rw'
partition, since I just downloaded to it, using a script. But the
configure script itself will not run. I changed the first line from:

#!/bin/sh to #!/bin/bash > no change.

And bash *is* in /bin and executable, owned by root.

I'm stumped....


What is the partition? Is it a remote drive mounted locally? Is it a
USB drive - they are typically mounted noexec? What does /bin/mount
tell you?


Could it be an SELinux denial? What does /var/log/audit/audit.log tell
you?


Anything in /var/log/messages?

--
Thomas

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 08-25-2008, 12:49 PM
laurence orchard
 
Default "Permission Denied" error for root user when perms are 0775?

Thomas Cameron wrote:

R. G. Newbury wrote:

Weird problem.
I downloaded an svn version of mythtv, cd'd to the folder, and tried
to run './configure --help', Got a 'Permission Denied' error.


I am root and the permissions were and are 0775...chmod changes
nothing, even trying 0777.


Does anyone have any idea what is going on? The directory is on a 'rw'
partition, since I just downloaded to it, using a script. But the
configure script itself will not run. I changed the first line from:

#!/bin/sh to #!/bin/bash > no change.

And bash *is* in /bin and executable, owned by root.

I'm stumped....


What is the partition? Is it a remote drive mounted locally? Is it a
USB drive - they are typically mounted noexec? What does /bin/mount
tell you?


Could it be an SELinux denial? What does /var/log/audit/audit.log tell
you?


Anything in /var/log/messages?

i've had a similar problem when trying to delete a file, then it was to
do with extended attributes.


can't remember how i got around it, but looked the details up in man for
attrib from memory!


laurence

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 08-25-2008, 03:39 PM
Steve Searle
 
Default "Permission Denied" error for root user when perms are 0775?

Around 09:50am on Monday, August 25, 2008 (UK time), R. G. Newbury scrawled:

> Weird problem.
> I downloaded an svn version of mythtv, cd'd to the folder, and tried to
> run './configure --help', Got a 'Permission Denied' error.

Is the directory on an NFS mount? If so, was it mounted with the exec
option?

Steve

--

(o< www.stevesearle.com
// Powered by Fedora
V_/_ No MS products were used in the creation of this message

16:38:11 up 11 days, 5:00, 1 user, load average: 0.00, 0.00, 0.00
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 08-25-2008, 04:05 PM
"R. G. Newbury"
 
Default "Permission Denied" error for root user when perms are 0775?

From: "R. G. Newbury" <newbury@mandamus.org>
Subject: "Permission Denied" error for root user when perms are 0775?
To: fedora-list@redhat.com
Message-ID: <48B27255.9030204@mandamus.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

>Weird problem.
>I downloaded an svn version of mythtv, cd'd to the folder, and tried to
>run './configure --help', Got a 'Permission Denied' error.

>I am root and the permissions were and are 0775...chmod changes
>nothing, even trying 0777.


>Does anyone have any idea what is going on? The directory is on a 'rw'
>partition, since I just downloaded to it, using a script. But the
>configure script itself will not run. I changed the first line from:
>#!/bin/sh to #!/bin/bash > no change.

More data points. I don't think this has anything to do with the
'configure' script. It's an error in what bash is running. There is
something wrong with the libraries, I think.


Backing up a little. This is a brand new install of Fedora 8. I ended up
wiping everything from the prior setup, which had become messed up
sometime in the 70 days mythtv was up.
Re-formatted and installed everything, including taking 4 hours for the
'yum update' and loading the mythtv dependencies. Then a new svn of
mythtv. But bash will not run the configure script.


I tried using the fedora recovery route and THIS IS WEIRD! If I ran
'./mnt/sysimage/keep/mythtv/configure --help' IT RAN. So the bash +
libraries of the recovery environment, ARE DIFFERENT than the installed
versions. It is almost as if the installed 'root' login is not a
privileged user. (Makes no difference if I try a different session, with
the 'mythtv' user. It IS something in bash or the libraries it calls.


SO How do I track down what is wrong? On a quick pass, all of the
libraries appear to have the same (correct???) permissions. If there a
trace or something which can find the breakdown? (Google isn't too
useful at this level).


More data. Selinux is disabled. For this, the firewall was disabled.
Booted into run-level 5, using a terminal, kernel is new, updated to
2.6.25-??? 69...latest. As noted, this is a brand new bare-metal (well,
the metal that counts) install.

Geoff

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 08-25-2008, 04:36 PM
"R. G. Newbury"
 
Default "Permission denied" error for root user when perms are 0775?

fedora-list-request@redhat.com wrote:

Send fedora-list mailing list submissions to
fedora-list@redhat.com

To subscribe or unsubscribe via the World Wide Web, visit
https://www.redhat.com/mailman/listinfo/fedora-list
or, via email, send a message with subject or body 'help' to
fedora-list-request@redhat.com

You can reach the person managing the list at
fedora-list-owner@redhat.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of fedora-list digest..."


Today's Topics:

1. Re: "Permission Denied" error for root user when perms are
0775? (Thomas Cameron)
2. Re: Nvidia driver (Claude Jones)
3. Re: 13. Re: FC9 NetworkManager & WPA (Tim) (Tim)
4. Re: "Permission Denied" error for root user when perms are
0775? (laurence orchard)
5. Re: pulseaudio, howto make it work? (Tim)
6. service; ps & grep help (James Pifer)
7. Re: service; ps & grep help (g)
8. Re: service; ps & grep help (g)
9. Re: service; ps & grep help (Mogens Kjaer)
10. Re: service; ps & grep help (Anders Karlsson)
11. Re: service; ps & grep help (Sjoerd Mullender)
12. Re: service; ps & grep help (James Pifer)
13. Re: service; ps & grep help (Kevin Martin)
14. Re: non-disclosure of infrastructure problem a management
issue? (Thomas Cameron)
15. Page Maker Files ??? (Arun Shrimali)
16. Re: non-disclosure of infrastructure problem a management
issue? (Les Mikesell)
17. Re: Which gcc was used to compile OpenOffice.org? (Andrea)


----------------------------------------------------------------------

Message: 1
Date: Mon, 25 Aug 2008 07:16:58 -0500
From: Thomas Cameron <thomas.cameron@camerontech.com>
Subject: Re: "Permission Denied" error for root user when perms are
0775?
To: For users of Fedora <fedora-list@redhat.com>
Message-ID: <48B2A2BA.5000501@camerontech.com>
Content-Type: text/plain; charset="iso-8859-1"

R. G. Newbury wrote:

Weird problem.
I downloaded an svn version of mythtv, cd'd to the folder, and tried to
run './configure --help', Got a 'Permission Denied' error.


I am root and the permissions were and are 0775...chmod changes nothing,
even trying 0777.


Does anyone have any idea what is going on? The directory is on a 'rw'
partition, since I just downloaded to it, using a script. But the
configure script itself will not run. I changed the first line from:

#!/bin/sh to #!/bin/bash > no change.

And bash *is* in /bin and executable, owned by root.

I'm stumped....


What is the partition? Is it a remote drive mounted locally? Is it a
USB drive - they are typically mounted noexec? What does /bin/mount
tell you?


Could it be an SELinux denial? What does /var/log/audit/audit.log tell
you?


Anything in /var/log/messages?
=Thomas

***************
>i've had a similar problem when trying to delete a file, then it was to
>do with extended attributes.

>can't remember how i got around it, but looked the details up in man
>for attrib from memory!


>laurence

********************

Thanks to both of you. Good pointers.
The drive is a partition on the same spindle, mounted '-t ext3 /dev/sda5
/keep', BUT /etc/fstab has the partition as 'users,defaults'...so it IS
possible that 'defaults' = 'noexec'...easily tested: thank you.


However, that would mean that (see my second post) the Fedora recovery
environment uses a different 'default'...hmmmm....possible I guess, as
it is mounting stuff which you are intended to use/play with...why not
execute as well...


As to extended attribs...I cannot see there are any, or why there would
be, as there weren't any before this last re-install...

But I will check that.

Thanks.

Otherwise, I need to use trace or dump or what?????

Geoff

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 08-25-2008, 04:57 PM
Stuart Sears
 
Default "Permission denied" error for root user when perms are 0775?

R. G. Newbury wrote:
[ edited for relevance ]
> Thanks to both of you. Good pointers.
> The drive is a partition on the same spindle, mounted '-t ext3 /dev/sda5
> /keep', BUT /etc/fstab has the partition as 'users,defaults'...so it IS
> possible that 'defaults' = 'noexec'...easily tested: thank you.

nope, it's not 'defaults', it's 'users':
from the mount manpage:

users - Allow every user to mount and unmount the file system. This
option implies the options noexec, nosuid, and nodev (unless overridden
by subsequent options, as in the option line users,exec,dev,suid).

IIRC 'user' has the same problems.


Regards,

Stuart
--
Stuart Sears RHCA etc.
"It's today!" said Piglet.
"My favourite day," said Pooh.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 08-25-2008, 05:16 PM
Dave Feustel
 
Default "Permission denied" error for root user when perms are 0775?

On Mon, Aug 25, 2008 at 12:05:21PM -0400, R. G. Newbury wrote:
> From: "R. G. Newbury" <newbury@mandamus.org>
> Subject: "Permission Denied" error for root user when perms are 0775?
> To: fedora-list@redhat.com
> Message-ID: <48B27255.9030204@mandamus.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> >Weird problem.
> >I downloaded an svn version of mythtv, cd'd to the folder, and tried to
> >run './configure --help', Got a 'Permission Denied' error.
>
> >I am root and the permissions were and are 0775...chmod changes
> >nothing, even trying 0777.
>
> >Does anyone have any idea what is going on? The directory is on a 'rw'
> >partition, since I just downloaded to it, using a script. But the
> >configure script itself will not run. I changed the first line from:
> >#!/bin/sh to #!/bin/bash > no change.
>
> More data points. I don't think this has anything to do with the
> 'configure' script. It's an error in what bash is running. There is
> something wrong with the libraries, I think.
>
> Backing up a little. This is a brand new install of Fedora 8. I ended up
> wiping everything from the prior setup, which had become messed up
> sometime in the 70 days mythtv was up.
> Re-formatted and installed everything, including taking 4 hours for the
> 'yum update' and loading the mythtv dependencies. Then a new svn of
> mythtv. But bash will not run the configure script.
>
> I tried using the fedora recovery route and THIS IS WEIRD! If I ran
> './mnt/sysimage/keep/mythtv/configure --help' IT RAN. So the bash +
> libraries of the recovery environment, ARE DIFFERENT than the installed
> versions. It is almost as if the installed 'root' login is not a
> privileged user. (Makes no difference if I try a different session, with
> the 'mythtv' user. It IS something in bash or the libraries it calls.
>
> SO How do I track down what is wrong? On a quick pass, all of the
> libraries appear to have the same (correct???) permissions. If there a
> trace or something which can find the breakdown? (Google isn't too
> useful at this level).
>
> More data. Selinux is disabled. For this, the firewall was disabled.
> Booted into run-level 5, using a terminal, kernel is new, updated to
> 2.6.25-??? 69...latest. As noted, this is a brand new bare-metal (well,
> the metal that counts) install.
> Geoff
>
Check the permissions of all the directories in the path leading to the
executable generating the 'permission denied' message.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 08-25-2008, 09:09 PM
"R. G. Newbury"
 
Default "Permission denied" error for root user when perms are 0775?

From: Stuart Sears <stuart@sjsears.com>
[ edited for relevance ]
> > Thanks to both of you. Good pointers.
> > The drive is a partition on the same spindle, mounted '-t ext3
/dev/sda5

> > /keep', BUT /etc/fstab has the partition as 'users,defaults'...so it IS
> > possible that 'defaults' = 'noexec'...easily tested: thank you.

nope, it's not 'defaults', it's 'users':
from the mount manpage:

users - Allow every user to mount and unmount the file system. This
option implies the options noexec, nosuid, and nodev (unless overridden
by subsequent options, as in the option line users,exec,dev,suid).

IIRC 'user' has the same problems.
Regards,
Stuart

****************
Thank you, that is the likely answer. 'Defaults' allows 'exec', but you
have to read further down in the options to see that 'user' or 'users'
implies 'noexec'.


Thank you, thank you. Easy to test/check and I now think that could be
the actual problem.....And the fedora recovery environment uses a
different set of defaults, which would explain why I could run the
configure script at /mnt/sysimage/keep/mythtv, but NOT as root at
/keep/mythtv.


What it does NOT explain, however, is why I could not run the script
EVEN THOUGH I WAS ROOT!. It would explain the failure of my attempts as
user mythtv. But it does *feel* like progress. (Since if this is
correct, I should be able to run the script as a user, using sudo...)


Fingers crossed.

Geoff

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 08-25-2008, 09:13 PM
"R. G. Newbury"
 
Default "Permission denied" error for root user when perms are 0775?

From: Dave Feustel <dfeustel@mindspring.com>

>Check the permissions of all the directories in the path leading to the
>executable generating the 'permission denied' message.

Been there, done that. Thought of that very early on. The /bin directory
is 755 as usual, as is the executable. Everything in /bin is 755
except for links which are all (always) 777.


Geoff

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 09:37 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org