summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20120611/007761.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-discuss/20120611/007761.html')
-rw-r--r--zarb-ml/mageia-discuss/20120611/007761.html160
1 files changed, 160 insertions, 0 deletions
diff --git a/zarb-ml/mageia-discuss/20120611/007761.html b/zarb-ml/mageia-discuss/20120611/007761.html
new file mode 100644
index 000000000..17097cdb3
--- /dev/null
+++ b/zarb-ml/mageia-discuss/20120611/007761.html
@@ -0,0 +1,160 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-discuss] Need help recovering execute permission on local files
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Need%20help%20recovering%20execute%20permission%20on%0A%09local%20files&In-Reply-To=%3CCAHDxzRdU92%2B44ixhKUFPDPeRPJ7aq9q0p3fSwv%2BynxmAJduftQ%40mail.gmail.com%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="007760.html">
+ <LINK REL="Next" HREF="007762.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-discuss] Need help recovering execute permission on local files</H1>
+ <B>Alejandro L&#243;pez</B>
+ <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Need%20help%20recovering%20execute%20permission%20on%0A%09local%20files&In-Reply-To=%3CCAHDxzRdU92%2B44ixhKUFPDPeRPJ7aq9q0p3fSwv%2BynxmAJduftQ%40mail.gmail.com%3E"
+ TITLE="[Mageia-discuss] Need help recovering execute permission on local files">listas.apl at gmail.com
+ </A><BR>
+ <I>Mon Jun 11 14:58:41 CEST 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="007760.html">[Mageia-discuss] Need help recovering execute permission on local files
+</A></li>
+ <LI>Next message: <A HREF="007762.html">[Mageia-discuss] Need help recovering execute permission on local files
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#7761">[ date ]</a>
+ <a href="thread.html#7761">[ thread ]</a>
+ <a href="subject.html#7761">[ subject ]</a>
+ <a href="author.html#7761">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>On Mon, Jun 11, 2012 at 2:30 PM, Len Lawrence &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">tarazed25 at gmail.com</A>&gt; wrote:
+
+&gt;<i> On 11/06/12 12:28, Doug Laidlaw wrote:
+</I>&gt;<i>
+</I>&gt;&gt;<i> On Mon, 11 Jun 2012 11:33:46 +0100
+</I>&gt;&gt;<i> Len Lawrence&lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">tarazed25 at gmail.com</A>&gt; wrote:
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> After a warm reboot this morning I found that I no longer had the
+</I>&gt;&gt;&gt;<i> ability to run my own commands even though the permissions are correct
+</I>&gt;&gt;&gt;<i> and ownership is lcl (uid=500). User system commands are OK so
+</I>&gt;&gt;&gt;<i> running a script via ruby for instance works but trying to execute the
+</I>&gt;&gt;&gt;<i> script by itself fails even though it is fully executable. This
+</I>&gt;&gt;&gt;<i> applies to all my local bin commands. Command aliases however do work
+</I>&gt;&gt;&gt;<i> as long as they do not involve running any of my bin files.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> Even root cannot execute these bin commands; same message &quot;Permission
+</I>&gt;&gt;&gt;<i> denied&quot;.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> In addition the system has switched me to autologin. Trying to run
+</I>&gt;&gt;&gt;<i> mcc I was told it cannot be run in console mode (??). If I login as
+</I>&gt;&gt;&gt;<i> su mcc comes up in console mode, which I am not inclined to use.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> The hostname on this machine is belexeuli; this does not appear in
+</I>&gt;&gt;&gt;<i> the command prompt: [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">lcl at localhost</A> ~]$
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> After su: [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">root at belexeuli</A> lcl]#
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> This may all have something to do with my adding groups and changing
+</I>&gt;&gt;&gt;<i> group ids yesterday in my attempts to implement a viable sudoers
+</I>&gt;&gt;&gt;<i> command. It worked and I could log out and in again without any
+</I>&gt;&gt;&gt;<i> problems. I even managed a reboot without trouble but today is
+</I>&gt;&gt;&gt;<i> another story.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> I suspect that solving these multiple problems is beyond my technical
+</I>&gt;&gt;&gt;<i> skill even with help so a full reinstall is probably the best bet.
+</I>&gt;&gt;&gt;<i> However I will await any comments.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> Len
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> You say that the permissions are correct, but do they include execute
+</I>&gt;&gt;<i> permissions? The prompt difference may be simply that root's prompt is
+</I>&gt;&gt;<i> no longer the same as a user's prompt. It is set by a config file for
+</I>&gt;&gt;<i> each user. You can see the code for it by typing &quot;echo $PS1&quot; In my
+</I>&gt;&gt;<i> case, that gives &quot;[\u@\h \W]\$&quot; The \h puts in the hostname. You can
+</I>&gt;&gt;<i> change it for the current session by typing at the user prompt:
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> PS1=&quot;[\u@\h \W]\$&quot;
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> You can make that permanent by putting it in your .bash_profile, where
+</I>&gt;&gt;<i> it should override the other at your next login, but really, it is only
+</I>&gt;&gt;<i> a workaround.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> With so many issues, I would do a full reinstall, but more knowledgeable
+</I>&gt;&gt;<i> people tell me it is the easy way out.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> HTH,
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Doug.
+</I>&gt;&gt;<i>
+</I>&gt;<i> Yes, all the commands have execute permission. I have been using my local
+</I>&gt;<i> bin directory for years and I have never had execute refused so this must
+</I>&gt;<i> reflect some deep system level screwup relating to lcl and maybe something
+</I>&gt;<i> in pam.d. That is unknown country for me.
+</I>&gt;<i> Until yesterday there was no lcl group, only user lcl. The group for lcl
+</I>&gt;<i> was live, which I have
+</I>&gt;<i> removed from my group list. live was my primary group, now it is lcl
+</I>&gt;<i> which I added yesterday. Ownership of my files is now lcl:lcl and in
+</I>&gt;<i> /home/lcl/bin the permissions are nearly all 755.
+</I>&gt;<i> Note that I can chmod -x &lt;file&gt; and chmod +x &lt;file&gt; but that does not
+</I>&gt;<i> change anything.
+</I>&gt;<i>
+</I>&gt;<i> I notice that home now contains a &quot;live&quot; directory: /home/live, ownership
+</I>&gt;<i> lcl:lcl, containing tmp and nothing else. Now that is weird.
+</I>&gt;<i>
+</I>&gt;<i> The difference in the root and user prompts is probably related to the
+</I>&gt;<i> fact that root cannot access the user's X display. I have seen that sort
+</I>&gt;<i> of thing before when the two have been using different hostnames. I think
+</I>&gt;<i> that root is now looking at belexeuli:0 whereas the user has for some
+</I>&gt;<i> reason reverted to localhost:0. Attempts at using the gui by root throw up
+</I>&gt;<i> protocol errors.
+</I>&gt;<i>
+</I>&gt;<i> As you say, a reinstall looks like the best way out. More knowledgeable
+</I>&gt;<i> people would probably know just where to look for the root of the
+</I>&gt;<i> problem(s) but even after 21 years experience of Unix and Linux I know next
+</I>&gt;<i> to nothing about access and security policies.
+</I>&gt;<i>
+</I>
+
+Maybe it was somehow mounted with the -noexec flag?
+
+Alejandro.
+
+
+
+&gt;<i>
+</I>&gt;<i> Cheers
+</I>&gt;<i>
+</I>&gt;<i> Len
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i>
+</I>-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-discuss/attachments/20120611/f950e8a6/attachment.html&gt;
+</PRE>
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="007760.html">[Mageia-discuss] Need help recovering execute permission on local files
+</A></li>
+ <LI>Next message: <A HREF="007762.html">[Mageia-discuss] Need help recovering execute permission on local files
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#7761">[ date ]</a>
+ <a href="thread.html#7761">[ thread ]</a>
+ <a href="subject.html#7761">[ subject ]</a>
+ <a href="author.html#7761">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss
+mailing list</a><br>
+</body></html>