ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Mike Lykov <combr@vesna.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] вопросы о mount.cifs
Date: Fri, 10 Sep 2004 18:09:45 +0500
Message-ID: <200409101809.45249.combr@vesna.ru> (raw)

Здравствуйте.

Попробовал сейчас заменить на одном сервере монтирование каталога по smbfs на 
cifs, но это оказалось не так просто (как всегда, полно неочевидностей, 
описанных кусками в разных местах или вообще не ;)

Итак, была строчка в fstab:

//192.168.1.1/somedir  /mnt/somedir smbfs 
username=someuser%somepass,fmask=644, 
dmask=755,uid=500,gid=500,workgroup=somedomain

если же охота перейти на использование cifs, то надо:
1. поставить модуль (пакет kernel-modules-cifs-*-*-*)
2. поменять параметры:
username=someuser%somepass на
user-someuser, password=somepass
fmask=644, dmask=755 на
file_mode=0644,dir_mode=0755

Причем во всех манах написано просто file_mode=arg.
Про то, что спереди надо добавить 0, я узнал только из исходников mount.cifs.

workgroup=somedomain на domain=somedomain
uid, gid остаются без изменений.

Причем на последние 4 параметра в манах  указание: 
"If CIFS Unix extensions are not supported by the server" ...

Как я понял, windows2000 server не поддерживают этих extentions ;)

Причем все параметры должны быть записаны строго через запятую без пробелов.
(иначе будет ругань на неверные параметры mount).

Но можно и не через запятую, оказывается (хотя в mount.cifs об этом нет)
есть параметр
"  sep           if first mount option (after the -o), overrides
                the comma as the separator between the mount
                parms."

и получается в результате

//192.168.1.1/somedir /mnt/somedir cifs 
user=someuser,password=somepass,domain=somedomain,file_mode=0644,dir_mode=0755,uid=501,gid=501 

В сизифе сейчас есть такие пакеты:

kernel-modules-cifs-om-smp - Linux CIFS VFS module
kernel-modules-cifs-std-smp - Linux CIFS VFS module
kernel-modules-cifs-std-up - Linux CIFS VFS module
kernel-modules-cifs-vs-smp - Linux CIFS VFS module
kernel-source-cifs - Linux CIFS VFS module sources for 2.4 kernels
kernel-modules-cifs-std-up - Linux CIFS VFS module

(кстати, а почему kernel-modules-cifs-std-up в выводе apt-cache search 2 
раза?)
 
документации они, кроме mount.cifs(8), не содержат, хотя в тексте этого мана 
есть ссылка на 
"  Documentation/filesystems/cifs.txt and fs/cifs/README in the linux ker-
    nel source tree may contain additional options and information."

может, этот README вынуть из kernel source tree и положить где-то 
в /usr/share/doc? 

я его нашел в гугле:

http://cvs.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/README?rev=1.20&content-type=text/x-cvsweb-markup

-- 
Mike Lykov
Samara, "Vesna" parfum company, System administrator 


                 reply	other threads:[~2004-09-10 13:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200409101809.45249.combr@vesna.ru \
    --to=combr@vesna.ru \
    --cc=sisyphus@altlinux.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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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