LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4736|回复: 5

我的MacBook找不到gpasswd命令,/bin,/sbin/,/usr/sbin 都没有。请教。

[复制链接]
发表于 2008-8-5 12:28:26 | 显示全部楼层 |阅读模式
是不是Mac下不用这个命令的?我是10.5的系统。
如果不用这个命令,怎么添加我所属的组?直接编辑 /etc/groups?
谢谢。
发表于 2008-8-9 19:51:25 | 显示全部楼层
安装MacPorts或Fink。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-8-12 02:55:38 | 显示全部楼层
Post by pappplus;1884306
安装MacPorts或Fink。
谢谢,不过,这两个貌似都是把BSD或者Unix的软件移植到Mac的项目,那么,gpasswd这么基本的东西它们会有吗?
回复 支持 反对

使用道具 举报

发表于 2008-9-26 21:23:04 | 显示全部楼层
我不太懂这个,呵呵
回复 支持 反对

使用道具 举报

发表于 2008-9-27 22:23:23 | 显示全部楼层
cited by "Running Mac OS X Tiger"
Traditional Unix systems typically store their user and group information in the /etc/passwd and /etc/group files—and if you go looking, you can find these files on your Mac. However, after Mac OS X boots, it does not use these files. Instead, it uses Open Directory (discussed in Chapter 7) to store its user and group information. This allows the system to work equally well in home setups where there is only one machine and in enterprise environments where there might be hundreds of machines that use a central server for authentication.

While there are many ways to manage users on Mac OS X, the simplest and most direct by far is to use the Accounts preference panel.
Many hardcore Unix users are used to being able to manage users from the command line using tools like useradd,usermod,userdel,groupadd,groupmod,groupdel,gpasswd,grpconv, and grpunconv. Unfortunately, these commands don't exist on Mac OS X. The only tool of this kind on Mac OS X is the passwd command, which is used to change a user's password.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-28 20:53:08 | 显示全部楼层
Post by chgtg;1887893
cited by "Running Mac OS X Tiger"
感谢Chgtg
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表