Now that I have winbind working, life is good. However, I've hit upon a real kick in the pants. As you can see from my email address, we have a convention here of usernames being firstname.lastname. So, when I go to change the owner ship of a file: $ chown chris.palmer myfile Linux thinks I mean user chris, group palmer, and says "invalid group" (there is no palmer group, obviously). Now, I could just use the numeric UID in place of the textual username, but using wbinfo I can't find out what winbind has set my UID to: # wbinfo -r chris.palmer Could not get groups for user chris.palmer # wbinfo -r MacUser Could not get groups for user MacUser "wbinfo -u" and "wbinfo -g" do work, giving me a list of users and groups. Also, I can discover my UID with getent: # getent passwd | grep chris # GENEEDINC+chris.palmer:x:10010:10000:Chris Palmer:/home/chris.palmer:/bin/bash And yes, "chown 10010 somefile" works. So, two questions: Is there some way I can use text user/group names instead of UIDs/GIDs; and, is something wrong with my system, indicated by the bad output of "wbinfo -r"? Thanks, -- Chris Palmer Systems Programmer GeneEd
> From: Chris Palmer [mailto:chris.palmer@geneed.com] > Sent: Tuesday, January 07, 2003 2:12 PM > To: samba@lists.samba.org > Subject: [Samba] Usernames with dots > > > Now that I have winbind working, life is good. However, I've > hit upon a real kick in the pants. > > As you can see from my email address, we have a convention here of > usernames being firstname.lastname. So, when I go to change the owner > ship of a file: > > $ chown chris.palmer myfile > > Linux thinks I mean user chris, group palmer, and says "invalid group" > (there is no palmer group, obviously).Try 'chown chris.palmer: myfile' ... with the trailing ":", chown does not get fooled by the . in your username, and if no group follows then your default login group is used, and it will correctly use chris.palmer in its entirety for your username. Is that enough to solve your problem? ~ Daniel> Now, I could just use the numeric UID in place of the textual > username, > but using wbinfo I can't find out what winbind has set my UID to: > > # wbinfo -r chris.palmer > Could not get groups for user chris.palmer > # wbinfo -r MacUser > Could not get groups for user MacUser > > "wbinfo -u" and "wbinfo -g" do work, giving me a list of users and > groups. Also, I can discover my UID with getent: > > # getent passwd | grep chris > # GENEEDINC+chris.palmer:x:10010:10000:Chris > Palmer:/home/chris.palmer:/bin/bash > > And yes, "chown 10010 somefile" works. > > > So, two questions: Is there some way I can use text user/group names > instead of UIDs/GIDs; and, is something wrong with my system, > indicated > by the bad output of "wbinfo -r"? > > > Thanks, > -- > Chris Palmer Systems Programmer GeneEd > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba > >----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.
> From: daniel.jarboe@custserv.com [mailto:daniel.jarboe@custserv.com] > > Try 'chown chris.palmer: myfile' ... with the trailing ":", chown does > not get fooled by the . in your username, and if no group follows then > your default login group is used, and it will correctly use > chris.palmer in its entirety for your username.I'm sorry, I should have mentioned in my first message that I already tried that. # chown -R chris.palmer: chris.palmer/ chown: `chris.palmer:': invalid user # getent passwd | grep chris.palmer GENEEDINC+chris.palmer:x:10010:10000:Chris Palmer:/home/chris.palmer:/bin/bash -- Chris Palmer Systems Programmer GeneEd
Actually you were having a two part-problem. The fix your remaining problem, put your DOMAIN and seperator before the user. chown -R GENEEDINC+chris.palmer: chris.palmer/ That'll do it ~ Daniel> -----Original Message----- > From: Chris Palmer [mailto:chris.palmer@geneed.com] > Sent: Tuesday, January 07, 2003 2:48 PM > To: Jarboe, Daniel - Data Center Operations > <daniel.jarboe@custserv.com>; samba@lists.samba.org > Subject: RE: [Samba] Usernames with dots > > > > From: daniel.jarboe@custserv.com [mailto:daniel.jarboe@custserv.com] > > > > Try 'chown chris.palmer: myfile' ... with the trailing ":", > chown does > > not get fooled by the . in your username, and if no group > follows then > > your default login group is used, and it will correctly use > > chris.palmer in its entirety for your username. > > I'm sorry, I should have mentioned in my first message that I > already tried that. > > # chown -R chris.palmer: chris.palmer/ > chown: `chris.palmer:': invalid user > # getent passwd | grep chris.palmer > GENEEDINC+chris.palmer:x:10010:10000:Chris > Palmer:/home/chris.palmer:/bin/bash > > -- > Chris Palmer Systems Programmer GeneEd > >----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.
> From: daniel.jarboe@custserv.com [mailto:daniel.jarboe@custserv.com] > > chown -R GENEEDINC+chris.palmer: chris.palmer/Very good! Thanks. I really, really should have thought of that... Samba is a great product and this list is a great resource. I really appreciate them. -- Chris Palmer Systems Programmer GeneEd
> Actually you were having a two part-problem. The fix your remaining > problem,I take it back, the first part of your problem was a red herring. All you were missing was the DOMAIN+ piece in front of the user-name/group. chown is smart enough to deal with the dot in the username properly, IF there is such a user. If not, it uses the dot as a user/group seperator. I guess your no such group palmer error was because that was the last thing it tried before giving up... So, you don't need the trailing : at all and you can just set user ownership without affecting group ownership. ~ Daniel ----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.