Смоленск 1.5 Ещё один вопрос по pam_mount

AshWork

New member
Сообщения
16
#1
Прошу помочь по настройке pam_mount. При перезагрузке общая папка автоматически не монтируется, папка монтирования удаляется. Как сделать правильно? Файл /etc/security/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 -->
<logout wait="50000" hup="1" term="1" kill="1" />
<cifsmount>mount.cifs //%(SERVER)/%(VOLUME) %(MNTPT) -o %(OPTIONS) </cifsmount>
 
                <!-- pam_mount parameters: General tunables -->
<!-- Описание тома, который должен монтироваться -->
<volume
        fstype="cifs"
        server="192.168.0.1"
        path="share1"
        mountpoint="/mnt/share1"
        options="user=%(USER),cruid=%(USER)"
/>
 

        <!-- 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" />

<logout wait="0" hup="0" term="0" kill="0" />


        <!-- pam_mount parameters: Volume-related -->

<mkmountpoint enable="1" remove="false" />


</pam_mount>