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

Replies

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