[Samba] %M resolve to IP (only)

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


Hi,

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
[backup]
   path = /srv/backups/machines/%M
   read only = No
   public = no
   writable = yes
   printable = no


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

Reverse DNS is working fine on machine:

node001 ~ # host 192.168.10.11
11.10.168.192.in-addr.arpa domain name pointer dmz001.domain.com.

Am I doing something wrong?

Best regards

Robert Smol




More information about the samba mailing list