Page 1 of 1

[SOLVED] Installed TrueCrypt but unable to write into

PostPosted: Aug 26th, '12, 10:23
by michel
Greetings,

I managed to install TrueCrypt with various sudoers edits and now the program is installed and will open the encrypted folder but I canot copy TO the folder.

Any ideas why not?

Re: Installed TrueCrypt but unable to write into directory

PostPosted: Aug 26th, '12, 11:00
by doktor5000
If you don't provide any more information noone can tell ;)

Please at least show the output of
Code: Select all
mount
and
Code: Select all
ls -la /path/to/truecrypt/mountpoint

Re: Installed TrueCrypt but unable to write into directory

PostPosted: Aug 26th, '12, 11:10
by michel
Code: Select all
[michel@localhost ~]$ mount
/dev/sda1 on / type ext4 (rw,relatime,user_xattr,commit=600,barrier=1,data=ordered)
/dev/sda6 on /home type ext4 (rw,relatime,user_xattr,commit=600,barrier=1,data=ordered)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sdb1 on /run/media/michel/624281e9-ba51-4c0e-9437-50bf54d2cf14 type ext3 (rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered)
truecrypt on /tmp/.truecrypt_aux_mnt1 type fuse.truecrypt (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)


Code: Select all
[michel@localhost ~]$ ls -la /path/to/truecrypt/mountpoint
ls: cannot access /path/to/truecrypt/mountpoint: No such file or directory


Michel

Re: Installed TrueCrypt but unable to write into directory

PostPosted: Aug 26th, '12, 11:18
by michel
I think it is a permission issue but I do not know how to change permissions in mageia.

Michel

Re: Installed TrueCrypt but unable to write into directory

PostPosted: Aug 26th, '12, 12:36
by michel
The KDM add on alows me to run root commands and I managed to change permissions but I still cannot wrinte into the truecrypt folder.

Michel

Re: Installed TrueCrypt but unable to write into directory

PostPosted: Aug 26th, '12, 14:03
by michel
OK did it!

I changed the permissions of the external hard drive where my truecrypt folder is located but that did not resolve the issue. I then noticed that when I mount my truecrypt folder, an entry "truecrypt1" is created in the /media directory. I changed the ownership and permission and now I can write to my truecrypt folder.

Michel

Re: Installed TrueCrypt but unable to write into directory

PostPosted: Aug 26th, '12, 18:20
by doktor5000
michel wrote:[michel@localhost ~]$ ls -la /path/to/truecrypt/mountpoint
ls: cannot access /path/to/truecrypt/mountpoint: No such file or directory


/path/to/truecrypt/mountpoint is only a placeholder, you need to adapt this to your system. How should we know where you mount that thing?
I've not used truecrypt since ages, so from your output i don't really know where the unencrypted content is now mounted.

Please post the output of
Code: Select all
ls -al /tmp/.truecrypt_aux_mnt1
and
Code: Select all
ls -al /run/media/michel/624281e9-ba51-4c0e-9437-50bf54d2cf14

FWIW, the permissions you changed will probably only be effective until you reboot, you need to change the mounting itself.
For your current fstab entry for truecrypt, it shows in the options user_id=0,group_id=0 which makes the contents of that thing being owned by root (user id 0)

Re: [SOLVED] Installed TrueCrypt but unable to write into

PostPosted: Aug 26th, '12, 19:52
by michel
I rebooted many times and trucrypt1 entry is always in /media.


Code: Select all
[michel@localhost ~]$ ls -al /tmp/.truecrypt_aux_mnt1
total 4
dr-x------  2 michel root            0 Aug 26 08:59 ./
drwxrwxrwt 35 root   root         4096 Aug 26 08:59 ../
-rw-------  1 michel root         1736 Aug 26 08:59 control
-rw-------  1 michel root 107373920256 Aug 26 08:59 volume



Code: Select all
[michel@localhost ~]$ ls -al /run/media/michel/624281e9-ba51-4c0e-9437-50bf54d2cf14
ls: cannot access /run/media/michel/624281e9-ba51-4c0e-9437-50bf54d2cf14: No such file or directory


Michel

Re: [SOLVED] Installed TrueCrypt but unable to write into

PostPosted: Aug 26th, '12, 21:20
by doktor5000
Then please show the output of
Code: Select all
ls -al /media

And use code tags when posting output etc. :ftp://ftp.mandrivauser.de/rpm/rpm/extra/test/code_tags.ogv

Re: [SOLVED] Installed TrueCrypt but unable to write into

PostPosted: Aug 26th, '12, 21:30
by michel
This is what I get BEFORE launching truecrypt and AFTER I launch it


Code: Select all
[michel@localhost ~]$ ls -al /media
total 16
drwxr-xr-x  4 root   root   4096 Aug 26 10:21 ./
drwxr-xr-x 25 root   root   4096 Aug 26 09:55 ../
drwxrwxrwx  2 root   root   4096 Aug 25 03:31 624281e9-ba51-4c0e-9437-50bf54d2cf14/
drwxr-xr-x 46 michel michel 4096 Aug 26 03:15 624281e9-ba51-4c0e-9437-50bf54d2cf14_/

Code: Select all
[michel@localhost ~]$ ls -al /media
total 20
drwxr-xr-x  5 root   root   4096 Aug 26 10:36 ./
drwxr-xr-x 25 root   root   4096 Aug 26 09:55 ../
drwxrwxrwx  2 root   root   4096 Aug 25 03:31 624281e9-ba51-4c0e-9437-50bf54d2cf14/
drwxr-xr-x 46 michel michel 4096 Aug 26 03:15 624281e9-ba51-4c0e-9437-50bf54d2cf14_/
drwxr-xr-x  7 michel root   4096 Aug 26 08:57 truecrypt1/



Michel

Re: [SOLVED] Installed TrueCrypt but unable to write into

PostPosted: Aug 26th, '12, 21:58
by doktor5000
doktor5000 wrote:And use code tags when posting output etc.: ftp://ftp.mandrivauser.de/rpm/rpm/extra/test/code_tags.ogv


I've fixed it in your previous post (again), please use them next time.

Now when you have launched truecrypt, please post the output of
Code: Select all
ls -al /media/truecrypt*

But altogether this sounds like something which should be changed by some setting in truecrypt itself, and not to be manually adjusted afterwards.

Re: [SOLVED] Installed TrueCrypt but unable to write into

PostPosted: Aug 26th, '12, 22:07
by michel
The command lists the content of my folder.

Michel

Re: [SOLVED] Installed TrueCrypt but unable to write into

PostPosted: Aug 26th, '12, 23:23
by doktor5000
So post the output here, at least for the .. and . "directory" entries, so we can see the current permissions.
As an example, here's mine for an external drive:

[doktor5000@Mageia2 ~]$ ls -al /media/EXTERN3
total 80
drwx------ 1 doktor5000 doktor5000 4096 Aug 26 18:58 ./
drwxr-xr-x 8 root root 4096 Aug 26 22:00 ../


This shows that the top directory of that NTFS partition is owned by my user and group.

Re: [SOLVED] Installed TrueCrypt but unable to write into

PostPosted: Aug 27th, '12, 11:54
by michel
Code: Select all
drwxr-xr-x 7 michel root  4096 Aug 26 11:13 ./
drwxr-xr-x 4 root   root  4096 Aug 27 01:00 ../