Created
November 2, 2017 03:31
-
-
Save mavisland/f3c6b246f1be618e7b63406ff3fe244d to your computer and use it in GitHub Desktop.
Temel Linux Komutları
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Kullanıcıyı www-data grubuna tanımlamak. | |
sudo usermod -a -G www-data $USER | |
# Dizin sahipliğini değiştirmek | |
sudo chown -R root:www-data /var/www | |
# Yazma izni vermek | |
sudo chmod -R g+w /var/www/ | |
# Dizinlerin kullanıcı ve gruplarını görüntülemek | |
ls -l | |
# Admin yetkisiyle giriş yapmak | |
sudo su | |
# Kullanıcı’ya geçiş yapmak | |
su tanju | |
# Sudoers yetkilendirme ayarlarını açar. | |
sudo visudo | |
# Yeni kullanıcıya sudoers’de sudo yetkileri veriyoruz. | |
tanju ALL=(ALL:ALL) ALL | |
# Kullanıcı silmek | |
deluser newuser | |
# www-data grubuna ait bir kullanıcı eklemek | |
sudo adduser www-data site1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment