Announcement

Collapse
No announcement yet.

sudo mc and then save config does not save anything, it seems

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    sudo mc and then save config does not save anything, it seems

    doing a "sudo mc" to start Midnight Commander in "root" mode.
    Changing the sort order for example in mc and trying to save it with "Options->Save setup" it says "setup saved to ~/.mc/ini"
    but then exiting and coming back again with "sudo mc" does not have anything set up before.

    /root/.mc/ini does not exist either

    Not sure if this is supposed to be like this, or what is the work around.


    #2
    Re: sudo mc and then save config does not save anything, it seems

    Originally posted by ab
    doing a "sudo mc" to start Midnight Commander in "root" mode.
    NO, NO, NO! This is a sure way to set yourself up for a borked system.

    To run mc as root, you need to first become root.
    Code:
    sudo su -
    You'll know you are root because your prompt will change from the $ to a # symbol. Now you can start mc:
    Code:
    mc
    What is the difference you ask? As stated above, running sudo application from the CLI means that you are still within your users environment, and more specifically, within your users /home directory. That is a BAD thing. Becoming root first, means that you are using roots environment and in roots /home directory.

    Do yourself a BIG favor and read about RootSudo
    Windows no longer obstruct my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: sudo mc and then save config does not save anything, it seems

      roger, roger

      However, still after doing the above mc does not save the setup changes anywhere

      Comment

      Users Viewing This Topic

      Collapse

      There are 0 users viewing this topic.

      Working...
      X