LoginSignup
0
1

More than 5 years have passed since last update.

centos にて apacheユーザーになる方法

Last updated at Posted at 2017-02-14

コマンド

mkdir -m 700 /home/apache
chown apache:apache /home/apache
mkdir -m 700 /home/apache/.ssh
chown apache:apache /home/apache/.ssh
usermod -d /home/apache -s /bin/bash apache

apacheを止めてからユーザー変更
service httpd stop
su apache
service httpd start

※backlogにapache専用のユーザを作成し、ssh登録をする。

git remote -v で接続方法がhttpsにっている時は、
.git/config
のurl情報をssh方式に書き換える.

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1