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

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

コメントを残す

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

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)