Unfortunately, there are extraordinarily few effects that last past a short rest. There are extraordinarily few effects for a PC. However, the magic of 4e is that monsters do not use the same magic items, skills, or plot macguffins as a PC.

The most effective PC MacGuffin is the Executioner Assassin's Carrion Crawler Brain Juice. This Executioner only poison that takes the place of one of their daily powers:


  Power (Consumable * Poison): Minor Action. You apply the poison to a single handheld object. Within the next hour, the first creature other than you to hold or wear the object for more than 1 minute is immobilized until the end of its next extended rest.


While this doesn't prevent teleportation, a Dimensional Anchor neatly solves that problem: Property: Any creature within 10 squares of this statue can’t teleport.

The act of applying this poison and the use of this statue, while effective and almost impossible for PCs to combat, completely destroys their agency. It is far more effective to get them in a "teleportation trap" (some sort of handwavy trap/almost-completed ritual) or equivalent instant transport that doesn't involve 

"you put on your armor like normal, right?"

"Yeah...?"

"Okay, well, you're immobilized until you sleep next, which can't happen for another 16 hours."

A teleportation trap accomplishes the same thing, but doesn't actively interfere with the player's character's interactions with themselves and their own mental models.

What magic items are there to capture or restrain someone?
I already know that I need to tune /etc/sudoers file but I would like to see full information and also a solution that would not require me to use vi editor.

Update: never, ever try to edit the file with something else than visudo.
