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

Re: Why are passwords in /etc?



In article <[🔎] pan.2003.07.06.01.08.58.364610@gammaray.dyndns.org>,
Sebastian Kapfer  <sebastian_kapfer@web.de> wrote:
>On Sun, 06 Jul 2003 02:40:06 +0200, Karsten M. Self wrote:
>
>> Creating this as a symlink is possible, though it breaks in edge cases.
>> Most notably, loopback mounts aren't properly freed.
>
>Hmm. The "user" mount option doesn't seem to work with /proc/mounts
>either. Looks like /etc/mtab really belongs in /var.

Has been discussed to death in debian-devel. You can't put it in /var
if that is a seperate partition (chicken-egg problem). The right
solution is a /run filesystem (probably in memory, tmpfs/shmfs).

The latest sysvinit makes sure to follow symlinks when erasing
/etc/mtab or cleaning up /etc/mtab~ so you can just link /etc/mtab
to /run/mtab and it'll work.

Mike.



Reply to: