From: "robert anstuther" <robert.anstruther@gigle.biz>
To: gentoo-server@lists.gentoo.org
Subject: Re: [gentoo-server] Mount Samba shares as home
Date: Thu, 17 Apr 2008 17:44:58 +0200 (CEST) [thread overview]
Message-ID: <3145.10.11.200.125.1208447098.squirrel@mail.gigle.biz> (raw)
In-Reply-To: <1208445982.5312.20.camel@Jerusalem.zimmerling.lan>
Hi, is it not just down to having a smbusers file for mapping linux to
windows user names?
> Hi guys,
>
> I've got a nice problem here.
>
> My situation:
>
> I have different clients, windows and linux and a gentoo-samba-pdc.
>
> As you might know, windows domains are supporting a 'homeshare' which
> are mounted (mapped) to a specific driveletter (here m:)
>
> The windows boxes are domain members. The linux boxes aren't.
> Some of the users need to login to windows and linux clients. The
> linux-usernames are unfortunately not equal with the domain-usernames.
>
> The generel problem is to provide the logged in linux user the
> corresponding (domain-user) homeshare.
>
> Postings in the forums pointed me to pam_mount.
>
> I'll give you an example:
>
> Colleague Bob Example.
>
> Has a domain-user-login, bob.example. He can login on all windows
> workstations without any trouble, the share is mapped to m: etc.
>
> He has a linux username, also. Just "bob".
>
> Bob is an unprivileged user and using this command ends in an error:
>
>>>
> mount.cifs //server/bob.example /home/bob -o user=bob.example
> <<
>
> error returned:
>>>
> mount error 1 = Operation not permitted
> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
> <<
>
>
> As I said the guys in the forum told me to look for pam_mount.
> I installed this module, set it up in /etc/pam.d/system-auth and
> configured the /etc/security/pam_mount.conf.xml
>
> added this line:
>
>>>
> <volume user="bob" fstype="cifs" server="server" path="bob.example"
> options="user=bob.example">
> <<
>
> I saw, that pam_mount uses $(user) to identify the user, and pass this
> to mount.cifs. I've deleted this part and added
> options="user=bob.example".
>
> Well this is where I'm stucked now.
>
> The main problem is that the username on the old linux boxes differing
> from the domain user names.
>
> Do you have any ideas or a better documentation for pam_mount? or had
> sth similar?
>
> Kind Regards
>
> Alex
>
--
gentoo-server@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-04-17 15:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-17 15:26 [gentoo-server] Mount Samba shares as home Alexander Zimmerling
2008-04-17 15:44 ` robert anstuther [this message]
2008-04-17 15:55 ` Alexander Zimmerling
2008-04-17 16:01 ` robert anstuther
2008-04-17 16:20 ` Alexander Zimmerling
2008-04-17 17:23 ` pkoelle
2008-04-17 18:02 ` Alexander Zimmerling
2008-04-17 18:12 ` Alexander Zimmerling
2008-04-18 1:28 ` pkoelle
2008-04-18 8:12 ` robert anstuther
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3145.10.11.200.125.1208447098.squirrel@mail.gigle.biz \
--to=robert.anstruther@gigle.biz \
--cc=gentoo-server@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox