|
|
1.1 ! root 1: .TH SU 8 ! 2: .CT 1 sa_nonmortals secur ! 3: .SH NAME ! 4: su, setlog \- substitute userid temporarily, become super-user ! 5: .SH SYNOPSIS ! 6: .B /etc/su ! 7: [ ! 8: .I user ! 9: ] ! 10: .PP ! 11: .B /etc/setlog ! 12: .I logname ! 13: .I command ... ! 14: .SH DESCRIPTION ! 15: .I Su ! 16: changes the userid to that of ! 17: .I user ! 18: (root by default) ! 19: with groupid and login shell determined from ! 20: the password file. ! 21: If the current userid is not the super-user, ! 22: the password for the new user is demanded. ! 23: The userid stays in force until the new shell exits. ! 24: .PP ! 25: The current directory and environment ! 26: are unchanged unless the new userid is super-user, ! 27: in which case the environment variables ! 28: .B PS1 ! 29: and ! 30: .BR PATH , ! 31: if present, are set to standard values ! 32: (white space and ! 33: .BR /bin:/usr/bin:/etc ). ! 34: .PP ! 35: .I Setlog ! 36: executes the specified ! 37: .I command ! 38: with login name ! 39: .IR logname . ! 40: The environment is otherwise unchanged; ! 41: in particular, ! 42: the userid is not set. ! 43: Only the super-user may use this command. ! 44: .SH "SEE ALSO" ! 45: .IR sh (1), ! 46: .IR getuid (2), ! 47: .IR passwd (5)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.