[Konsole-devel] [Bug 149897] New: non-root removes root file
Junior
scoob.junior at gmail.com
Sat Sep 15 17:48:28 UTC 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=149897
Summary: non-root removes root file
Product: konsole
Version: unspecified
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: konsole-devel kde org
ReportedBy: scoob.junior gmail com
Version: 1.6.6 (using KDE KDE 3.5.7)
Installed from: Debian testing/unstable Packages
OS: Linux
(forgive me, my English isn't very good, but I'll try to do it :>) )
Hello, friends!!!
I think it is weird, but I'll describes the situation:
1 - Open Konsole
2 - su
3 - execute a shell script that converts mp3 files to ogg files
4 - open new guide in the same window of Konsole
5 - su -
6 - create a root's simple text file
7 - logout
8 - using non-root user, type "rm root's_file.txt"
9 - do you want to remove this write-protected file? y
10 - the file was removed...
But when my script finishes, "rm" command fails to remove the file...(permission denied, of course!)
look at follow command lines bellow:
simba mufasa:/dados/musicas/Embrace$ cd ..
simba mufasa:/dados/musicas$ ls -la *.txt
-rw-r--r-- 1 root root 22765 2007-09-15 12:50 arquivosapagarordem.txt
simba mufasa:/dados/musicas$ rm arquivosapagarordem.txt
rm: remove write-protected arquivo comum `arquivosapagarordem.txt'? y
simba mufasa:/dados/musicas$ ls -la *.txt
ls: *.txt: Arquivo ou diretório não encontrado
simba mufasa:/dados/musicas$ su
Password:
mufasa:/dados/musicas# touch teste.txt
mufasa:/dados/musicas# ls -la | grep teste.txt
-rw-r--r-- 1 root root 0 2007-09-15 13:54 teste.txt
mufasa:/dados/musicas# exit
simba mufasa:/dados/musicas$ rm teste.txt
rm: remove write-protected arquivo comum vazio `teste.txt'? n
simba mufasa:/dados/musicas$ cd\
> cd
bash: cdcd: command not found
simba mufasa:/dados/musicas$ su -
Password:
mufasa:~# echo "teste" > teste.txt
mufasa:~# ls -la | grep teste
-rw-r--r-- 1 root root 6 2007-09-15 14:12 teste.txt
mufasa:~# logout
simba mufasa:/dados/musicas$ cd /root
simba mufasa:/root$ ls -la | grep teste
-rw-r--r-- 1 root root 6 2007-09-15 14:12 teste.txt
simba mufasa:/root$ rm teste.txt
rm: remove write-protected arquivo comum `teste.txt'? y
rm: imposível remover `teste.txt': Permissão negada
dictionary:
arquivo comum vazio = an empty common file
Arquivo ou diretório não encontrado = no such file or directory
rm: imposível remover `teste.txt': Permissão negada = can't remove the file, permission denied
Hugs for you!!
Thanks a lot!!!
More information about the konsole-devel
mailing list