Den nye lensmanden (1926)

The traveler Franz arrives in a mountain valley, where they are awaiting the new local sheriff. he decides to pretend he is the man they are waiting for.