Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[Samba] Problems mapping winbind/kerberos usernames and gr..

 
   Soft32 Home -> Linux -> Samba RSS
Next:  [Samba] Libsmbclient on Solaris  
Author Message
Dirk Broer

External


Since: Jan 28, 2004
Posts: 2



(Msg. 1) Posted: Wed Jan 28, 2004 5:40 pm
Post subject: [Samba] Problems mapping winbind/kerberos usernames and groups to Linux user and groups.
Archived from groups: linux>samba (more info?)

Samba 3.0.1 on Mandrake 9.1ish Kerberos version seems to match latest
stable MIT build.

I can log in via Kerberos authentication and/or winbind. A couple of
problems though.

1) telnet with the domain username and password and the telnet session
doesn’t reader /etc/bashrc. Telnet with local username and it does. bash
is the shell for both accounts.
2) The group account is ‘Domain User” – with a guid of 10000. That
matches the winbind settings but I would like to have a group that both
local and domain users can belong to. So I don’t have to open all shared
directories with chmod 777.

I have tried setting up a username map, but the moment I either map a domain
name to a unix name _or_ have a unix username that is the same as a domain
name, that user can no longer access the server.

template primary group = users. This seems to have no affect.

I have a CVS directory that for an internal project that I want to protect
and I don’t want to set permissions to 777. I would also have to set the
default directory permissions for all the CVS users to 777 as well – or they
will add directories that only same group members can access.

Should I just change the guid map to point everyone to 100? (guid users=100)

Samba was configured with the following options:
--with-acl-support
--with-automount
--with-smbmount
--with-libsmbclient
--with-sendfile-support
--with-smbwrapper
--with-winbind

PAM wasn’t compiled in.



# Samba config file created using SWAT
# from 192.168.0.85 (192.168.0.85)
# Date: 2004/01/28 17:07:49

# Global parameters
[global]
workgroup = MYWORKGROUP
realm = MYWORKGROUP.COM
security = DOMAIN
obey pam restrictions = Yes
log level = 2
add user script = /usr/sbin/useradd -s /bin/bash -g 100 %u
delete user script = /usr/sbin/userdel %u
preferred master = No
local master = No
domain master = No
dns proxy = No
ldap ssl = no
idmap uid = 10000-20000
idmap gid = 10000-20000
template primary group = users
template shell = /bin/bash
use sendfile = Yes
case sensitive = Yes
hide dot files = No

[homes]
comment = Home directory
read only = No
browseable = No

[dirk]
path = /home/dirk
valid users = dirk
read only = No
guest ok = Yes

Thank you,
Dirk


#include <standard_disclaimer>
#include <funny_quote>



--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Back to top
Login to vote
Buchan Milne

External


Since: Jan 26, 2004
Posts: 11



(Msg. 2) Posted: Tue Feb 03, 2004 5:30 am
Post subject: Re: [Samba] Problems mapping winbind/kerberos usernames and groups to Linux user and groups. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 28 Jan 2004, Dirk Broer wrote:

> Samba 3.0.1 on Mandrake 9.1ish Kerberos version seems to match latest
> stable MIT build.
>
> I can log in via Kerberos authentication and/or winbind. A couple of
> problems though.
>
> 1) telnet with the domain username and password and the telnet session
> doesn’t reader /etc/bashrc. Telnet with local username and it does. bash
> is the shell for both accounts.

How are you creating home directories? If you use pam_mkhomedir, it should
work, if not, you might not be copying a correct ~/.bashrc from /etc/skel.

> 2) The group account is ‘Domain User” – with a guid of 10000. That
> matches the winbind settings but I would like to have a group that both
> local and domain users can belong to. So I don’t have to open all shared
> directories with chmod 777.

You should be able to create a local group entry (you don't say where
Linux users exist ...), or if you are using XFS you can use ACLs instead.

But, it may not be the best idea to have local and winbind accounts that
must have overlapping group memberships ...

>
> I have tried setting up a username map, but the moment I either map a domain
> name to a unix name _or_ have a unix username that is the same as a domain
> name, that user can no longer access the server.
>
> template primary group = users. This seems to have no affect.
>
> I have a CVS directory that for an internal project that I want to protect
> and I don’t want to set permissions to 777. I would also have to set the
> default directory permissions for all the CVS users to 777 as well – or they
> will add directories that only same group members can access.
>
> Should I just change the guid map to point everyone to 100? (guid users=100)
>

Yes, if you can't use ACLs (ie on XFS), that may work.

> Samba was configured with the following options:
> --with-acl-support
> --with-automount
> --with-smbmount
> --with-libsmbclient
> --with-sendfile-support
> --with-smbwrapper
> --with-winbind

Hmm, you may rather want to try rebuilding the source release against your
Kerberos install with the rpm tools, just:
$ cd packaging/Mandrake
$ sh makerpms.sh

>
> PAM wasn’t compiled in.
>
>
>
> # Samba config file created using SWAT
> # from 192.168.0.85 (192.168.0.85)
> # Date: 2004/01/28 17:07:49
>
> # Global parameters
> [global]
> workgroup = MYWORKGROUP
> realm = MYWORKGROUP.COM
> security = DOMAIN
> obey pam restrictions = Yes
> log level = 2
> add user script = /usr/sbin/useradd -s /bin/bash -g 100 %u
> delete user script = /usr/sbin/userdel %u
> preferred master = No
> local master = No
> domain master = No
> dns proxy = No
> ldap ssl = no
> idmap uid = 10000-20000
> idmap gid = 10000-20000
> template primary group = users
> template shell = /bin/bash
> use sendfile = Yes
> case sensitive = Yes
> hide dot files = No
>
> [homes]
> comment = Home directory
> read only = No
> browseable = No
>
> [dirk]
> path = /home/dirk
> valid users = dirk
> read only = No
> guest ok = Yes
>


Regards,
Buchan

--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Samba] problems with uppercase in usernames - Oops, forgot to put a subject... apologies for the repost... (newb!) > Hi All, > > I'm trying to migrate fr...

[Samba] Forcing Kerberos from Pam/Winbind samba-3.0.0rc4 - What is required to force Kerberos authentication from Pam->Winbind? See winbindd log below - common operations like...

[Samba] auth failure on samba server + winbind wierdness(t.. - I'm most of the way through getting 3.0rc2 as a 2k3 AD member working. smbclient -L windows_machine -U win_user -k ..

[Samba] winbind mapping depuration - Hi, winbind mantains a mapping to UID's and GID's in fixed ranges, but what happens if that range is fully filled? How ...

[Samba] Winbind+OpenLDAP: Id mapping data is stored partia.. - Hello to all, I have installed Samba 3.0.0 PDC + OpenLDAP 2.1. Additionally, I use "wbinfo -c" to create use...

[Samba] Samba 3.0.1 ADS/Kerberos problems relating to Win2.. - Hello All, I've been discovering the joys of Samba/ADS integration here (the environment is a chip design concern that...
       Soft32 Home -> Linux -> Samba All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]