>Обсуждение этого вопроса
>http://ubuntuforums.org/showthread.php?t=352016 Спасибо за наводку, проблему с ссылками решил добавлением на сервере
unix extensions = no
Появилась другая странная проблема, на клиенте авторизуюсь (Mandriva 2010) шара подключается и очень быстро отмонтируется... Почему не понимаю. Вот лог:
Jan 11 14:37:01 kab38-4-linux crond[13757]: pam_mount(pam_mount.c:524): pam_mount 1.32: entering session stage
Jan 11 14:37:01 kab38-4-linux crond[13757]: pam_mount(pam_mount.c:168): No converse function available
Jan 11 14:37:01 kab38-4-linux crond[13757]: pam_mount(pam_mount.c:454): warning: could not obtain password interactively either
Jan 11 14:37:01 kab38-4-linux crond[13757]: pam_mount(misc.c:38): Session open: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:37:01 kab38-4-linux crond[13757]: pam_mount(mount.c:196): Mount info: globalconf, user=root <volume fstype="cifs" server="192.168.10.5" path="Share" mountpoint="/mnt/share" cipher="(null)" fskeypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="iocharset=utf8" /> fstab=0
Jan 11 14:37:01 kab38-4-linux crond[13757]: command: [mount] [-t] [cifs] [//192.168.10.5/Share] [/mnt/share] [-o] [user=root,uid=0,gid=0,iocharset=utf8]
Jan 11 14:37:01 kab38-4-linux crond[13758]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:37:01 kab38-4-linux crond[13758]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:37:01 kab38-4-linux klogd: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Jan 11 14:37:01 kab38-4-linux klogd: CIFS VFS: Send error in SessSetup = -13
Jan 11 14:37:01 kab38-4-linux crond[13757]: pam_mount(pam_mount.c:492): mount of Share failed
Jan 11 14:37:01 kab38-4-linux klogd: CIFS VFS: cifs_mount failed w/return code = -13
Jan 11 14:37:01 kab38-4-linux crond[13757]: command: [pmvarrun] [-u] [root] [-o] [1]
Jan 11 14:37:01 kab38-4-linux crond[13762]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:37:01 kab38-4-linux crond[13762]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:37:01 kab38-4-linux crond[13757]: pam_mount(pam_mount.c:424): pmvarrun says login count is 1
Jan 11 14:37:01 kab38-4-linux crond[13757]: pam_mount(pam_mount.c:614): done opening session (ret=0)
Jan 11 14:37:01 kab38-4-linux CROND[13763]: (root) CMD ( /usr/share/msec/promisc_check.sh)
Jan 11 14:37:01 kab38-4-linux CROND[13757]: pam_mount(pam_mount.c:656): received order to close things
Jan 11 14:37:01 kab38-4-linux CROND[13757]: pam_mount(misc.c:38): Session close: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:37:01 kab38-4-linux CROND[13757]: command: [pmvarrun] [-u] [root] [-o] [-1]
Jan 11 14:37:01 kab38-4-linux CROND[13782]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:37:01 kab38-4-linux CROND[13782]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:37:01 kab38-4-linux CROND[13757]: pam_mount(pam_mount.c:424): pmvarrun says login count is 0
Jan 11 14:37:01 kab38-4-linux CROND[13757]: pam_mount(mount.c:695): going to unmount
Jan 11 14:37:01 kab38-4-linux CROND[13757]: pam_mount(mount.c:196): Mount info: globalconf, user=root <volume fstype="cifs" server="192.168.10.5" path="Share" mountpoint="/mnt/share" cipher="(null)" fskeypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="iocharset=utf8" /> fstab=0
Jan 11 14:37:01 kab38-4-linux CROND[13757]: command: [umount] [/mnt/share]
Jan 11 14:37:01 kab38-4-linux CROND[13783]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:37:02 kab38-4-linux CROND[13783]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:37:02 kab38-4-linux CROND[13757]: pam_mount(mount.c:64): umount messages:
Jan 11 14:37:02 kab38-4-linux CROND[13757]: pam_mount(mount.c:68): umount: /mnt/share: не примонтирован
Jan 11 14:37:02 kab38-4-linux CROND[13757]: pam_mount(mount.c:698): unmount of Share failed
Jan 11 14:37:02 kab38-4-linux CROND[13757]: pam_mount(pam_mount.c:693): pam_mount execution complete
Jan 11 14:37:02 kab38-4-linux CROND[13757]: pam_mount(pam_mount.c:115): Clean global config (0)
Jan 11 14:37:03 kab38-4-linux kdm: :0[13642]: pam_mount(pam_mount.c:314): pam_mount 1.32: entering auth stage
Jan 11 14:37:03 kab38-4-linux kdm: :0[13642]: pam_mount(pam_mount.c:524): pam_mount 1.32: entering session stage
Jan 11 14:37:03 kab38-4-linux kdm: :0[13642]: pam_mount(misc.c:38): Session open: (uid=0, euid=0, gid=10004, egid=10004)
Jan 11 14:37:03 kab38-4-linux kdm: :0[13642]: pam_mount(mount.c:196): Mount info: globalconf, user=gosha <volume fstype="cifs" server="192.168.10.5" path="Share" mountpoint="/mnt/share" cipher="(null)" fskeypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="iocharset=utf8" /> fstab=0
Jan 11 14:37:03 kab38-4-linux kdm: :0[13642]: command: [mount] [-t] [cifs] [//192.168.10.5/Share] [/mnt/share] [-o] [user=gosha,uid=10005,gid=10004,iocharset=utf8]
Jan 11 14:37:03 kab38-4-linux kdm: :0[13786]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=10004, egid=10004)
Jan 11 14:37:03 kab38-4-linux kdm: :0[13786]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=10004, egid=10004)
Jan 11 14:37:03 kab38-4-linux kdm: :0[13642]: command: [pmvarrun] [-u] [gosha] [-o] [1]
Jan 11 14:37:03 kab38-4-linux kdm: :0[13790]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=10004, egid=10004)
Jan 11 14:37:04 kab38-4-linux kdm: :0[13790]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=10004, egid=10004)
Jan 11 14:37:04 kab38-4-linux kdm: :0[13642]: pam_mount(pam_mount.c:424): pmvarrun says login count is 1
Jan 11 14:37:04 kab38-4-linux kdm: :0[13642]: pam_mount(pam_mount.c:614): done opening session (ret=0)
Jan 11 14:37:16 kab38-4-linux rtkit-daemon[3848]: Sucessfully made thread 14071 of process 14071 (/usr/bin/pulseaudio) owned by '10005' high priority at nice level -11.
Jan 11 14:37:16 kab38-4-linux mdkapplet[14074]: ### Program is starting ###
Jan 11 14:37:16 kab38-4-linux net_applet[14093]: ### Program is starting ###
Jan 11 14:37:16 kab38-4-linux rtkit-daemon[3848]: Sucessfully made thread 14115 of process 14071 (/usr/bin/pulseaudio) owned by '10005' RT at priority 5.
Jan 11 14:37:16 kab38-4-linux rtkit-daemon[3848]: Sucessfully made thread 14120 of process 14071 (/usr/bin/pulseaudio) owned by '10005' RT at priority 5.
Jan 11 14:37:16 kab38-4-linux draksnapshot-applet[14101]: ### Program is starting ###
Jan 11 14:37:17 kab38-4-linux rtkit-daemon[3848]: Sucessfully made thread 14130 of process 14130 (/usr/bin/pulseaudio) owned by '10005' high priority at nice level -11.
Jan 11 14:37:17 kab38-4-linux pulseaudio[14130]: pid.c: Daemon already running.
Jan 11 14:37:17 kab38-4-linux rtkit-daemon[3848]: Sucessfully made thread 14131 of process 14131 (/usr/bin/pulseaudio) owned by '10005' high priority at nice level -11.
Jan 11 14:37:17 kab38-4-linux pulseaudio[14131]: pid.c: Daemon already running.
Jan 11 14:37:18 kab38-4-linux draksnapshot-applet[14101]: running: ionice -p 14101 -n7
Jan 11 14:37:18 kab38-4-linux mdkapplet[14074]: running: ionice -p 14074 -n7
Jan 11 14:38:02 kab38-4-linux crond[14276]: pam_mount(pam_mount.c:524): pam_mount 1.32: entering session stage
Jan 11 14:38:02 kab38-4-linux crond[14276]: pam_mount(pam_mount.c:168): No converse function available
Jan 11 14:38:02 kab38-4-linux crond[14276]: pam_mount(pam_mount.c:454): warning: could not obtain password interactively either
Jan 11 14:38:02 kab38-4-linux crond[14276]: pam_mount(misc.c:38): Session open: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:38:02 kab38-4-linux crond[14276]: pam_mount(mount.c:196): Mount info: globalconf, user=root <volume fstype="cifs" server="192.168.10.5" path="Share" mountpoint="/mnt/share" cipher="(null)" fskeypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="iocharset=utf8" /> fstab=0
Jan 11 14:38:02 kab38-4-linux crond[14276]: pam_mount(mount.c:487): Share already seems to be mounted at /mnt/share, skipping
Jan 11 14:38:02 kab38-4-linux crond[14276]: command: [pmvarrun] [-u] [root] [-o] [1]
Jan 11 14:38:02 kab38-4-linux crond[14277]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:38:02 kab38-4-linux crond[14277]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:38:02 kab38-4-linux crond[14276]: pam_mount(pam_mount.c:424): pmvarrun says login count is 1
Jan 11 14:38:02 kab38-4-linux crond[14276]: pam_mount(pam_mount.c:614): done opening session (ret=0)
Jan 11 14:38:02 kab38-4-linux CROND[14278]: (root) CMD ( /usr/share/msec/promisc_check.sh)
Jan 11 14:38:02 kab38-4-linux CROND[14276]: pam_mount(pam_mount.c:656): received order to close things
Jan 11 14:38:02 kab38-4-linux CROND[14276]: pam_mount(misc.c:38): Session close: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:38:02 kab38-4-linux CROND[14276]: command: [pmvarrun] [-u] [root] [-o] [-1]
Jan 11 14:38:02 kab38-4-linux CROND[14297]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:38:02 kab38-4-linux CROND[14297]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:38:02 kab38-4-linux CROND[14276]: pam_mount(pam_mount.c:424): pmvarrun says login count is 0
Jan 11 14:38:02 kab38-4-linux CROND[14276]: pam_mount(mount.c:695): going to unmount
Jan 11 14:38:02 kab38-4-linux CROND[14276]: pam_mount(mount.c:196): Mount info: globalconf, user=root <volume fstype="cifs" server="192.168.10.5" path="Share" mountpoint="/mnt/share" cipher="(null)" fskeypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="iocharset=utf8" /> fstab=0
Jan 11 14:38:02 kab38-4-linux CROND[14276]: command: [umount] [/mnt/share]
Jan 11 14:38:02 kab38-4-linux CROND[14298]: pam_mount(misc.c:38): set_myuid<pre>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:38:02 kab38-4-linux CROND[14298]: pam_mount(misc.c:38): set_myuid<post>: (uid=0, euid=0, gid=0, egid=0)
Jan 11 14:38:02 kab38-4-linux CROND[14276]: pam_mount(pam_mount.c:693): pam_mount execution complete
Jan 11 14:38:02 kab38-4-linux CROND[14276]: pam_mount(pam_mount.c:115): Clean global config (0)
Вот pam_mount.conf.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd">
<!--
See pam_mount.conf(5) for a description.
-->
<pam_mount>
<!-- debug should come before everything else,
since this file is still processed in a single pass
from top-to-bottom -->
<debug enable="1" />
<!-- Volume definitions -->
<volume fstype="cifs" server="192.168.10.5" path="Share" mountpoint="/mnt/share"
options="iocharset=utf8" />
<!-- pam_mount parameters: General tunables -->
<!--
<luserconf name=".pam_mount.conf.xml" />
-->
<!-- Note that commenting out mntoptions will give you the defaults.
You will need to explicitly initialize it with the empty string
to reset the defaults to nothing. -->
<mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
<!--
<mntoptions deny="suid,dev" />
<mntoptions allow="*" />
<mntoptions deny="*" />
-->
<mntoptions require="nosuid,nodev" />
<path>/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin</path>
<logout wait="0" hup="0" term="0" kill="0" />
<!-- pam_mount parameters: Volume-related -->
<mkmountpoint enable="1" remove="true" />
</pam_mount>
Вот pam.d/system-auth
auth required pam_mount.so
auth optional pam_group.so
auth sufficient pam_unix.so nullok_secure use_first_pass
auth sufficient pam_winbind.so use_first_pass krb5_auth krb5_ccache_type=FILE debug
auth required pam_deny.so
account sufficient pam_winbind.so
account required pam_unix.so
password sufficient pam_unix.so nullok obscure md5
password sufficient pam_winbind.so
session required pam_winbind.so
session required pam_unix.so
session required pam_mkhomedir.so umask=0022 skel=/etc/skel
session required pam_mount.so
session optional pam_foreground.s