sudo piping
Bug #1024536 reported by
Ohadcn
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
i don't know if it is a bug or the OS should behave like that, but i would prefer it other way.
when i run a command as sudo and pipe it to another command or to a file, the command piped as normal user, when i typed
ohad@comp1:~$ sudo echo 10 > /proc/sys/
bash: /proc/sys/
ohad@comp1:~$ sudo echo firefox | apt-get install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
ohad@comp1:~$
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.