2014-06-17

パッケージのアップデート

Fedora,CentOS とか
# yum update パッケージ名

Debian,Ubuntu とか
# apt-get install パッケージ名



OpenSSLをアップデートするには

# yum update OpenSSL

# apt-get install OpenSSL

2014-06-09

パッケージ依存関係の調査コマンド

apt-cache -i depends パッケージ名

rpm -q --whatrequires パッケージ名


例:opensslの依存関係を調べる

apt-cache -i depends openssl

rpm -q --whatrequires openssl

sftp専用ユーザー

sftp専用ユーザーはsshでもログインできる必要があるので、ftp専用ユーザーのように、-s /sbin/nologin としない。 # useradd sftpuser # passwd sftpuser New password: Retype new passwo...