[Samba] Assign different shells to

Emmanuel Blindauer samba at agat.net
Mon Jan 22 14:45:24 GMT 2007


I dupplicate the entry in /etc/passwd:

getent passwd myuser return (resolved throught winbind):
myuser:*:15507:10153::/home/myuser:/bin/false

So I add exactly the same line in /etc/passwd only the shell is modified

The idea is that the mapping uid -> sid won't change

Emmanuel


Le lundi 22 janvier 2007 15:32, M Azer a écrit :
> Thanks for the reply - your idea is exactly want i want to do . I am
> setting up default winbind to no shell "/sbin/false" - the question how
> do i accomplish the secaond have of your answer which is to give certain
> users access to the shell "/bin/bash" - winbind users don't appear in
> "/etc/passwd" thats why I can't just user " usermod -s /bin/bash
> username"
>
> does anybody know who to give certain winbind users access to the shell
> while the global setting in smb.conf is set to "/sbin/false"
>
> Thanks
>
> On 1/21/07, Tim Boneko <lists at boneko.de> wrote:
> > M Azer schrieb:
> > > However, there are some users that require shell
> > > access. How can I set a real shell for those domain
> > > users that need a shell on the machine ?
> >
> > Hello!
> > I don't have winbind installed and can't test it, but what about this
> > idea:
> >
> > If winbind allowed to use some sort of default shell setting (like
> > reading the shell from /etc/passwd), it should be possible to set a
> > different shell for each user there and configure a "winbind default
> > shell" like /bin/false for the rest of the users.
> >
> > The english section of my brain seems a bit sleepy today. Did you get
> > my idea? And: is it any worth?
> >
> >         timbo
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/listinfo/samba
>
> --
> "Unless you try to do something beyond what you have already mastered,
> you will never grow." Ronald E. Osborn


More information about the samba mailing list