One way is as following:
put
include = /usr/local/lib/smb.d/usr.%m
in your master smb.conf and for every PC with name %m create the above
file with
valid users = <your user name>
See smb.conf(5) about %m, include and valid users.
If file won't be found, the include line will simply be ignored, so some
of your PCs can be restricted and other not.
cheers
Guillermo Sansovic wrote:>
> Hi,
> I have set up a network of about 60 PC's running Windows 95 with a
Samba
> server running on Solaris. We have domain logons. Everything working
great.
>
> What I need to do now is to assign each PC to one user so that each user is
> only allowed to logon in his/her PC. I have read all the docs and lists I
> could find but only found a passing reference to doing this with preexec
but
> I couldn't make it work since preexec ignores the exit status of the
command
> it executes.
>
> I would appreciate any help, and if I have to resort to programming, some
> pointers on where to begin in the source.
>
> Thanks,
>
> Guillermo
--
===========================================================Andrej Borsenkow
Fax: +7 (095) 796 99 20
SNI ITS Moscow Tel: +7 (095) 796 99 24
NERV: borsenkow.msk E-Mail: borsenkow.msk@sni.de
============================================================