smbmount is unfriendly to RO root fs

From: VDA (VDA@port.imtp.ilyichevsk.odessa.ua)
Date: Fri Sep 21 2001 - 08:06:49 EST


Hello Samba folks,

I keep my root fs RO.
My /etc/mtab is symlinked to /proc/mounts.

When i try
# mount -t smbfs //host/share /mnt
mount fails trying to modify /etc/mtab.

# mount -n -t smbfs //host/share /mnt
fails too ( -n is unsupported for smbmount)

Moreover, since I use automount, even fixing smbmount
to support -n would not work: automount will not
pass -n to smbmount.

The most sensible way to make smbmount work is to
print some diagnostic ("can't update /etc/mtab")
and continue.

And yes, I verified that with RW root fs it works.
Given amount of troubles I have with RO root,
I think not many people actually trying this
(which is excellent security measure),
and lots of tools break (ldconfig, /dev/log etc etc etc).

-- 
Best regards, VDA
mailto:VDA@port.imtp.ilyichevsk.odessa.ua

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Sep 23 2001 - 21:00:43 EST