Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emacs: TRAMP /su:: doesn't ask root password [fixed]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3864

PostPosted: Sat Jun 15, 2024 1:45 pm    Post subject: emacs: TRAMP /su:: doesn't ask root password [fixed] Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3864

PostPosted: Sat Jun 15, 2024 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1250
Location: Richmond Hill, Canada

PostPosted: Sat Jun 15, 2024 3:15 pm    Post subject: Reply with quote

See if you have ~/.authinfo* file. if you do may be the answer is in there.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3864

PostPosted: Sat Jun 15, 2024 3:23 pm    Post subject: Reply with quote

@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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3864

PostPosted: Sat Jun 15, 2024 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3864

PostPosted: Sat Jun 15, 2024 6:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum