PT_CHOWN - Online Linux Manual PageSection : 5
Updated : 2003-03-21
Source : PTY Control
Note : GNU C Library
NAMEpt_chown − helper function for grantpt(3), changes ownship and permissions of pseudotty
SYNOPSIS/usr/lib/pt_chown
DESCRIPTIONpt_chown is the helper program for the 'grantpt' function. It is not intended to be run directly from the command line. pt_chown sets the owner, group and access permission of the slave pseudo terminal corresponding to the master pseudo terminal passed on file descriptor so that the pseudo terminal can be used by the calling process. This means programs like 'xterm' and 'screen' do not have to be setuid to get a pty. (There may be other reasons why they need privileges.) If you are using a 2.1 or newer Linux kernel with the 'devptsfs' or `devfs' filesystems providing pty slaves, you don't need this program; otherwise you do. The source for 'pt_chown' is in 'login/programs/pt_chown.c'. It is installed setuid root.
OPTIONSpt_chown takes no arguments.
RETURN CODESpt_chown has the following return codes: EBADF The file descriptor is not a valid master pseudo terminal. EINVAL The device is not a character device. EACCES Can't change device owner and group or device permissions. 0 The owner, group, and permissions were successfully changed.
BUGSReport bugs using the glibcbug script to bugs@gnu.org
SEE ALSOgrantpt(3) 0
Johanes Gumabo
Data Size : 5,649 byte
man-pt_chown.5Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 183,791
Visitor ID : :
Visitor IP : 18.119.124.24 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.