ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Novikov <shader@yandex.ru>
To: mezin@ntmdt.ru, ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] mc + samba?
Date: Mon, 9 Jul 2007 16:07:06 +0400
Message-ID: <20070709120706.GA14195@localhost.localdomain> (raw)
In-Reply-To: <46921FBA.8060202@ntmdt.ru>

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

On Mon, Jul 09, 2007 at 03:44:58PM +0400, Alexei V. Mezin wrote:
> 
> Нда, тут один пользователь озадачил вопросом: как по локалке (samba) 
> лазить с помощью mc?
> 
> Ну понятно, что можно зайти на шару конкверором или еще каким 
> ЛинНейборхудом, и примонтировать шару. А есть какой современный способ, 
> чтоб без явного монтирования? fuse + cifsfs какой-нить. Есть работающий 
> вариант?
> 

autofs не устроит?
пример в аттаче

-- 
WBR, Alexey Novikov
JIT: alex-novikov@jabber.ru

[-- Attachment #2: auto.smb --]
[-- Type: text/plain, Size: 650 bytes --]

#!/bin/sh

# $Id: auto.smb,v 1.3 2005/04/05 13:02:09 raven Exp $

# This file must be executable to work! chmod 755!

key="$1"
opts="-fstype=smbfs,credentials=/etc/netrc,iocharset=utf8,codepage=cp866,dmask=777,fmask=666,lfs,uid=novikov"

for P in /bin /sbin /usr/bin /usr/sbin
do
	if [ -x $P/smbclient ]
	then
		SMBCLIENT=$P/smbclient
		break
	fi
done

[ -x $SMBCLIENT ] || exit 1

LC_ALL=en_US.UTF-8 $SMBCLIENT -gNL $key -A /etc/netrc 2>/dev/null | \
    grep ^Disk | \
    cut -d'|' -f2 | \
    grep -v \$$ |\
    tr '[:upper:]' '[:lower:]' | \
    (echo -n "$opts"; while read share; do echo -n -e " \0134\n/$share ://$key/$share"; done; echo "")

  parent reply	other threads:[~2007-07-09 12:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-09 11:44 Alexei V. Mezin
2007-07-09 12:01 ` Алексей Синицын
2007-07-09 12:05 ` Motsyo Gennadi aka Drool
2007-07-09 12:07 ` Alexey Novikov [this message]
2007-07-09 12:15 ` Roman Savochenko
2007-07-09 13:25   ` Alexei V. Mezin
2007-07-11 15:37     ` Olvin
2007-07-11 15:57       ` Roman Savochenko
2007-07-11 16:36         ` Olvin
2007-07-12  7:37           ` Roman Savochenko
2007-07-12 18:18   ` Васюк Максим
2007-07-12 18:41     ` Alexei V. Mezin
2007-07-13 15:56       ` Васюк Максим

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070709120706.GA14195@localhost.localdomain \
    --to=shader@yandex.ru \
    --cc=community@lists.altlinux.org \
    --cc=mezin@ntmdt.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git