Alceu Rodrigues de Freitas Jr.
2002-Nov-11 12:06 UTC
[Samba] making Samba works together with PAM
Ok fellows, This is my last try. Please, anybody tell me if something is missing on this list! I need to setup on a Linux + Samba (PDC) to restrict just one login per ID (not allow two logins with same id).So: 1 - edit /etc/pam.d/samba -> chaging session line with session required /lib/security/pam_limits.so 2 - in /etc/security/limits.conf: * - maxlogins 1 3 - in smb.conf: obey pam restrictions = yes utmp = yes 4 - compile Samba --with-utmp And the last question: Samba provided by RedHat 7.3(valhalla) as RPM package has the --with-utmp option compiled, or I must download the source code of 2.2.6 to get this feature? Thank you very much, ====Alceu Rodrigues de Freitas Junior -------------------------------------- glasswalk3r@yahoo.com.br http://www.imortais.cjb.net -- Hell is empty and all the devils are here. -- Wm. Shakespeare, "The Tempest" _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas f?ceis de usar, espa?o de sobra e acess?rios. http://br.geocities.yahoo.com/
If I were you I'd just try it. Then I'd probably find out if the list is complete. :) "Alceu Rodrigues de Freitas Jr." wrote:> > Ok fellows, > > This is my last try. Please, anybody tell me if > something is missing on this list! > > I need to setup on a Linux + Samba (PDC) to restrict > just one login per ID (not allow two logins with same > id).So: > > 1 - edit /etc/pam.d/samba -> chaging session line with > session required /lib/security/pam_limits.so > > 2 - in /etc/security/limits.conf: > * - maxlogins 1 > > 3 - in smb.conf: > obey pam restrictions = yes > utmp = yes > > 4 - compile Samba --with-utmp > > And the last question: Samba provided by RedHat > 7.3(valhalla) as RPM package has the --with-utmp > option compiled, or I must download the source code of > 2.2.6 to get this feature? > > Thank you very much, > > ====> Alceu Rodrigues de Freitas Junior > -------------------------------------- > glasswalk3r@yahoo.com.br > http://www.imortais.cjb.net > -- > Hell is empty and all the devils are here. > -- Wm. Shakespeare, "The Tempest" > > _______________________________________________________________________ > Yahoo! GeoCities > Tudo para criar o seu site: ferramentas f?ceis de usar, espa?o de sobra e acess?rios. > http://br.geocities.yahoo.com/ > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
daniel.jarboe@custserv.com
2002-Nov-12 14:33 UTC
[Samba] making Samba works together with PAM
>>And the last question: Samba provided by RedHat >>7.3(valhalla) as RPM package has the --with-utmp >>option compiled, or I must download the source code of >>2.2.6 to get this feature? >> >>Thank you very much, >> >>====>>Alceu Rodrigues de Freitas JuniorYes, in the RH samba rpm, samba was configured/compiled --with-utmp CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ --prefix=%{prefix} \ --localstatedir=/var \ --with-configdir=/etc/samba \ --with-privatedir=/etc/samba \ --with-codepagedir=/etc/codepages \ --with-fhs \ --with-quotas \ --with-msdfs \ --with-smbmount \ --with-pam \ --with-pam_smbpass \ --with-syslog \ --with-utmp \ --with-sambabook=%{prefix}/share/swat/using_samba \ --with-swatdir=%{prefix}/share/swat \ --with-libsmbclient