[Samba] Logon times
abartlet at pcug.org.au
Sun Feb 10 12:56:36 GMT 2002
Bill Moran wrote:
> Stan S. wrote:
> > Good evening,
> > In Samba is there anyway to control logon hours and maximum times in use? I
> > am using Samba 2.2.3a as a PDC on Red Hat 7.2 with all current errata in
> > place.
> > Any suggestions?
> To my knowledge, there's no built-in way for samba to do this.
> However, it seems rather trivial to make a cron job that would do a
> "smbpasswd -d" and "smbpasswd -e" at the appropriate times.
> Max usage time might be a little more difficult.
The easiest way would be to configure pam_time, and set 'obey pam
restrictins = yes' in your smb.conf. Then Samba will honer the PAM
configuration in the same SSH etc does.
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
More information about the samba