Gentoo Archives: gentoo-server

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-server] Mount Samba shares as home "pkoelle@×××××.com" <pkoelle@×××××.com>