mysql> GRANT ALL PRIVILEGES ON *.* TO 'kullaniciadi'@'%' IDENTIFIED BY 'sifre';
Query OK, 0 rows affected (0.04 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
@'%' ifadesi herhangi bir ip adresinden bağlanılabileceğini ifade eder,
eğer sadece belirli bir ip adresine izin verilmek isteniyorsa % yerine ip adresi girilmelidir.
3 Mayıs 2015 Pazar
Linux: kullanıcı işlemleri
kullanıcı ekleme
--- kullanıcı ekleme işlemi root user'ında iken yapılmalı
[root@Ayse ~]# useradd -m testuser
[root@Ayse ~]# ls /home/
lost+found pythonuser test testuser
[root@Ayse ~]# id testuser
uid=504(testuser) gid=504(testuser) groups=504(testuser)
kullanıcı şifre atama
# passwd <testuser>
herhangi bir kullanıcı belirtmeden passwd komutu çalıştırılırsa aktif olan kullanıcının şifresi değiştirilir
mevcut kullanıcı bilgileri görüntüleme
[root@Ayse ~]# cat /etc/passwd
mevcut kullanıcı bilgileri düzenleme:
# vipw
29 Nisan 2015 Çarşamba
Linux: whois command line
whois searches Whois servers for the object on the command line.
The host to query is taken from a global configuration file, a configuration file specified on the command
line, or selected directly on the command line.
[root@ayse~]# whois 1.1.1.1
[Querying whois.arin.net]
[Redirected to whois.apnic.net]
[Querying whois.apnic.net]
[whois.apnic.net]
% [whois.apnic.net]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
% Information related to '1.1.1.0 - 1.1.1.255'
...
[root@ayse~]# whois wikipedia.org
...
The host to query is taken from a global configuration file, a configuration file specified on the command
line, or selected directly on the command line.
[root@ayse~]# whois 1.1.1.1
[Querying whois.arin.net]
[Redirected to whois.apnic.net]
[Querying whois.apnic.net]
[whois.apnic.net]
% [whois.apnic.net]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
% Information related to '1.1.1.0 - 1.1.1.255'
...
[root@ayse~]# whois wikipedia.org
...
Linux: perform Manual DNS Queries with dig tool
dig (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s) that were queried. Most DNS administrators use dig to troubleshoot DNS problems because of its flexibility, ease of use and clarity of output. Other lookup tools tend to have less functionality than dig.
[root@ayse ~]# dig +short NS trakya.edu.tr @8.8.8.8
tubimdc.trakya.edu.tr.
tubim.trakya.edu.tr.
[root@ayse ~]# dig +short A www.trakya.edu.tr @tubimdc.trakya.edu.tr
193.255.140.50
[root@ayse~]# dig +short MX trakya.edu.tr @tubimdc.trakya.edu.tr
0 mail.trakya.edu.tr.
[root@ayse~]# dig +short A mail.trakya.edu.tr @tubimdc.trakya.edu.tr
193.255.140.16
[root@ayse~]#
Kaydol:
Kayıtlar (Atom)