There is not much information in what you say, so I will guess what you are asking. If the explanation below is not what you are looking for, then explain what you want in many more words:
Swerdna is brilliant on the subject of samba and very active on this forum, so it’s fairly safe to accept any articles he’s written on the subject to be probably as good as any you’ll find
It looks to me though as if you’re trying to limit access to samba from a specific computer whereas the setting you’re using is for a user comp1 rather than a machine
Not sure if you’re aware of this but the usual way to add a samba user is to run smbpasswd as root, like this
smbpasswd -a username
Do that in a console as root and it will then ask you to set and comfirm a password for the username you specified