View previous topic :: View next topic |
Author |
Message |
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3851
|
Posted: Sat Jun 15, 2024 1:45 pm Post subject: emacs: TRAMP /su:: doesn't ask root password [fixed] |
|
|
As user:
Code: | emacs /etc/portage/make.conf
C-x C-v (find alternate file)
adding /su:: at the beginning of the absolute path
RET | File is now modifiable and can be saved.
No root password requested!!!
What am I missing?
Maybe some forgotten emacs setting in init.el?
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Last edited by CaptainBlood on Sat Jun 15, 2024 4:01 pm; edited 1 time in total |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3851
|
Posted: Sat Jun 15, 2024 2:36 pm Post subject: |
|
|
Adding su:localhost: instead asks for password.
Still, how to force /su:: to ask for password?
EDIT: this is worrying still, as it shouldn't be possible, imho?
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1240 Location: Richmond Hill, Canada
|
Posted: Sat Jun 15, 2024 3:15 pm Post subject: |
|
|
See if you have ~/.authinfo* file. if you do may be the answer is in there. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3851
|
Posted: Sat Jun 15, 2024 3:23 pm Post subject: |
|
|
@pingtoo
My googling just hit that too:
Code: | cat ./.authinfo
machine amd64 login root port su password mypassword |
init.el needs to be changed accordingly.
Thanks 4 ut attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3851
|
Posted: Sat Jun 15, 2024 4:00 pm Post subject: |
|
|
CaptainBlood wrote: |
init.el needs to be changed accordingly. |
Code: | (connection-local-set-profile-variables 'remote-without-auth-sources '((auth-sources . nil)))
(connection-local-set-profiles '(:application tramp) 'remote-without-auth-sources) |
I wish it would rather work the other way round, asking to explicity save password for reuse.
Thanks 4 ut attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3851
|
Posted: Sat Jun 15, 2024 6:02 pm Post subject: |
|
|
Plz note that ~/.authinfo contains CLEAR text passwords
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
|