after umounting files can be deleted

Asked by Amit

HI all i am new to this ecryptfs
I want to do encrypt my one folder
i completed mount procedure as given below

sudo mount -t ecryptfs /home/user1/test_ecrpt/1/ /home/user1/test_ecrpt/1 -o ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_enable_filename_crypto=n,ecryptfs_passthrough=n,key=passphrase:passwd=test

and umount as
sudo umount /home/user1/test_ecrpt/1/

after umount i m not able to read files which in " /home/user1/test_ecrpt/1/ " folder but i am able to delete these files .

but after encryption i must not able to delete these files .

Please tell me what am i doing wrong .

Thanks
Amit garg

Question information

Language:
English Edit question
Status:
Solved
For:
eCryptfs Edit question
Assignee:
No assignee Edit question
Solved by:
Serge Hallyn
Solved:
Last query:
Last reply:
Revision history for this message
Algimantas Margevičius (gymka) said :
#1

i don't use eCryptfs and never tried it, but everything here is logical:
there is file "/home/user1/test_ecrpt/1/" if it's unmounted nobody uses it, so you can delete it, everything is right. of course you can't read it, because it is encrypted. as i understand this app is created for that reason:) (so that only user with pass could read data)
if file is encrypted so eCryptfs uses it, you can't delete any file which is in use, everything is right.

Revision history for this message
Amit (g2291632-amit) said :
#2

according to encryption i should not delete or modify read files.

but here in my case i m able delete all files.

Please tell what i am doing wrong

Revision history for this message
Algimantas Margevičius (gymka) said :
#3

and on mounting/unmounting you don't see any errors in terminal?

Revision history for this message
Best Serge Hallyn (serge-hallyn) said :
#4

Quoting Amit (<email address hidden>):
> Question #181249 on eCryptfs changed:
> https://answers.launchpad.net/ecryptfs/+question/181249
>
> Status: Answered => Open
>
> Amit is still having a problem:
> according to encryption i should not delete or modify read files.

That is false.

> but here in my case i m able delete all files.
>
> Please tell what i am doing wrong

You are doing nothing wrong, but your understanding of encryption is
wrong. If you hand you a piece of paper with an encrypted message,
you can still throw away or write over the encrypted message.

Revision history for this message
Amit (g2291632-amit) said :
#5

Thanks Serge Hallyn, that solved my question.