[Samba] User's home folders
zingalo
lozingalo at gmail.com
Sun May 6 03:48:39 MDT 2012
On 05/04/2012 12:42 PM, Helmut Hullen wrote:
> Hallo, Stefano,
>
> Du meintest am 04.05.12:
>
>>>> #!/bin/bash
>>>> Login="rw,file_mode=0644,dir_mode=0755,username=zingalo,password=**
>>>> ** ,noserverino"
>>>> smbmount //192.168.5.219/users/zingalo /mnt/samba/Dati
>
>
>> df is
>
>> Filesystem 1K-blocks Used Available Use% Mounted on
>> /dev/sda5 44186760 4459704 37482448 11% /
>> udev 1539868 4 1539864 1% /dev
>> tmpfs 618748 868 617880 1% /run
>> none 5120 0 5120 0% /run/lock
>> none 1546868 480 1546388 1% /run/shm
>> /dev/sda4 195262036 186862356 8399680 96%
>> /media/44A936374932B99A
>
> Shit - no cifs share mounted. Maybe it's an LDAP problem ...
>
> Viele Gruesse!
> Helmut
Hi,
i have problems to mount the home directories on the client from the server.
I configured 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 user="%(USER)" fstype="smbfs" path="/users/%(USER)" noroot="1"
server="amahoro" mountpoint="/home/%(USER)" ssh="0" />
<!-- 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="true" />
<smbmount> smbmount //192.168.5.219/users/%(USER) /home/%(USER)</smbmount>
<umount> umount /home/%(USER) </umount>
</pam_mount>
The directory /users is on the server and it's mounted, this is its line
in /etc/fstab on the server:
/dev/sdb3 /users ext2 auto,rw 0 0
After logging using the user zingalo the error message is:
pam_mount(pam_mount.c:553): pam_mount 2.10: entering session stage
pam_mount(misc.c:38): Session open: (ruid/rgid=0/0, e=0/0)
pam_mount(pam_mount.c:614): no volumes to mount
command: 'pmvarrun' '-u' 'zingalo' '-o' '1'
pam_mount(misc.c:38): set_myuid<pre>: (ruid/rgid=0/0, e=0/0)
pam_mount(misc.c:38): set_myuid<post>: (ruid/rgid=0/0, e=0/0)
pmvarrun(pmvarrun.c:252): parsed count value 0
pam_mount(pam_mount.c:440): pmvarrun says login count is 1
pam_mount(pam_mount.c:645): done opening session (ret=0)
No directory, logging in with HOME=/
It doesn't find the volume and am not sure about /users partition in
fstab on the server, is it correct that line?
Thanks
More information about the samba
mailing list