4 ptyas is a small su/sudo replacement which prevents TTY hijacking by starting
5 a new session with a separate terminal and proxying all input. It's licensed
6 under the GPL 3 or later.
8 It must be run as root and changes the owner to the specified user name,
9 permanently dropping all root permissions.
11 For details about the possible attacks see
12 https://ruderich.org/simon/notes/su-sudo-from-root-tty-hijacking
19 - UNIX 98 pseudoterminals
25 ptyas <user> [<command...>]
27 If no command is given, the user's shell is started. Otherwise the command is
28 executed (which is useful if the user's shell is disabled).
34 If you find any bugs not mentioned in this document please report them to
35 <simon@ruderich.org> with ptyas in the subject.
41 Written by Simon Ruderich <simon@ruderich.org>.
47 ptyas is licensed under GPL version 3 or later.
49 Copyright (C) 2016-2017 Simon Ruderich
51 This program is free software: you can redistribute it and/or modify
52 it under the terms of the GNU General Public License as published by
53 the Free Software Foundation, either version 3 of the License, or
54 (at your option) any later version.
56 This program is distributed in the hope that it will be useful,
57 but WITHOUT ANY WARRANTY; without even the implied warranty of
58 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
59 GNU General Public License for more details.
61 You should have received a copy of the GNU General Public License
62 along with this program. If not, see <http://www.gnu.org/licenses/>.