ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Как настроить автомонтирование ресурсов smb из под пользователя?
Date: Wed, 12 Jul 2006 18:07:01 +0300
Message-ID: <20060712150701.GI26570@osdn.org.ua> (raw)
In-Reply-To: <44AE43B9.9070808@elan.com.ua>

On Fri, Jul 07, 2006 at 02:21:29PM +0300, Slava Dubrovskiy wrote:
> >> Хочу настроить автомонтирование ресурсов самбы из под
> >> обычного пользователя.
> > pam_mount
> Скорее всего это то что надо, только не очень ясно как им
> пользоваться.  Есть какая-то инструкция?

Есть работающий, настраивали sr@ и sinister@.

Попробуй нечто вроде (/etc/security/pam_mount.conf):

debug 1
fsckloop /dev/loop7
options_allow   nosuid,nodev,loop,encryption
options_require nosuid,nodev
lsof /usr/sbin/lsof %(MNTPT)
fsck /sbin/fsck -p %(FSCKTARGET)
losetup /sbin/losetup -p0 "%(before=\"-e \" CIPHER)" "%(before=\"-k \" KEYBITS)" %(FSCKLOOP) 
%(VOLUME)
unlosetup /sbin/losetup -d %(FSCKLOOP)
cifsmount /bin/mount -t cifs //%(SERVER)/%(VOLUME) %(MNTPT) -o "username=%(USER)%(before=\",\
" OPTIONS)"
smbmount /bin/mount -t smbfs //%(SERVER)/%(VOLUME) %(MNTPT) -o "username=%(USER)%(before=\",\
" OPTIONS)"
ncpmount /bin/mount -t ncpfs %(SERVER)/%(USER) %(MNTPT) -o "pass-fd=0,volume=%(VOLUME)%(befor
e=\",\" OPTIONS)"
umount   /bin/umount %(MNTPT)
lclmount /bin/mount -p0 %(VOLUME) %(MNTPT) "%(before=\"-o \" OPTIONS)"
cryptmount /bin/mount -t crypt "%(before=\"-o \" OPTIONS)" %(VOLUME) %(MNTPT)
nfsmount /bin/mount %(SERVER):%(VOLUME) "%(MNTPT)%(before=\"-o \" OPTIONS)"
mntagain /bin/mount --bind %(PREVMNTPT) %(MNTPT)
mntcheck /bin/mount # For BSD's (don't have /etc/mtab)
pmvarrun /usr/sbin/pmvarrun -u %(USER) -d -o %(OPERATION)

и собсно главное:

volume  * cifs master SHARE /home/&/net/N: uid=&,gid=&,dir_mode=0750,iocharset=utf8 - -

pam_mount-0.9.25-alt1

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


  parent reply	other threads:[~2006-07-12 15:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-07 10:17 Slava Dubrovskiy
2006-07-07 10:20 ` Michael Shigorin
2006-07-07 11:21   ` Slava Dubrovskiy
2006-07-07 19:35     ` ABATAPA
2006-07-12 15:07     ` Michael Shigorin [this message]
2006-07-12 15:13       ` Slava Dubrovskiy
2006-07-12 15:18         ` Gennadiy Redko
2006-07-12 15:23           ` [Comm] Клонирование системы Slava Dubrovskiy
2006-07-12 15:30             ` Gennadiy Redko
2006-07-12 15:39               ` Slava Dubrovskiy
2006-07-13  7:39             ` [Comm] Клонирование системы (systemimager, mkcdrec и компания) Michael Shigorin
2006-07-12 15:18         ` [Comm] Как настроить автомонтирование ресурсов smb из под пользователя? Dmitriy L. Kruglikov
2006-07-13  7:39           ` [Comm] клонирование Michael Shigorin
2006-07-17 12:36       ` [Comm] Как настроить автомонтирование ресурсов smb из под пользователя? Slava Dubrovskiy
2006-07-18  6:00           ` Slava Dubrovskiy
2006-07-18 16:08         ` Michael Shigorin
2006-07-07 12:07 ` Dmitriy L. Kruglikov

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=20060712150701.GI26570@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=community@lists.altlinux.org \
    --cc=shigorin@gmail.com \
    /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