Skip to content

Instantly share code, notes, and snippets.

@jollyjoester
Last active August 29, 2015 14:03
Show Gist options
  • Save jollyjoester/e6140e162f5d6a3f55c6 to your computer and use it in GitHub Desktop.
Save jollyjoester/e6140e162f5d6a3f55c6 to your computer and use it in GitHub Desktop.
Simple setting CentOS6.5 on Docker
#yum更新
yum -y update
#vim install
yum -y install vim-enhanced
#ssh install
yum -y install openssh-server
/etc/init.d/sshd start
#httpd install
yum -y install httpd
#エイリアス適用
vim /etc/profile
#最終行に下記追記
alias vi='vim'
alias ll='ls -laG'
#ユーザー作成
useradd hoge -G wheel
passwd hoge
#以下の様に怒られた
#Changing password for user hoge.
#New password:
#/usr/share/cracklib/pw_dict.pwd: No such file or directory
#PWOpen: No such file or directory
#cracklib-dictsを入れ直す
rpm -e cracklib-dicts --nodeps
yum -y install cracklib-dicts
#再度パスワード変更、ここではhoge1234と設定
passwd hoge
#sudoが入ってないとき
yum -y install sudo
visudo
#下記のコメント消す&ユーザー追加(もしくはユーザーをグループに加える?)
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
su hoge
@jollyjoester
Copy link
Author

update

@jollyjoester
Copy link
Author

update

@jollyjoester
Copy link
Author

update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment