View previous topic :: View next topic |
Author |
Message |
dr_Fell Apprentice
Joined: 10 Nov 2004 Posts: 170 Location: Sosnowiec, Poland
|
Posted: Tue Jan 01, 2008 3:26 pm Post subject: truecrypt, fat32 and using as user [SOLVED] |
|
|
Hello.
I have a truecrypt volume (in a file) that is created under win98 with old version of tc. I can mount it as a root but I can't change permissions (boecouse fat32 doesn't have them ?). Is there a way to use files on this volume as an user ?
Code: |
localhost michal # chown -Rc michal /mnt/truecrypt/
chown: changing ownership of `/mnt/truecrypt/desktop.ini': Operation not permitted
chown: changing ownership of `/mnt/truecrypt/folder.htt': Operation not permitted
chown: changing ownership of `/mnt/truecrypt/Gimnazjum/desktop.ini': Operation not permitted
|
Code: |
localhost michal # ls -al /mnt/truecrypt/
total 51
drwxr-xr-x 6 root root 16384 1970-01-01 01:00 .
drwxr-xr-x 18 root root 488 2007-12-29 16:34 ..
-rwxr-xr-x 1 root root 266 2007-09-11 05:26 desktop.ini
-rwxr-xr-x 1 root root 23160 2007-10-16 02:18 folder.htt
drwxr-xr-x 5 root root 2048 2007-12-20 07:46 Gimnazjum
|
Last edited by dr_Fell on Wed Jan 02, 2008 1:19 am; edited 1 time in total |
|
Back to top |
|
|
Kompi Apprentice
Joined: 05 Oct 2002 Posts: 252 Location: Germany
|
Posted: Tue Jan 01, 2008 5:29 pm Post subject: |
|
|
FAT32 doesn't support permissions. You can set permissions for all files in the hole fs when mounting.
Quote: | # man mount
---snip---
Mount options for fat:
uid=value and gid=value
Set the owner and group of all files. (Default: the uid and gid
of the current process.)
umask=value
Set the umask (the bitmask of the permissions that are not
present). The default is the umask of the current process. The
value is given in octal.
dmask=value
Set the umask applied to directories only. The default is the
umask of the current process. The value is given in octal.
fmask=value
Set the umask applied to regular files only. The default is the
umask of the current process. The value is given in octal.
---snap----
|
So you could go with:
Code: | mount -o uid=123 .... |
if you are user #123.
or:
Code: | mount -o umask=000 ... |
if you want everybody to have access. Note that umask is the inversed permission flags. So if you want rwxrwxrwx (octal: 777) on all files, you give 000 als umask. |
|
Back to top |
|
|
dr_Fell Apprentice
Joined: 10 Nov 2004 Posts: 170 Location: Sosnowiec, Poland
|
Posted: Wed Jan 02, 2008 1:17 am Post subject: |
|
|
Thank You, it was very helpful - i used truecrypt -M to pass options to mount command and it works. |
|
Back to top |
|
|
|