Create hidden users under Mac

Source: Internet
Author: User

View Help: Man DSCL
Show all users: DSCL. List/users
Show all groups: sudo dscl. -list/groups groupmembership
Add user to Group:sudo DSCL. -append/groups/groupname groupmembership username
Remove user from Group:
sudo dscl. -delete/groups/groupname groupmembership username
View ID
DSCL. -read/users/root Primarygroupid
DSCL. -list/users UniqueID
DSCL. -list/groups Primarygroupid
Create a hidden user
sudo dscl. Create/groups/nginx Primarygroupid 390
sudo dscl. Create/users/nginx UniqueID 390
sudo dscl. Create/users/nginx Primarygroupid 390
sudo dscl. Create/users/nginx Usershell/bin/false
sudo dscl. Create/users/nginx realname Nginx
sudo dscl. Create/users/nginx Nfshomedirectory/dev/null
sudo dscl. Create/groups/nginx groupmembership Nginx
Http://www.ideawu.net/blog/archives/835.html
Http://www.l68.net/515.html
Http://www.cnblogs.com/whyandinside/archive/2012/04/21/2461483.html

Create hidden users under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.