Cash machine, ATM and the like comprising: - a safe defining an inner volume, - a conveying device, suitable to convey banknotes and valuables from said inner volume to the outside and / or vice versa, - an opening of said safe, suitable to allow the passage of said conveying device, - a security device suitable to close at least partially said opening, and characterised in that - said security device comprises a first barrier for said opening, said first barrier comprising: - a first portion consisting of a barrier movable with respect to said opening, suitable to partially close said opening and comprising at least one auxiliary opening, - at least one auxiliary portion consisting of a barrier movable with respect to said opening and to said first portion and suitable to close at least one of said auxiliary opening, - wherein said first barrier is available in: - an open configuration, in which said first barrier keeps said opening open for the passage of said conveying device, when said conveying device passes through said opening, - a closed configuration, in which said first barrier closes totally, or at least by 70%, said opening, when said conveying device is in the inner volume, - a conveying configuration, in which said opening, is only partially closed, and an auxiliary opening (4a, 4b) is kept open, when said conveying device is in the outside. - a safe defining an inner volume, - a conveying device, suitable to convey banknotes and valuables from said inner volume to the outside and / or vice versa, - an opening of said safe, suitable to allow the passage of said conveying device, - a security device suitable to close at least partially said opening, - said security device comprises a first barrier for said opening, said first barrier comprising: - a first portion consisting of a barrier movable with respect to said opening, suitable to partially close said opening and comprising at least one auxiliary opening, - at least one auxiliary portion consisting of a barrier movable with respect to said opening and to said first portion and suitable to close at least one of said auxiliary opening, - a first portion consisting of a barrier movable with respect to said opening, suitable to partially close said opening and comprising at least one auxiliary opening, - at least one auxiliary portion consisting of a barrier movable with respect to said opening and to said first portion and suitable to close at least one of said auxiliary opening, - wherein said first barrier is available in: - an open configuration, in which said first barrier keeps said opening open for the passage of said conveying device, when said conveying device passes through said opening, - a closed configuration, in which said first barrier closes totally, or at least by 70%, said opening, when said conveying device is in the inner volume, - a conveying configuration, in which said opening, is only partially closed, and an auxiliary opening (4a, 4b) is kept open, when said conveying device is in the outside. - an open configuration, in which said first barrier keeps said opening open for the passage of said conveying device, when said conveying device passes through said opening, - a closed configuration, in which said first barrier closes totally, or at least by 70%, said opening, when said conveying device is in the inner volume, - a conveying configuration, in which said opening, is only partially closed, and an auxiliary opening (4a, 4b) is kept open, when said conveying device is in the outside.