login-giveown-controlling-terminal 1 user commands nosh
login-giveown-controlling-terminal give ownership of the controlling terminal and chain
`login-giveown-controlling-terminal` next-prog

## Description

`login-giveown-controlling-terminal` is a chain-loading utility that grants ownership of the terminal device named by the value of the `TTY` environment variable to the UID in the value of the `UID` environment variable and then chain loads to next-prog with the execvp 3 function. It also sets permissions of the terminal device to 0600.

next-prog may contain its own command line options, which `login-giveown-controlling-terminal` will ignore.

## See Also

- vc-get-terminal 1

- grantpt 3

## Author

Jonathan de Boyne Pollard