Skip to main content

Thread: Modifing a root file


i'm trying install program in /etc , make mod conf file, can't, if use sudo.

example, if create directory , file: /etc/test/testfile using sudo, can read file, edit file , delete file, can't seem is:

> sudo echo 'this test' > testfile

result is:

bash: testfile: permission denied

here permissions:

drwxr-xr-x 2 root root 4096 2010-09-03 11:28 .
drwxr-xr-x 166 root root 12288 2010-09-03 10:43 ..
-rw-r--r-- 1 root root 20 2010-09-03 11:28 testfile



missing here? thought sudo can anything?

weird same happens me.

though:

code:
[smartviking@localhost test]$ sudo su [root@localhost test]# ls testfile [root@localhost test]# echo 'this test' > testfile  [root@localhost test]# exit


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] Modifing a root file


Ubuntu

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい