Subject: Re: Lightweight samba GUI? (packages or otherwise)
To: Andrew Reilly <andrew-netbsd@areilly.bpc-users.org>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: netbsd-users
Date: 12/13/2006 11:24:46
Am 13.12.2006 um 17:27 Uhr +1100 schrieb Andrew Reilly:
>On Tue, 12 Dec 2006 16:29:39 -0800
>"Aaron J. Grier" <agrier@poofygoof.com> wrote:
>
>> is amd compiled for mount_smbfs support in NetBSD-4?
Doesn't look like it:
[hf@Gstoder] ~ > uname -a
NetBSD Gstoder.nt.e-technik.tu-darmstadt.de 4.0_BETA NetBSD 4.0_BETA
(SPG_PIII) #0: Wed Oct 11 20:35:50 CEST 2006
hf@Hochstuhl:/var/obj/netbsd-builds/4/i386/sys/arch/i386/compile/SPG_PIII
i386
[hf@Gstoder] ~ > amd -v
Copyright (c) 1997-2005 Erez Zadok
Copyright (c) 1990 Jan-Simon Pendry
Copyright (c) 1990 Imperial College of Science, Technology & Medicine
Copyright (c) 1990 The Regents of the University of California.
am-utils version 6.1.3 (build 1).
Report bugs to https://bugzilla.am-utils.org/ or am-utils@am-utils.org.
Configured by hf@Hochstuhl on date Wed Oct 11 18:55:23 CEST 2006.
Built by hf@Hochstuhl on date Wed Oct 11 18:55:30 CEST 2006.
cpu=i386 (little-endian), arch=i386, karch=i386.
full_os=netbsd4.0_BETA, os=netbsd4, osver=4.0_BETA, vendor=The NetBSD
Foundation, Inc., distro=none.
domain=nt.e-technik.tu-darmstadt.de, host=Gstoder,
hostd=Gstoder.nt.e-technik.tu-darmstadt.de.
Map support for: root, passwd, hesiod, union, nis, ndbm, file, exec, error.
AMFS: nfs, link, nfsx, nfsl, host, linkx, program, union, ffs, cdfs,
pcfs, auto, direct, toplvl, error, inherit.
FS: cd9660, mfs, nfs, nfs3, null, msdos, tmpfs, ffs, umap, union.
Network: wire="spg-clients" (netnumber=130.83.118.64).
[hf@Gstoder] ~ >
>I don't know about that, but I don't think that it's necessary.
>My (dim) memory was that it was possible to coerce/fool amd into
>running arbitrary mount programs in response to access attempts,
>and that's what I used to run mount_smbfs.
It's klunky, but it worked when we still had an smb server around:
mucke -type:=program;rhost:=venus;rfs:=/mp3;fs:=/.mp3 \
os==netbsd2;mount:="/sbin/mount mount -r -t smbfs
-o-N,-I${rhost} \\\\\\/\\\\\\/${rhost}/${rfs} ${fs}";\
unmount:="/sbin/umount umount ${fs}" \
os==netbsd3;mount:="/sbin/mount mount -r -t smbfs
-o-N,-I${rhost} \\\\\\/\\\\\\/${rhost}/${rfs} ${fs}";\
unmount:="/sbin/umount umount ${fs}"
-- The multiple backslashes for escaping slashes are needed because
amd "normalizes" paths, and both yp and amd strip backslashes in the
process. You can switch that off in amd.conf now by setting
"normalize_slashes=off". For debugging, it's best to use a wrapper
shell script in place of the {u,}mount commands.
> No doubt there's a
>neater way to do it, if the support is built-in.
Last I looked (and asked on the amd mailing-list) there wasn't, since
amd is nfs, only.
hauke
--
The ASCII Ribbon Campaign Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
Respect for open standards Ruf +49-6151-16-3281