[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Re: debian and ubuntu - answer from user not pretending to be guru



In <20090506023930.GB12613@samad.com.au>, Alex Samad wrote:
>how can you create files in $HOME that the owner of $HOME can't delete
>?

bss@monster:~$ sudo mkdir data
[sudo] password for bss:
bss@monster:~$ sudo touch data/file
bss@monster:~$ rm -rf data
rm: cannot remove `data/file': Permission denied
bss@monster:~$ ls -ld data
drwxr-xr-x 2 root root 72 2009-05-05 23:07 data
bss@monster:~$ rmdir data
rmdir: failed to remove `data': Directory not empty
-- 
Boyd Stephen Smith Jr.                   ,= ,-_-. =.
bss@iguanasuicide.net                   ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
http://iguanasuicide.net/                    \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: