Tips Linux / FreeBSD

24/02/2015 webadmin 0

การค้นหาไฟล์ใน Linux ด้วยคำสั่ง find find / -name test01.txt [enter] < ค้นหาไฟล์ test01.txt จากรากไดเร็กทอรี find /etc -name passwd [enter] < ค้นหาไฟล์ passwd จากไดเร็กทอรี /etc find /etc [อ่านต่อ]

Moving User Accounts (FREEBSD)

23/02/2015 webadmin 0

Move user entries from the following old files: /etc/passwd /etc/group /etc/master.passwd Then run the following command to rebuild the password database: pwd_mkdb -p /etc/master.passwd

Mysql กับปัญหา Old Password

20/09/2013 webadmin 0

แก้ไข หรือเพิ่มเติม /etc/my.cnf old_passwords=1 จากนั้น ให้ปรับ Password โดยการเข้า Mysql mysql -uYourRootUsername -pYourRootPassword SET SESSION old_passwords=0; UPDATE mysql.user SET Password = PASSWORD(‘my_password’) WHERE user = ‘my_db_username’; [อ่านต่อ]