[Samba] %M resolve to IP (only)

Robert Smol eagtstools at dhl.com
Mon Mar 12 08:44:39 GMT 2007


I would like to have [backup] service hosted on samba machine, resolving
each client to different directory (/srv/backup/prod001,
or /srv/bacjup/prod001.domain.com). Is this possible? By reading man to
smb.conf I see there is %M variable.

I have defined following service

## backup share
   path = /srv/backups/machines/%M
   read only = No
   public = no
   writable = yes
   printable = no

Still samba resolve this to /srv/backups/machines/

Reverse DNS is working fine on machine:

node001 ~ # host domain name pointer dmz001.domain.com.

Am I doing something wrong?

Best regards

Robert Smol

More information about the samba mailing list