1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
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ópez wrote:
><i>
</I>><i>
</I>><i> On Mon, Jun 11, 2012 at 2:30 PM, Len Lawrence <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">tarazed25 at gmail.com</A>
</I>><i> <mailto:<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">tarazed25 at gmail.com</A>>> wrote:
</I>><i>
</I>><i> On 11/06/12 12:28, Doug Laidlaw wrote:
</I>><i>
</I>><i> On Mon, 11 Jun 2012 11:33:46 +0100
</I>><i> Len Lawrence<<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">tarazed25 at gmail.com</A> <mailto:<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">tarazed25 at gmail.com</A>>>
</I>><i> wrote:
</I>><i>
</I>><i> After a warm reboot this morning I found that I no longer
</I>><i> had the
</I>><i> ability to run my own commands even though the permissions
</I>><i> are correct
</I>><i> and ownership is lcl (uid=500). User system commands are
</I>><i> OK so
</I>><i> running a script via ruby for instance works but trying to
</I>><i> execute the
</I>><i> script by itself fails even though it is fully executable.
</I>><i> This
</I>><i> applies to all my local bin commands. Command aliases
</I>><i> however do work
</I>><i> as long as they do not involve running any of my bin files.
</I>><i>
</I>><i> Even root cannot execute these bin commands; same message
</I>><i> "Permission
</I>><i> denied".
</I>><i>
</I>><i> In addition the system has switched me to autologin.
</I>><i> Trying to run
</I>><i> mcc I was told it cannot be run in console mode (??). If
</I>><i> I login as
</I>><i> su mcc comes up in console mode, which I am not inclined
</I>><i> to use.
</I>><i>
</I>><i> The hostname on this machine is belexeuli; this does not
</I>><i> appear in
</I>><i> the command prompt: [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">lcl at localhost</A> ~]$
</I>><i>
</I>><i> After su: [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">root at belexeuli</A> lcl]#
</I>><i>
</I>><i> This may all have something to do with my adding groups
</I>><i> and changing
</I>><i> group ids yesterday in my attempts to implement a viable
</I>><i> sudoers
</I>><i> command. It worked and I could log out and in again
</I>><i> without any
</I>><i> problems. I even managed a reboot without trouble but
</I>><i> today is
</I>><i> another story.
</I>><i>
</I>><i> I suspect that solving these multiple problems is beyond
</I>><i> my technical
</I>><i> skill even with help so a full reinstall is probably the
</I>><i> best bet.
</I>><i> However I will await any comments.
</I>><i>
</I>><i> Len
</I>><i>
</I>><i> You say that the permissions are correct, but do they include
</I>><i> execute
</I>><i> permissions? The prompt difference may be simply that root's
</I>><i> prompt is
</I>><i> no longer the same as a user's prompt. It is set by a config
</I>><i> file for
</I>><i> each user. You can see the code for it by typing "echo $PS1"
</I>><i> In my
</I>><i> case, that gives "[\u@\h \W]\$" The \h puts in the hostname.
</I>><i> You can
</I>><i> change it for the current session by typing at the user prompt:
</I>><i>
</I>><i> PS1="[\u@\h \W]\$"
</I>><i>
</I>><i> You can make that permanent by putting it in your
</I>><i> .bash_profile, where
</I>><i> it should override the other at your next login, but really,
</I>><i> it is only
</I>><i> a workaround.
</I>><i>
</I>><i> With so many issues, I would do a full reinstall, but more
</I>><i> knowledgeable
</I>><i> people tell me it is the easy way out.
</I>><i>
</I>><i> HTH,
</I>><i>
</I>><i> Doug.
</I>><i>
</I>><i> Yes, all the commands have execute permission. I have been using
</I>><i> my local bin directory for years and I have never had execute
</I>><i> refused so this must reflect some deep system level screwup
</I>><i> relating to lcl and maybe something in pam.d. That is unknown
</I>><i> country for me.
</I>><i> Until yesterday there was no lcl group, only user lcl. The group
</I>><i> for lcl was live, which I have
</I>><i> removed from my group list. live was my primary group, now it is
</I>><i> lcl which I added yesterday. Ownership of my files is now lcl:lcl
</I>><i> and in /home/lcl/bin the permissions are nearly all 755.
</I>><i> Note that I can chmod -x <file> and chmod +x <file> but that does
</I>><i> not change anything.
</I>><i>
</I>><i> I notice that home now contains a "live" directory: /home/live,
</I>><i> ownership lcl:lcl, containing tmp and nothing else. Now that is
</I>><i> weird.
</I>><i>
</I>><i> The difference in the root and user prompts is probably related to
</I>><i> the fact that root cannot access the user's X display. I have
</I>><i> seen that sort of thing before when the two have been using
</I>><i> different hostnames. I think that root is now looking at
</I>><i> belexeuli:0 whereas the user has for some reason reverted to
</I>><i> localhost:0. Attempts at using the gui by root throw up protocol
</I>><i> errors.
</I>><i>
</I>><i> As you say, a reinstall looks like the best way out. More
</I>><i> knowledgeable people would probably know just where to look for
</I>><i> the root of the problem(s) but even after 21 years experience of
</I>><i> Unix and Linux I know next to nothing about access and security
</I>><i> policies.
</I>><i>
</I>><i>
</I>><i>
</I>><i> Maybe it was somehow mounted with the -noexec flag?
</I>><i>
</I>><i> Alejandro.
</I>><i>
</I>><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 "user," 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: </pipermail/mageia-discuss/attachments/20120611/d4771dee/attachment-0001.html>
</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>
|