助け合いフォーラム

LinuC

LinuC Lv2-202(Ver10.0)
問題ID : 22583
問題を開く
Sambaユーザuser1を削除するためには次のうちどのコマンドを使用すればよいか。(全て選択)

この問題はプレミアムコンテンツです。

上に戻る

正解に誤りがある

投稿日 2026/06/01

この問題の正解に pdbedit -x user1 がありますが、参考URLの www.samba.org manpages「pdbedit(8)」 を参照すると、
-x の説明には 、

This option causes pdbedit to delete an account from the database. It needs a username specified with the -u switch.

-u の説明には 、

This option specifies the username to be used for the operation requested (listing, adding, removing). It is required in add, remove and modify operations and optional in list operations.

とあります。したがってpdbeditを用いたユーザ削除のコマンドは
pdbedit -x user1
ではなく
pdbedit -x -u user1
になるのではないでしょうか。確認をお願いします。

スタッフからの返信

s staff_khira0410

2026/06/02 19:03

snowingbee さん ご指摘の点を修正いたしました。 ご報告、誠にありがとうございました。

この投稿に対して返信しませんか?