[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: relative path in fstab



Daniel D Jones wrote:
Is it possible to put a path relative to the users home directory in fstab?

fstab doesn't seem to expand either ~ or $HOME.

Man and google have been no help.



That would not make sense in the context of an fstab.  $HOME belongs to
a particular user.  mount is always run as root:

-rwsr-xr-x  1 root root 76K Sep 24 00:34 /bin/mount

Thus, $HOME would always expand to /root.  Why not just specify the
absolute path?

-Roberto

--
Roberto C. Sanchez
http://familiasanchez.net/~sanchezr

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: