[Mageia-discuss] Need help recovering execute permission on local files
tarazed25 at gmail.com
Mon Jun 11 16:45:32 CEST 2012
On Mon, Jun 11, 2012 at 3:28 PM, Len Lawrence <tarazed25 at gmail.com> wrote:
> On 11/06/12 13:58, Alejandro López wrote:
> On Mon, Jun 11, 2012 at 2:30 PM, Len Lawrence <tarazed25 at gmail.com> wrote:
>> On 11/06/12 12:28, Doug Laidlaw wrote:
>>> You say that the permissions are correct, but do they include execute
>>> permissions? The prompt difference may be simply that root's prompt is
>>> no longer the same as a user's prompt. It is set by a config file for
>>> each user. You can see the code for it by typing "echo $PS1" In my
>>> case, that gives "[\u@\h \W]\$" The \h puts in the hostname. You can
>>> change it for the current session by typing at the user prompt:
>>> PS1="[\u@\h \W]\$"
>>> You can make that permanent by putting it in your .bash_profile, where
>>> it should override the other at your next login, but really, it is only
>>> a workaround.
>>> With so many issues, I would do a full reinstall, but more knowledgeable
>>> people tell me it is the easy way out.
>> Yes, all the commands have execute permission. I have been using my
>> local bin directory for years and I have never
> As you say, a reinstall looks like the best way out. More knowledgeable
>> people would probably know just where to look for the root of the
>> problem(s) but even after 21 years experience of Unix and Linux I know next
>> to nothing about access and security policies.
> Maybe it was somehow mounted with the -noexec flag?
> 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
> That does not have noexec against /home.
> About to reboot.
> Thanks for the pointer.
> Back in business as far as local bin files are concerned and root and lcl
quote belexeuli in the prompt. However, root cannot access the gui so
tools like mcc are inaccessible. I need to clobber autologin. Is there a
command line solution for that? I would guess that there is a file
somewhere in /etc with AUTOLOGIN=1.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mageia-discuss