Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Feb 2006 23:52:02 +1100
From:      Norberto Meijome <freebsd@meijome.net>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Mount changing mount point rights?
Message-ID:  <43EB3AF2.2060701@meijome.net>

next in thread | raw e-mail | index | archive | help
hi all,
I'm mounting a GELI encrypted, file backed vnode on ~/mount_folder. I am
member of wheel.

I start with
 Home directory:
drwxr-x---  51 betom      betom      3072 Feb  9 23:38 betom

file and folder which i want to mount in.

drwxrwx---   2 betom  betom         512 Feb  9 17:42 mount_folder
-rw-rw----   1 betom  betom  6144000000 Feb  9 23:38 geli.dsk

I then define the md device, attach it to geli (it was already init and
newfs -U run on it), fsck

sudo mdconfig -a -t vnode -f ./_1.dsk -u 13
sudo geli attach /dev/md13
fsck -p -t ufs /dev/md13.eli

the devices look like this :
$ ls -l /dev/md*
crw-r-----  1 root  wheel    0, 121 Feb  9 22:24 /dev/md13
crw-r-----  1 root  wheel    0, 122 Feb  9 23:23 /dev/md13.eli
crw-rw----  1 root  wheel    0,  87 Feb  9 22:24 /dev/mdctl

Then mount it:
sudo mount /dev/md13.eli /home/betom/mount_folder

PROBLEM : the mount folder has changed it's access from
770 betom:betom
to
750 root:wheel

drwxr-xr-x   3 root   wheel         512 Feb  9 18:51 mount_folder
-rw-rw----   1 betom  betom  6144000000 Feb  9 23:50 geli.dsk

umask :
$ umask
0022

[betom@ayiin] [Thu Feb  9 23:48:53 2006]
~
$ sudo umask
0022


WHY is it doing that?! Since I want to use this folder as my own user ,
not root, I have to do the extra step of changing owner of the folder
every time...quite annoying.
how can I fix this?


thanks!
Beto



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43EB3AF2.2060701>