From owner-freebsd-questions@freebsd.org Tue Jun 2 12:32:14 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A42CB3357D9 for ; Tue, 2 Jun 2020 12:32:14 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49bryj5lLRz3TKW for ; Tue, 2 Jun 2020 12:32:13 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-wm1-x331.google.com with SMTP id v19so2763476wmj.0 for ; Tue, 02 Jun 2020 05:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=58p8wQqmNO6dpnMj3zSol2dZ8X72nAv9jWeUOiM5uRg=; b=iCLndRnc0/nCOQNr42uEVE0a+1kUvtxUmg+ka1A0U/0y3OL1tP5Blge34qQEUaXbkG 2IXkwW4iTdgyH9O4B+DA33/p8YnDu6g0RPF2UzIIzJ7BqdWNUmUCiHzcsaiGk4UPWv9w hEjGNXqLFztO4OPoVx+Ntedf3mm10VA/yl2Cnd7XTu2Z+w81b1/BB2SeWeIjoitCWmXy G26sdoKh6BITeTAzmv/CPpmmE86Zdt0t3JcmuVwen9Kga1FsTTJEjq/LovZ0fq2S0+p4 HJIuVu+DIYTJV9m8nD3vPK1zYpqLnzmqsg4MV9AIJpByNiRFu5k/xZJDHNJhDjqRDRXd eQkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=58p8wQqmNO6dpnMj3zSol2dZ8X72nAv9jWeUOiM5uRg=; b=ZqnRFFRsYehv+NRmtD1DFDiW3YacXC68Z5Ly50qfVgJ68Yx1IpWgnXcCaRL7751M9J jKExbbIx/Q896gP2ayCcWOGJAuFhUgcUppIlWss1pn9YPZkaO09ilELoxW66Kkx0OXyi lUHxxCnSPa77nHmNiDdDZkfnioEfK/aki5EUJq9h/EZ3JsARtyxGO8/oqMMQmgOhZZwM eazie2KqRC8EJQ9mioLK2cN6ScHG3bSLsTiykefAwB4SQ0D/I4waXySgB3iOL3rsTpCZ +Jj+gSvYFp796lDZb875BO4ReSGtziH756AW/r3AxFSIuUToumIJs1AbyyyCX0vLnHFK cukw== X-Gm-Message-State: AOAM531X66LGvHufMq+vnqxHHDuuJbfQBfY8R6h1WfGDuDAhjAK5gxTB s0qh3Nd41dfpVcivZmdjZCuyIOP3rfDN7xpfEdsObid/ X-Google-Smtp-Source: ABdhPJwmL0yKr7WquYR+xZg4GiE02bR8zpbajku1vDhKt0DfOMIuQ6vN6BpcrUOh6ysB9XdG3GVV/Gsh4++5aaVylzs= X-Received: by 2002:a1c:f301:: with SMTP id q1mr3960948wmq.110.1591101132244; Tue, 02 Jun 2020 05:32:12 -0700 (PDT) MIME-Version: 1.0 References: <20200602130816.fe01e502fff3dd3c51685a55@sohara.org> In-Reply-To: <20200602130816.fe01e502fff3dd3c51685a55@sohara.org> From: Tomasz CEDRO Date: Tue, 2 Jun 2020 14:31:34 +0200 Message-ID: Subject: Re: autofs auto(un)mountd umount problem To: "Steve O'Hara-Smith" Cc: FreeBSD Questions Mailing List Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49bryj5lLRz3TKW X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=iCLndRnc; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2a00:1450:4864:20::331) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-1.98 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.35)[0.348]; NEURAL_HAM_LONG(-1.04)[-1.035]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[cedro.info]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::331:from]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 12:32:14 -0000 On Tue, Jun 2, 2020 at 2:08 PM Steve O'Hara-Smith wrote: > On Tue, 2 Jun 2020 13:48:45 +0200 > Tomasz CEDRO wrote: > > 2. Why I cannot mount/umount as user even though vfs.usermount is set? > > The user needs to own the mountpoint, that may be your problem. Aaaarrghh :-) :-) Not the group but the _owner_only_. I thought that group also worked that way, me bad. I really got used to mount only in /mnt but well now I can also use my working directory for that :-) :-) Thank you Steve!! :-) Now I need to read about flags for automount so it does not change my mount point ownership and permissions so I can umount as user.. then tune its options so it umount the vanished device for me.. maybe I can even fix the device so it vanishes in a graceful way :-) This automount feature is really nice, saves some time on a workstation that swaps usb drives a lot.. I can now also use pendrive with dumps from an oscilloscope and stuff like that.. and always I can simply turn it off with only one or two rc.conf lines of text :-) I just love FreeBSD :-) Thank you! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info