[bash] sudo: preserve non-std file descriptors
Long story short: why isn't this (simplified) sample working?
Code:
root:# sudo -C 3 -u regular-user cat /dev/fd/3 3< /var/log/syslog Code:
Defaults closefrom_override I am using bash 4.2.20 and Debian Wheezy Thank you so much for your help! |
AFAIK the special file name /dev/fd/3 can only be used in redirections. If that is correct it cannot be used as an argument to cat. Maybe cat </dev/fd/3 would work.
|
All times are GMT -5. The time now is 02:29 PM. |