Re: [Samba] Mapping usernames
Hi Gary Thanks for the quick answer. The first solution works fine and it is right for me. But indeed, what I want to set is group mappings instead of user mappings. In order to do that I created a share with a determined unix group and I map a Windows group to that unix group following the instructions given in the link below. Then, I add my Windows user to the Windows group, but it does not work. Is it simple as this? Do I need to use "force group"? http://samba.org/samba/docs/man/Samba-HOWTO-Collection/groupmapping.html Thanks in advance, IT Infrastructure & Operations Service // ITD - OHIM Services Provided by Jordi GARCIA - OPERATIONS Unix Admin FUJITSU SERVICES -Original Message- From: Gary Dale [mailto:garyd...@rogers.com] Sent: 29 September 2009 17:39 Cc: samba@lists.samba.org Subject: Re: [Samba] Mapping usernames I suspect that the problem is that Samba is looking up the Windows name and simply mapping to the first instance it finds. A work-around would be to use the "force user" setting on the share. Allow garcijo access then force the user to be mpcadmin. You may also want to consider your strategy for setting permissions. Why bother with Unix accounts when Windows accounts can do what you want? Open up the share to a larger Unix group but set the Windows permissions to just give access to the person you want. GARCIA CABALLERO Jordi wrote: > Dear all > > > > I am trying to configure samba username map file in order to map the > same user from a windows domain to 2 different unix users: > > > > Map to = map from > > > > bea = PRODUCTION\garcijo > > mpcadmin = PRODUCTION\garcijo > > > > but only works for the first map in the map file. When I try to use a > share with permissions for mpcadmin unix user, I realize that smbd takes > the first map (bea user) and then it makes the authentication with the > user PRODUCTION\garcijo. Then it checks whether user bea has permissions > to the that share which it is not and it eventually fails. I try to put > exclamation mark at the beginning of the map but it does not work > either. > > > > I did not find any way to fix it. Any ideas? Any workaround? > > > > Any help will be much appreciated. > > > > Regards, > > > > IT Infrastructure & Operations Service // ITD - OHIM > > Services Provided by > > Jordi GARCIA - OPERATIONS Unix Admin > > FUJITSU SERVICES > > E-mail:jordi.gar...@oami.europa.eu > > Phone:Fixed #9777 - Mobile #5777 > > > > ** > IMPORTANT: This message is intended exclusively for information purposes. It cannot be considered as an > official OHIM communication concerning procedures laid down in the Community Trade Mark Regulations > and Designs Regulations. It is therefore not legally binding on the OHIM for the purpose of those procedures. > The information contained in this message and attachments is intended solely for the attention and use of the > named addressee and may be confidential. If you are not the intended recipient, you are reminded that the > information remains the property of the sender. You must not use, disclose, distribute, copy, print or rely on this > e-mail. If you have received this message in error, please contact the sender immediately and irrevocably > delete or destroy this message and any copies. > > ** > ** IMPORTANT: This message is intended exclusively for information purposes. It cannot be considered as an official OHIM communication concerning procedures laid down in the Community Trade Mark Regulations and Designs Regulations. It is therefore not legally binding on the OHIM for the purpose of those procedures. The information contained in this message and attachments is intended solely for the attention and use of the named addressee and may be confidential. If you are not the intended recipient, you are reminded that the information remains the property of the sender. You must not use, disclose, distribute, copy, print or rely on this e-mail. If you have received this message in error, please contact the sender immediately and irrevocably delete or destroy this message and any copies. ** -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Mapping usernames
Dear all I am trying to configure samba username map file in order to map the same user from a windows domain to 2 different unix users: Map to = map from bea = PRODUCTION\garcijo mpcadmin = PRODUCTION\garcijo but only works for the first map in the map file. When I try to use a share with permissions for mpcadmin unix user, I realize that smbd takes the first map (bea user) and then it makes the authentication with the user PRODUCTION\garcijo. Then it checks whether user bea has permissions to the that share which it is not and it eventually fails. I try to put exclamation mark at the beginning of the map but it does not work either. I did not find any way to fix it. Any ideas? Any workaround? Any help will be much appreciated. Regards, IT Infrastructure & Operations Service // ITD - OHIM Services Provided by Jordi GARCIA - OPERATIONS Unix Admin FUJITSU SERVICES E-mail:jordi.gar...@oami.europa.eu Phone:Fixed #9777 - Mobile #5777 ** IMPORTANT: This message is intended exclusively for information purposes. It cannot be considered as an official OHIM communication concerning procedures laid down in the Community Trade Mark Regulations and Designs Regulations. It is therefore not legally binding on the OHIM for the purpose of those procedures. The information contained in this message and attachments is intended solely for the attention and use of the named addressee and may be confidential. If you are not the intended recipient, you are reminded that the information remains the property of the sender. You must not use, disclose, distribute, copy, print or rely on this e-mail. If you have received this message in error, please contact the sender immediately and irrevocably delete or destroy this message and any copies. ** -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Problem running the packaging script for the first time
Hi It is the first time I am running the makepkg.sh script to create a Solaris package script and I got the following error messages. Does anyone idea of what it is happening ? Thanks in advance, Jordi /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_1004.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_1005.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_1006.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_1101.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_1102.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_af01.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_af02.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_af03.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_af04.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_af05.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_af06.gif /tmp/samba-3.2.3-build//opt/samba/swat/using_samba/figs/sam2_af07.gif == The SWAT files have been installed. Remember to read the documentation for information on enabling and using SWAT == Installing module pam_winbind as /tmp/samba-3.2.3-build//opt/samba/lib/security/pam_winbind.so ./install-sh -c bin/libtalloc.so.1 /tmp/samba-3.2.3-build/opt/samba/lib if test -e bin/libtalloc.so.1 ; then \ ln -s -f `basename bin/libtalloc.so.1` \ /tmp/samba-3.2.3-build/opt/samba/lib/`basename bin/libtalloc.so` ; \ fi /bin/sh: test: argument expected make: [installlibtalloc] Error 1 (ignored) : bin/libtalloc.a /tmp/samba-3.2.3-build/opt/samba/lib ./install-sh -c -m 0644 /samba/samba-3.2.3/source/lib/talloc/talloc.h /tmp/samba-3.2.3-build/opt/samba/include ./install-sh -c bin/libtdb.so.1 /tmp/samba-3.2.3-build/opt/samba/lib if test -e bin/libtdb.so.1 ; then \ ln -s -f `basename bin/libtdb.so.1` \ /tmp/samba-3.2.3-build/opt/samba/lib/`basename bin/libtdb.so` ; \ fi /bin/sh: test: argument expected make: [installlibtdb] Error 1 (ignored) : bin/libtdb.a /tmp/samba-3.2.3-build/opt/samba/lib ./install-sh -c -m 0644 /samba/samba-3.2.3/source/lib/tdb/include/tdb.h /tmp/samba-3.2.3-build/opt/samba/include ./install-sh -c bin/libwbclient.so.0 /tmp/samba-3.2.3-build/opt/samba/lib if test -e bin/libwbclient.so.0 ; then \ ln -s -f `basename bin/libwbclient.so.0` \ /tmp/samba-3.2.3-build/opt/samba/lib/`basename bin/libwbclient.so` ; \ fi /bin/sh: test: argument expected make: [installlibwbclient] Error 1 (ignored) ./install-sh -c -m 0644 /samba/samba-3.2.3/source/nsswitch/libwbclient/wbclient.h /tmp/samba-3.2.3-build/opt/samba/include ./install-sh -c bin/libnetapi.so.0 /tmp/samba-3.2.3-build/opt/samba/lib if test -e bin/libnetapi.so.0 ; then \ ln -s -f `basename bin/libnetapi.so.0` \ /tmp/samba-3.2.3-build/opt/samba/lib/`basename bin/libnetapi.so` ; \ fi /bin/sh: test: argument expected make: [installlibnetapi] Error 1 (ignored) : bin/libnetapi.a /tmp/samba-3.2.3-build/opt/samba/lib ./install-sh -c -m 0644 /samba/samba-3.2.3/source/lib/netapi/netapi.h /tmp/samba-3.2.3-build/opt/samba/include ./install-sh -c bin/libsmbclient.so.0 /tmp/samba-3.2.3-build/opt/samba/lib if test -e bin/libsmbclient.so.0 ; then \ ln -s -f `basename bin/libsmbclient.so.0` \ /tmp/samba-3.2.3-build/opt/samba/lib/`basename bin/libsmbclient.so` ; \ fi /bin/sh: test: argument expected make: [installlibsmbclient] Error 1 (ignored) : bin/libsmbclient.a /tmp/samba-3.2.3-build/opt/samba/lib ./install-sh -c -m 0644 /samba/samba-3.2.3/source/include/libsmbclient.h /tmp/samba-3.2.3-build/opt/samba/include ./install-sh -c bin/libsmbsharemodes.so.0 /tmp/samba-3.2.3-build/opt/samba/lib if test -e bin/libsmbsharemodes.so.0 ; then \ ln -s -f `basename bin/libsmbsharemodes.so.0` \ /tmp/samba-3.2.3-build/opt/samba/lib/`basename bin/libsmbsharemodes.so` ; \ fi /bin/sh: test: argument expected make: [installlibsmbsharemodes] Error 1 (ignored) : bin/libsmbsharemodes.a /tmp/samba-3.2.3-build/opt/samba/lib ./install-sh -c -m 0644 /samba/samba-3.2.3/source/include/smb_share_modes.h /tmp/samba-3.2.3-build/opt/samba/include ld.so.1: smbd: fatal: libtalloc.so: open failed: No such file or directory ld.so.1: smbd: fatal: libtalloc.so: open failed: No such file or directory ld.so.1: smbd: fatal: libtalloc.so: open failed: No such file or directory ld.so.1: smbd: fatal: libtalloc.so: open failed: No such file or directory ld.so.1: smbd: fatal: libtalloc.so: open failed: No such file or directory ld.so.1: smbd: fatal: libtalloc.so: open failed: No such file or directory ld.so.1: smbd: fatal: libtalloc.so: open failed: No such file or directory ld.so.1: smbd: fatal: libtalloc.so: open failed: No such file or directory ld.so.1: smbd: fatal: libtalloc.so: open f