⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newgrp.1

📁 pwdutils是一套密码管理工具
💻 1
字号:
.\" -*- nroff -*-.\" Copyright (C) 2004 Thorsten Kukuk.\" Author: Thorsten Kukuk <kukuk@suse.de>.\".\" This program is free software; you can redistribute it and/or modify.\" it under the terms of the GNU General Public License version 2 as.\" published by the Free Software Foundation..\".\" This program is distributed in the hope that it will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the.\" GNU General Public License for more details..\".\" You should have received a copy of the GNU General Public License.\" along with this program; if not, write to the Free Software Foundation,.\" Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA..\".TH newgrp 1 "April 2004" "pwdutils".SH NAMEnewgrp \-  change effective group IDsg \- execute command with different group ID.SH SYNOPSIS.B newgrp[\fB-l\fR] [\fIgroup\fR].br.B sg\fIgroup\fR \fB-c \fIcommand\fR.SH DESCRIPTIONThe \fBnewgrp\fR command changes the user's real and effetive group IDby replacing the current shell with a new shell. A new shell is launchedeven if an error occours..PPA password is requested if the group has a password and the user is notlisted in the group file as being a member of that group. The passwordcan be changed with the.BR gpasswd (1)command..PPIf the new effective group ID is not in the supplementary group list,\fBnewgrp\fR will add the new group ID to the supplementary list, too..PPWith no operands and options, \fBnewgrp\fR changes the user's group IDs(real and effective) back to the group specified in password and groupfile..PPThe \fBsg\fR command works like the \fBnewgrp\fR command, except thatit executes the given command with \fB/bin/sh\fR and upon exit thegroup ID of the current shell is not changed..SH OPTIONS.TP\fB\-l\fR, \fB\-\-login\fRreinitialize the environment as if the user logged in..TP\fB\-\-help\fRPrint a help list..TP\fB\-u\fR, \fB\-\-usage\fRPrint a short usage message..TP\fB\-v\fR, \fB\-\-version\fRPrint program version..SH "SEE ALSO".BR gpasswd (1),.BR group (5),.BR passwd (1),.BR passwd (5),.BR su (1).SH AUTHORThorsten Kukuk <kukuk@suse.de>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -