Re: Mount changing mount point rights?
Ceri Davies wrote: On 9 Feb 2006, at 12:52, Norberto Meijome wrote: 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 614400 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 wheel0, 121 Feb 9 22:24 /dev/md13 crw-r- 1 root wheel0, 122 Feb 9 23:23 /dev/md13.eli crw-rw 1 root wheel0, 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 614400 Feb 9 23:50 geli.dsk umask : $ umask 0022 [EMAIL PROTECTED] [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? The owner of the root folder on the filesystem on md13.eli is root. Just chown/chmod it once it's mounted and it'll stick. thanks for the pointer. After mounting it, I did sudo chown betom: mnt_fld cd mnt_fld ls -la drwx-- 16 betom wheel512 Feb 11 12:07 . drwxr-x--- 50 betom betom 3072 Feb 11 11:47 .. [...] which looks ok to me.. but as soon as I unmount and mount again, it reverts to root:wheel it isn't the end of the world as I will be wrapping the mounting process with a script, but I just wonder what is the story B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mount changing mount point rights?
On 11 Feb 2006, at 08:44, Norberto Meijome wrote: thanks for the pointer. After mounting it, I did sudo chown betom: mnt_fld cd mnt_fld ls -la drwx-- 16 betom wheel512 Feb 11 12:07 . drwxr-x--- 50 betom betom 3072 Feb 11 11:47 .. [...] which looks ok to me.. but as soon as I unmount and mount again, it reverts to root:wheel That's very, very strange, and shouldn't be possible. What are you doing differently to me: # uname -v FreeBSD 6.1-PRERELEASE #19: Sun Feb 5 04:58:29 GMT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SHRIKE # dd if=/dev/zero of=/a/md bs=1000 count=6144000 # mdconfig -a -f /a/md md2 # geli init /dev/md2 # geli attach /dev/md2 # newfs -U /dev/md2.eli # mount /dev/md2.eli /mnt # ls -ld /mnt drwxr-xr-x 3 root wheel 512 Feb 11 15:15 /mnt # chown ceri:users /mnt # ls -ld /mnt drwxr-xr-x 3 ceri users 512 Feb 11 15:15 /mnt # umount /mnt # mount /dev/md2.eli /mnt # ls -ld /mnt drwxr-xr-x 3 ceri users 512 Feb 11 15:15 /mnt Ceri -- That must be wonderful! I don't understand it at all. -- Moliere PGP.sig Description: This is a digitally signed message part
Re: Mount changing mount point rights?
On 9 Feb 2006, at 12:52, Norberto Meijome wrote: 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 614400 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 wheel0, 121 Feb 9 22:24 /dev/md13 crw-r- 1 root wheel0, 122 Feb 9 23:23 /dev/md13.eli crw-rw 1 root wheel0, 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 614400 Feb 9 23:50 geli.dsk umask : $ umask 0022 [EMAIL PROTECTED] [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? The owner of the root folder on the filesystem on md13.eli is root. Just chown/chmod it once it's mounted and it'll stick. Ceri -- That must be wonderful! I don't understand it at all. -- Moliere PGP.sig Description: This is a digitally signed message part
Mount changing mount point rights?
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 614400 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 wheel0, 121 Feb 9 22:24 /dev/md13 crw-r- 1 root wheel0, 122 Feb 9 23:23 /dev/md13.eli crw-rw 1 root wheel0, 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 614400 Feb 9 23:50 geli.dsk umask : $ umask 0022 [EMAIL PROTECTED] [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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]