[kio] src/ioslaves/file/kauth: Do not cache root password for the whole session
Elvis Angelaccio
elvis.angelaccio at kde.org
Sun Jan 14 11:44:32 UTC 2018
On venerdì 12 gennaio 2018 17:35:30 CET, chinmoy ranjan wrote:
>>I just tested this in my session:
>>
>>kioclient5 copy <file> /mnt
>>
>>Prompt appears, all OK.
>>
>>Now I do this again in the same session, after removing the file:
>>
>>kioclient5 copy <file> /mnt
>>
>>No password prompt and the file is copied anyway.
>
> I executed the commands in the same order on a new VM and I am
> getting proper prompts (with persistence=session).
>
> There's one thing I don't understand, how did you execute two
> kioclient commands in one session? I mean, as soon as one
> kioclient5 command finishes the session ends and for the next
> command there will be a new session. Am I wrong? If not then
> there should be a password prompt (persistence value doesn't
> matter) shown right after every call to kioclient5.
> Since you didn't get a password prompt the second time, it
> seems to me its more likely a issue with your setup. Is there
> any way we can confirm if this depends on local setup or not?
> Meanwhile, can you try using kioslavetest. Maybe that will work
> properly.
I can confirm Chinmoy's behavior:
$ kioclient5 copy /home/elvis/test.tar.gz /mnt => KAuth prompt
$ sudo rm /mnt/test.tar.gz
$ kioclient5 copy /home/elvis/test.tar.gz /mnt => another KAuth prompt
This is on Archlinux, FWIW.
Cheers,
Elvis
More information about the Kde-frameworks-devel
mailing list