mount point permissions

Alberto Ruiz aruiz at synaptia.net
Sat Aug 26 03:33:49 PDT 2006


2006/8/25, Andrey Borzenkov <arvidjaar at mail.ru>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Friday 25 August 2006 19:13, Alberto Ruiz wrote:
> > I've been looking at the hal spec, and I haven't been able to find any
> > option of the storage policy to set the permissions of the mount point.
> >
> > Use case:
> > I have a multiuser enviroment (thin clients), and I want the sysadmin
> (the
> > one who uses the terminal server as desktop workstation), be able to
> mount
> > the removable media through HAL, but, I don't want other users being
> able
> > to see the content of the filesystems that he mounts.
> >
> > This is easy for non-posix file systems, such as VFAT, since I can
> specify
> > a uid and gid for all the files, but, since I want this for backup
> > purposes, I need a posix file system. So, I would like to know if there
> is
> > a parametric way to set the default /media/_folder_ permissions for
> storage
> > media when it is created (other than hardcoding the hal storage mount
> > script).
> >
>
> if filesystem supports uid, permissions of mount point are irrelevant;
> permissions you will see after mount are those of filesystem.


Ext2, ext3, XFS, reiserfs and jfs doesn't support uid. I need to set uid and
permissions of the root directory.


-----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
>
> iD8DBQFE7xzHR6LMutpd94wRAuAaAKCSTjMInpHmD1h7zoVsTMQ9eYoDxgCgr0kS
> dpox2bEWZ+NHOTfxitEqKhs=
> =18Ts
> -----END PGP SIGNATURE-----
>



-- 
Un saludo,
Alberto Ruiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/hal/attachments/20060826/9aa840e1/attachment.html


More information about the hal mailing list