Jump to content

{SOLVED} Midnight Commander will not start as user only root


ichase

Recommended Posts

With the help of Josh and Fran, I have been able to get more out of my server by running gnuscreen. Currently I can toggle between shell, weechat, htop, and atop but Midnight Commander will not generate as normal user.

When at the terminal, if I attempt to run mc as a normal user I get the following error:

[ichase@homeserver ~]$ mc

(mc:15037): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Cannot create /home/ichase/.cache/mc directory

(mc:15037): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Cannot create /home/ichase/.local/share/mc directory
Failed to run:
Cannot create /home/ichase/.config/mc directory

This in turn does not populate a mc shell in gnusreen

If I run mc as root, it runs fine. I figured this had to be a permissions issue but can't see where the permission issue resides.

 

Thanks as always to my great educators here at BATL :thumbsup:

Link to comment
Share on other sites

securitybreach

Can you post the output from this?

ls -al /home/ichase/.config

 

Also, have you tried creating the mc directory:

mkdir /home/ichase/.config/mc

Link to comment
Share on other sites

Josh, I will get you the results when I get home this evening.

But I can answer your second question. When I tried creating /home/ichase/.config/mc it told me it already existed.

Link to comment
Share on other sites

securitybreach

Josh, I will get you the results when I get home this evening.

But I can answer your second question. When I tried creating /home/ichase/.config/mc it told me it already existed.

 

Then I would think that it has to be a permission issue.

Link to comment
Share on other sites

Josh, definitely a permissions issue as seen below from the output you requested

[ichase@homeserver ~]$ sudo ls -al /home/ichase/.config
[sudo] password for ichase:
total 20
drwx------ 4 root root 4096 Oct 12 20:33 .
drwx------ 10 ichase ichase 4096 Jan 8 06:17 ..
-rw-r--r-- 1 root root 161 Oct 12 20:23 archey3.cfg
drwx------ 2 root root 4096 Oct 12 20:33 htop
drwx------ 2 root root 4096 Jan 6 04:49 mc

I could not even run this command as normal user, told me permission denied?

I remember when I installed Arch and created a the user ichase, I gave it all of the same permissions I have given ichase on all my other machines? Now is there a way to "UPDATE" the user permissions for ichase or would I have to delete the user ichase and re-create it?

 

I can't even run archey3 as a normal user:

[ichase@homeserver ~]$ archey3
Traceback (most recent call last):
 File "/usr/bin/archey3", line 824, in <module>
   main()
 File "/usr/bin/archey3", line 818, in main
   config.read(options.config)
 File "/usr/bin/archey3", line 542, in read
   self.write_config(config_location)
 File "/usr/bin/archey3", line 566, in write_config
   with open(location, 'w') as configfile:
Permissionerror: [Errno 13] Permission denied: '/home/ichase/.config/archey3.cfg'

Edited by ichase
Link to comment
Share on other sites

Apparently the "ichase" permissions got borked up some how. So what I did was, created ichase01, gave all permissions that ichase had originally and deleted user ichase. Everything works like a champ now. :)

Probably not the "correct" or best way to had done this but it worked.

 

Please add {SOLVED} to thread title.

 

Thanks,

 

Ian

  • Like 1
Link to comment
Share on other sites

Sorry I was at work and could not reply at the time.

Don't appologize because you had to work or anything else that comes up. I always appreciate when you are on and give me good advice. Normally when I post an issue, I continue to try and figure it out on my own. Sometimes I am successful (like this time) and sometimes I am NOT so successful LOL

 

Thanks for the replies as always Josh, you continue to be a great educator not to mention your help over the last year and a half has brought me continous enjoyment using Arch Linux on all of my systems. :thumbsup:

  • Like 2
Link to comment
Share on other sites

Guest LilBambi

You could have tried

chown -R ichase:ichase /home/ichase

 

It would also be good to find out how they got borked in the first place. :hmm:

That is what I was gonna post too! Sometimes we forget who we are when we move things into our user accounts here too and have to do that to fix the perms.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...