mount point permissions

Andrey Borzenkov arvidjaar at mail.ru
Sat Aug 26 03:43:47 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 26 August 2006 14:33, Alberto Ruiz wrote:
> 2006/8/25, Andrey Borzenkov <arvidjaar at mail.ru>:
[...]
> > > 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.
>

mount /dev/foo /mnt/foo
chmod o-rwx /mnt/foo

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE8CXmR6LMutpd94wRAkqvAKCVGNcu+PN8tGAk0gHF8/DWVB91KQCgjFNf
HX4u873tza0O9l8w7aB/vCw=
=dFen
-----END PGP SIGNATURE-----


More information about the hal mailing list