public inbox for gentoo-server@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alexander Zimmerling <Alexander.Zimmerling@ieee.org>
To: gentoo-server@lists.gentoo.org
Subject: Re: [gentoo-server] Mount Samba shares as home
Date: Thu, 17 Apr 2008 17:55:55 +0200	[thread overview]
Message-ID: <1208447755.5312.24.camel@Jerusalem.zimmerling.lan> (raw)
In-Reply-To: <3145.10.11.200.125.1208447098.squirrel@mail.gigle.biz>

[-- Attachment #1: Type: text/plain, Size: 2463 bytes --]

Can you give me some more details?
Is this a file where all smbusers and their passwords are stored?

If yes: this is not an option!

thank you so far

Alex


Am Donnerstag, den 17.04.2008, 17:44 +0200 schrieb robert anstuther:
> 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
> >
> 
> 

[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-04-17 15:55 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
2008-04-17 15:55   ` Alexander Zimmerling [this message]
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=1208447755.5312.24.camel@Jerusalem.zimmerling.lan \
    --to=alexander.zimmerling@ieee.org \
    --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