From: ABATAPA <altlinux-community@yandex.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] доступ к win-ресурсу
Date: Wed, 27 Dec 2006 20:06:01 +0300
Message-ID: <200612272006.02076.altlinux-community@yandex.ru> (raw)
In-Reply-To: <20061227152825.306a6dcc@drool.brda.net>
27 декабря 2006 16:28, Motsyo Gennadi aka Drool написал:
> Отлично работает, а еще лучше - допичать эту конструкцию в /etc/fstab - и
> тогда будет полное счастье при загрузке
А еще лучше - установить autofs, в /etc/auto.master добавить:
/mnt/smb /etc/auto.smb
создать /mnt/smb, создать, если нет, /etc/auto.smb с таким содержимым:
____________________
#!/bin/bash
# $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"
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
$SMBCLIENT -gNL $key 2>/dev/null| awk -v key="$key" -v opts="$opts" -F'|' -- '
BEGIN { ORS=""; first=1 }
/Disk/ { if (first) { print opts; first=0 }; print " \\\n\t /"
$2, "://" key "/" $2 }
END { if (!first) print "\n"; else exit 1 }
____________________
После чего - перезапустить autofs.
Темерь, зайдя в /mnt/smb, можно подмонтировать ресурсы любой видимой
Windows-машины, просто выполнив 'cd имя_машины'.
--
ABATAPA
next prev parent reply other threads:[~2006-12-27 17:06 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-27 12:44 Vlad Gousev
2006-12-27 13:01 ` "Ядыкин А.В."
2006-12-27 13:28 ` Motsyo Gennadi aka Drool
2006-12-27 13:42 ` "Ядыкин А.В."
2006-12-27 13:56 ` Alexey Sidorov
2006-12-27 14:13 ` Шенцев Алексей Владимирович
2006-12-27 15:12 ` Eugene Ostapets
2006-12-27 15:18 ` Шенцев Алексей Владимирович
2006-12-27 14:59 ` Motsyo Gennadi aka Drool
2006-12-28 6:25 ` "Ядыкин А.В."
2006-12-28 5:50 ` Andrew G. Klepcha
2006-12-28 7:29 ` Dmitriy L. Kruglikov
2006-12-29 20:41 ` Vlad Gousev
2006-12-28 21:05 ` Eugene Ostapets
2006-12-29 6:25 ` Vlad Gousev
2006-12-29 7:05 ` Eugene Ostapets
2007-01-13 3:31 ` Michael Shigorin
2007-02-02 16:36 ` Vlad Gousev
2007-02-03 9:18 ` Sergey Vlasov
2007-02-03 17:39 ` Vlad Gousev
2006-12-29 6:44 ` Dmitriy L. Kruglikov
2006-12-29 7:06 ` Eugene Ostapets
2006-12-29 7:07 ` Dmitriy L. Kruglikov
2006-12-27 17:06 ` ABATAPA [this message]
2006-12-27 17:16 ` ABATAPA
2006-12-27 17:16 ` Andrey Rahmatullin
2006-12-27 18:25 ` ABATAPA
2006-12-27 19:16 ` Хихин Руслан
2006-12-27 19:23 ` Eugene Ostapets
2006-12-28 19:33 ` [Comm] [OBORONA-SPAM] " Vlad Gousev
2006-12-27 19:41 ` Motsyo Gennadi aka Drool
2006-12-28 19:59 ` [Comm] [OBORONA-SPAM] " Vlad Gousev
2006-12-27 20:12 ` Motsyo Gennadi aka Drool
2006-12-27 21:00 ` Michael Shigorin
2006-12-28 5:26 ` [Comm] " Alexey Novikov
2006-12-28 7:24 ` [Comm] " Dmitriy L. Kruglikov
2006-12-28 10:01 ` ABATAPA
2006-12-28 10:27 ` Dmitriy L. Kruglikov
2006-12-28 12:04 ` ABATAPA
2006-12-28 12:10 ` Dmitriy L. Kruglikov
2006-12-28 19:31 ` Vlad Gousev
2006-12-27 19:39 ` Eugene Ostapets
2006-12-28 19:57 ` Vlad Gousev
2006-12-27 20:12 ` Eugene Ostapets
2006-12-28 20:37 ` Vlad Gousev
2006-12-27 19:47 ` Motsyo Gennadi aka Drool
2006-12-28 20:01 ` [Comm] [OBORONA-SPAM] " Vlad Gousev
2006-12-27 20:11 ` Motsyo Gennadi aka Drool
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=200612272006.02076.altlinux-community@yandex.ru \
--to=altlinux-community@yandex.ru \
--cc=community@lists.altlinux.org \
/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