Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use linux's newgrp command to log in to another group

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about logging into another group using linux's newgrp command. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

The English full name of the newgrp command class is "new group". This command is similar to the login instruction when it logs in to the system again with the same account number and another group name. To use the newgrp command to switch groups, you must be a user of the group, otherwise you will not be able to log in to the specified group.

If a single user belongs to multiple groups at the same time, it is necessary to make use of the settings of alternate users. If you do not specify a group name, the newgrp command logs in to the default group for that user name.

Syntax format: newgrp [parameters]

Common parameters:

-- help online help-- vesion displays version information

Reference example

Switch the group to the linuxcool group:

[root@linuxcool ~] # newgrp linuxcool about using the newgrp command of linux to log in to another group, I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report