Gentoo Archives: gentoo-server

From: robert anstuther <robert.anstruther@×××××.biz>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Mount Samba shares as home
Date: Thu, 17 Apr 2008 16:01:47
Message-Id: 3164.10.11.200.125.1208448104.squirrel@mail.gigle.biz
In Reply to: Re: [gentoo-server] Mount Samba shares as home by Alexander Zimmerling
1 The file only maps the user names, but does not contain the passwords,
2 eg. bob = bob.example, sorry do not remember if windows name is first or
3 second. Look on the Samba web site.
4
5
6
7
8
9 > Hi guys,
10 >
11 > I've got a nice problem here.
12 >
13 > My situation:
14 >
15 > I have different clients, windows and linux and a gentoo-samba-pdc.
16 >
17 > As you might know, windows domains are supporting a 'homeshare' which
18 > are mounted (mapped) to a specific driveletter (here m:)
19 >
20 > The windows boxes are domain members. The linux boxes aren't.
21 > Some of the users need to login to windows and linux clients. The
22 > linux-usernames are unfortunately not equal with the domain-usernames.
23 >
24 > The generel problem is to provide the logged in linux user the
25 > corresponding (domain-user) homeshare.
26 >
27 > Postings in the forums pointed me to pam_mount.
28 >
29 > I'll give you an example:
30 >
31 > Colleague Bob Example.
32 >
33 > Has a domain-user-login, bob.example. He can login on all windows
34 > workstations without any trouble, the share is mapped to m: etc.
35 >
36 > He has a linux username, also. Just "bob".
37 >
38 > Bob is an unprivileged user and using this command ends in an error:
39 >
40 >>>
41 > mount.cifs //server/bob.example /home/bob -o user=bob.example
42 > <<
43 >
44 > error returned:
45 >>>
46 > mount error 1 = Operation not permitted
47 > Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
48 > <<
49 >
50 >
51 > As I said the guys in the forum told me to look for pam_mount.
52 > I installed this module, set it up in /etc/pam.d/system-auth and
53 > configured the /etc/security/pam_mount.conf.xml
54 >
55 > added this line:
56 >
57 >>>
58 > <volume user="bob" fstype="cifs" server="server" path="bob.example"
59 > options="user=bob.example">
60 > <<
61 >
62 > I saw, that pam_mount uses $(user) to identify the user, and pass this
63 > to mount.cifs. I've deleted this part and added
64 > options="user=bob.example".
65 >
66 > Well this is where I'm stucked now.
67 >
68 > The main problem is that the username on the old linux boxes differing
69 > from the domain user names.
70 >
71 > Do you have any ideas or a better documentation for pam_mount? or had
72 > sth similar?
73 >
74 > Kind Regards
75 >
76 > Alex
77 >
78
79
80 --
81 gentoo-server@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-server] Mount Samba shares as home Alexander Zimmerling <Alexander.Zimmerling@××××.org>