Running mc (midnight commander) under su on Mojave/Catalina • Error: common.c unimplemented subshell type 1 read (subshell_pty...): No such file or directory (2) Print

  • 3

After installing prebuild mc binary to Mojave (link and link 2), and trying to run mc under root with sudo command, I got error:

$sudo mc
common.c unimplemented subshell type 1
read (subshell_pty...): No such file or directory (2)

It appears that mc requires to match precompiled shell version, e.g. /bin/bash to be the one.

In order to resolve this, its is required to change default root shell from sh to bash, and do it with following command:

sudo dscl . -change /Users/root UserShell /bin/sh /bin/bash

To revert back in case you have some problems, just reverse the parameters:

sudo dscl . -change /Users/root UserShell /bin/bash /bin/sh

Just in case above commands do not work, may be default shell was already changed. Check it with command:

dscl . -read /Users/root UserShell

Hope it will save tons of time for you.


by Arunas Bartisius • Published: 2018-10-23 10:41:30

Source: https://tutel.me/c/apple/questions/340414/running+mc+midnight+commander+under+su+on+mojave


Was this answer helpful?

« Back

  • Epesi • Enterprise Nervous System
  • Located in Tri-State Greater Philadelphia
  • Servicing clients worldwide since 2006
  • 1260 E. Woodland Avenue, Unit 17a
    Springfield, PA 19064
    Pennsylvania, USA

Questions?

  • Call us now +1 (646) 547-1026
  • Open 24x7x365 including holidays
  • Email : support@epesicrm.com
Online Support