You are not logged in.

#1 2019-08-16 08:28:16

cr7wonnabe
Member
Registered: 2019-07-25
Posts: 8

[solved] Custom XferCommand command for only one repo?

Hi folks,

it's possible to have atom cus XferCommand for only one repo?

The case: i have a private repo on ftp server, or http server with basic auth, it's possible to give a #XferCommand  only for this repo?

I tried to add in repo proprieties but it's not recognized.

Thanks

Last edited by cr7wonnabe (2019-08-23 10:47:39)

Offline

#2 2019-08-16 14:36:58

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,446

Re: [solved] Custom XferCommand command for only one repo?

What are you trying to achieve with your custom XferCommand?

If it's just authentication then you can use an entry in /root/.netrc or /root/.curlrc instead...
https://ec.haxx.se/cmdline-passwords.html


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2019-08-23 10:47:16

cr7wonnabe
Member
Registered: 2019-07-25
Posts: 8

Re: [solved] Custom XferCommand command for only one repo?

Slithery wrote:

What are you trying to achieve with your custom XferCommand?

If it's just authentication then you can use an entry in /root/.netrc or /root/.curlrc instead...
https://ec.haxx.se/cmdline-passwords.html

Thanks, this is what I looking for!

Offline

#4 2019-08-23 10:55:03

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 530
Website

Re: [solved] Custom XferCommand command for only one repo?

Even easier: You can just put the credentials into the server URL:

http://user:password@hostname.com/repo

Offline

#5 2019-08-23 13:57:51

Awebb
Member
Registered: 2010-05-06
Posts: 5,316

Re: [solved] Custom XferCommand command for only one repo?

schard wrote:

Even easier: You can just put the credentials into the server URL:

http://user:password@hostname.com/repo

/root has 700, while pacman.d has 755. Not a good place to store a password.

Offline

#6 2019-08-23 14:16:20

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 530
Website

Re: [solved] Custom XferCommand command for only one repo?

True. But then, storing a password in plain text is never a good idea.

Offline

Board footer

Powered by FluxBB