How to change permission of anonymous pipe?
So far I've found the following workaround using named FIFO:
$ mkfifo -m 600 fifo
$ cat ~/.ssh/id_rsa >fifo | ssh-add fifo
Identity added: fifo (fifo)
where the option -m
sets the FIFO permission.
So far I've found the following workaround using named FIFO:
$ mkfifo -m 600 fifo
$ cat ~/.ssh/id_rsa >fifo | ssh-add fifo
Identity added: fifo (fifo)
where the option -m
sets the FIFO permission.