Sign up

This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Thêm một user hiện có vào một group

Một số server do chế độ bảo mật nên người quản trị thường không cho phép mọi user có thể SSH vào hệ thống dù trong Control Panel đã kích hoạt. Thường thì trong FreeBSD người ta hay cho nhóm wheel có thể login qua SSH.

Task: Add existing user to group

You would like to add existing user tom to secondary group called ftpusers. Type the command as follows:
# pw usermod tom -G ftpusers

You can add tom to secondary group ftpuser and wwwusers:
# pw usermod tom -G ftpusers,wwwusers

-G option Set the default groups in which new users are granted membership. This is a separate set of groups from the primary group, and you should avoid nominating the same group as both primary and extra groups.

Task: Add a new user to group

Add new user jerry to system and to secondary group sales:
# pw useradd jerry -G sales
# passwd jerry

First command adds user jerry to secondary group called sales. Second commands set a password for jerry.

Viết bởi freebsd, 23 May 2007 18:21 | Cài đặt & Cấu hình | Góp ý (1) | Đường dẫn cố định | Trackbacks (0) | Bản inBản in

góp ý
| freebsd | 04/06/2007 08:42 | Trả lời

Tạo group bằng lệnh pw addgroup groupname

Thêm góp ý
Thêm góp ý
(http://tenban.vnweblogs.com)
 authimage (Hãy nhập dãy số này vào ô bên cạnh)
Powered by vnWeblogs
Valid XHTML 1.0 Strict - Valid CSS