D
D
Denis Verbin2015-02-25 15:22:42
linux
Denis Verbin, 2015-02-25 15:22:42

How to set up dual authorization in samba by IP and Login?

Hi, please tell me, does anyone know how to configure authorization in the Samba ball by login if the client does not fall under the rule "hosts allow = 10.0.0.9"

[test]
    comment = BACKUP
    path = /home/test
    browsable = yes
    guest ok = no
    read only = no
    create mask = 0755
    valid users = test
    hosts allow = 10.0.0.9

For authorization by IP to work - you need to do "guest ok = yes", respectively, authorization by login is disabled, if "guest ok = no" - only authorization by login regardless of IP.
As a result, I need to let a certain IP without authorization, and all the rest with a password

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-02-25
@rez0n

Isn't it easier to create two balls (BACKUP and .BACKUP for example)? One for a specific IP and one for everyone else? And steer right at the level of the balls as you want

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question