Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
truecrypt, fat32 and using as user [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dr_Fell
Apprentice
Apprentice


Joined: 10 Nov 2004
Posts: 170
Location: Sosnowiec, Poland

PostPosted: Tue Jan 01, 2008 3:26 pm    Post subject: truecrypt, fat32 and using as user [SOLVED] Reply with quote

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
View user's profile Send private message
Kompi
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 252
Location: Germany

PostPosted: Tue Jan 01, 2008 5:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
dr_Fell
Apprentice
Apprentice


Joined: 10 Nov 2004
Posts: 170
Location: Sosnowiec, Poland

PostPosted: Wed Jan 02, 2008 1:17 am    Post subject: Reply with quote

Thank You, it was very helpful - i used truecrypt -M to pass options to mount command and it works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum