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