Samba4 AD DC : ユーザー管理の基本操作2015/02/17 |
|
Samba4 Active Directory Domain Controller でのユーザー管理の基本操作です。
|
|
| [1] | ユーザーの一覧を表示する。 |
|
[root@smb ~]# samba-tool user list Administrator krbtgt redhat Guest cent |
| [2] | ユーザーを新規追加する。 |
|
[root@smb ~]#
samba-tool user add cent New Password: # パスワード設定 Retype Password: User 'cent' created successfully # samba-tool user add --help で多数あるオプションを確認可
|
| [3] | ユーザーを削除する。 |
|
[root@smb ~]# samba-tool user delete cent Deleted user cent |
| [4] | ユーザーのパスワードを再設定する。 |
|
[root@smb ~]# samba-tool user setpassword cent New Password: Changed password OK |
| [5] | ユーザーアカウントの有効期限を設定する。 |
|
[root@smb ~]# samba-tool user setexpiry cent --days=7 Expiry for user 'cent' set to 7 days. |
| [6] | ユーザーアカウントを無効/有効にする。 |
|
[root@smb ~]#
[root@smb ~]# samba-tool user disable cent
samba-tool user enable cent Enabled user 'cent' |
| [7] | グループの一覧を表示する。 |
|
[root@smb ~]# samba-tool group list Allowed RODC Password Replication Group Enterprise Read-Only Domain Controllers Denied RODC Password Replication Group ... ... DnsAdmins Guests Users |
| [8] | グループのメンバーの一覧を表示する。 |
|
[root@smb ~]# samba-tool group listmembers "Domain Users" redhat Administrator krbtgt cent |
| [9] | グループを新規追加する。 |
|
[root@smb ~]#
samba-tool group add ServerWorld Added group ServerWorld # samba-tool group add --help で多数あるオプションを確認可
|
| [10] | グループを削除する。 |
|
[root@smb ~]# samba-tool group delete ServerWorld Deleted group ServerWorld |
| [11] | グループにメンバーを追加/削除する。 |
|
[root@smb ~]#
[root@smb ~]# samba-tool group addmembers ServerWorld cent Added members to group ServerWorld samba-tool group removemembers ServerWorld cent Removed members from group ServerWorld |
| Sponsored Link |
|
|