#601469 sudo not working with ircp

Package:
sudo
Source:
sudo
Description:
Provide limited super user privileges to specific users
Submitter:
Yellowprotoss
Date:
2022-07-05 13:30:05 UTC
Severity:
minor
#601469#5
Date:
2010-10-26 15:00:20 UTC
From:
To:
Dear Sir,

I added:

username ALL=(ALL) NOPASSWD: /usr/bin/ircp
username ALL=(ALL) NOPASSWD: /usr/bin/irpsion5

by using visudo

however I issue this error msg:

$ sudo ircp "/tmp/tm.txt"
Connecting...failed


during sending a regular file (readable)

best regards
Y.
Hqppy Tux

#601469#10
Date:
2010-10-26 16:05:27 UTC
From:
To:
I don't know anything about ircp, so this doesn't tell me anything about
what you expected to happen that didn't happen.  It looks like sudo is
invoking ircp, so it's likely that something about the environment that
sudo creates for the program you're running violates some expectation of
the program.

Bdale

#601469#15
Date:
2010-10-26 16:05:27 UTC
From:
To:
I don't know anything about ircp, so this doesn't tell me anything about
what you expected to happen that didn't happen.  It looks like sudo is
invoking ircp, so it's likely that something about the environment that
sudo creates for the program you're running violates some expectation of
the program.

Bdale

#601469#20
Date:
2010-10-27 07:28:40 UTC
From:
To:
Hi Bdale,

I confirm that it is rather strange. However ran from root it works
flawlessly.
I tried with ' but this is not accepted by sudo, i.e.  sudo 'ircp
filetosend.txt' . it doesnt like it.

What is interesting is that :
sudo ircp -r
lets the linux box receive file from any user from teh irda dongle.

I is disappointing that it does work; I tried many thigns but efforts were
though vains :(

All the  best / Kind regards
Y.

#601469#25
Date:
2010-10-27 07:28:40 UTC
From:
To:
Hi Bdale,

I confirm that it is rather strange. However ran from root it works
flawlessly.
I tried with ' but this is not accepted by sudo, i.e.  sudo 'ircp
filetosend.txt' . it doesnt like it.

What is interesting is that :
sudo ircp -r
lets the linux box receive file from any user from teh irda dongle.

I is disappointing that it does work; I tried many thigns but efforts were
though vains :(

All the  best / Kind regards
Y.

#601469#30
Date:
2021-12-11 21:15:37 UTC
From:
To:
Hi,

Is this still reproducible?

I would like to close this bug by the end of march 2022 if it cannot be
reproduced any more. I understand this issue is more than a decade old.

Greetings
Marc

#601469#33
Date:
2021-12-11 21:15:37 UTC
From:
To:
Hi,

Is this still reproducible?

I would like to close this bug by the end of march 2022 if it cannot be
reproduced any more. I understand this issue is more than a decade old.

Greetings
Marc

#601469#38
Date:
2022-02-02 11:55:21 UTC
From:
To:
Control: outlook -1 close by 2022-03-31
#601469#43
Date:
2022-02-02 11:55:21 UTC
From:
To:
Control: outlook -1 close by 2022-03-31