サーバのユーザ回り覚え書き

FTPサーバ準備するにあたりファイルリスト時とユーザー情報表示の際の権限の順番がごっちゃになっていて、
どうにも整理つかないので改めて調べてみた。

千里の道も一歩からじゃ。

ユーザーの追加
http://autantlevent.sakura.ne.jp/memo/usergroup.shtm
グループも合わせて追加が望ましい

ユーザーの所属グループの変更
usermod -g group名 ユーザー名

書式など
http://kazmax.zpp.jp/linux_beginner/usermod.html

ユーザーの情報確認
ex)
testuserの情報確認
getent passwd | grep testuser

結果はこんな感じ。

testuser:*:2000:2000:testuser:/home/testuser:/bin/bash

ユーザー名:パスワード(xで表示):uid(ユーザーID):gid(グループID):コメントなど:ホームディレクトリ:シェル

ファイルリストの確認
ls -l
drwxrwxr-x 6 apache apache 4096 Oct 8 05:39 hogehoge

アクセス権、リンク数、所有者名、グループ名、サイズ、最終更新日時、名前
http://codezine.jp/unixdic/w/ls

コメントを残す

メールアドレスが公開されることはありません。 ※ が付いている欄は必須項目です

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.