Tagged Questions
3
votes
1answer
65 views
Redirecting output in the shell, permissions
I have a question about permissions.
Distro: Debian GNU/Linux 6.0.4 (squeeze)
So I have a folder with a php script in it. Both folder and file are owned by User1
If I do this:
php script.php
I ...
1
vote
2answers
86 views
run a command as different user with available sudo permissions
I want to run the below command
echo 1000 > /sys/class/backlight/intel_backlight/brightness
i cannot do it it like below beecause bash is the process that actually directs output to the ...
0
votes
0answers
43 views
Root user can't do everything? [duplicate]
Possible Duplicate:
Redirecting stdout to a file you don’t have write permission on
I'm quite new to Linux and I have a permissions questions. I'm using Linux Mint.
If I go to /opt and do ...
5
votes
2answers
2k views
tail program output to file in Linux
I know we can use below format to redirect the screen output to a file:
$ your_program > /tmp/output.txt
However when I used below command, it says "-bash: /home/user/errors.txt: Permission ...
1
vote
3answers
1k views
permission denied when redirecting sudo sed output [duplicate]
Possible Duplicate:
Redirecting stdout to a file you don't have write permission on
I'm trying to install drupal according to the instructions given in this tutorial:
...
3
votes
1answer
2k views
Why can't sudo redirect stdout to /etc/file, but sudo 'nano' or 'cp' can?
Why does redirection, using sudo give me an error for the following commands?
$ sudo printf "foo" >/etc/file
bash: /etc/file: Permission denied
$ sudo printf "foo" ~/file; cat ~file ...
1
vote
2answers
1k views
How to insert text into a root-owned file using sudo? [duplicate]
Possible Duplicate:
Redirecting stdout to a file you don't have write permission on
Running a command like sudo echo 'text' >> /file.txt fails with:
bash: /file.txt: Permission ...
23
votes
4answers
2k views
Redirecting stdout to a file you don't have write permission on
When you attempt to modify a file without having write permissions on it, you get an error:
> touch /tmp/foo && sudo chown root /tmp/foo
> echo test > /tmp/foo
zsh: permission ...