tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh -c 'whoami' gives permission error in docker container and puts m


From: ParetoOptimalDev
Subject: Re: sh -c 'whoami' gives permission error in docker container and puts me in weird prompt/subshell
Date: Wed, 05 Apr 2023 17:19:47 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

Michael Albinus <michael.albinus@gmx.de> writes:

> Don't know what you are doing, but obviously not what your recipe
> says. We see

Okay.

NOTE my tramp directory git status is clean and is at:

1f8b1ea1 * origin/master * tramp-sh.el
(tramp-open-connection-setup-interactive-shell): Check for
`tramp-string-empty-or-nil-p'.

Executing:

emacs -Q  --eval "(add-to-list 'load-path (expand-file-name
\"~/emacs/tramp/lisp\"))" --eval "(setq tramp-verbose 7)" --eval "(let
((default-directory \"/docker:root@alpine3173:\")) (eshell))"

Results in ibuffer having:

. * *eshell*                                  55 Eshell           
/docker:root@alpine3173:~/
    *scratch*                                145 Lisp Interaction 
 %* *Messages*                               836 Messages         
  * *debug tramp/cache nil*                  148 Outline          
  * *debug tramp/docker root@alpine3173*  490401 Outline          
  * *tramp/docker root@alpine3173*           130 Fundamental      
 %* *Async-native-compile-log*               228 Fundamental

Then typing in chown results in the same error I've been getting:

/docker:root@alpine3173: # chown
sh: cd: /root/: Permission denied
///1ec7868e1f4b55b11fd62deb774f1d05#$

ibuffer looks the same with a lot more logs:

  * *eshell*                        132 Eshell           
/docker:root@alpine3173:~/
    *scratch*                       145 Lisp Interaction 
 %* *Messages*                      997 Messages         
  * *debug tramp/cache nil*         148 Outline          
  * *debug tramp/docker root@alpine3173*  826169 Outline          
  * *tramp/docker root@alpine3173*     148 Fundamental      
 %* *Async-native-compile-log*      228 Fundamental      

Here those logs are:

Attachment: txtB49SlcOWhw.txt
Description: logs

Hopefully this makes it clear I've followed my own steps.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]