Langsung ke konten utama

Postingan

Menampilkan postingan dengan label unix

Create SFTP Server

create directory sftp 1. mkdir /opt/sftp/ create new group 1. groupadd sftpgroup create sftp 1. edit /etc/ssh/sshd_config uncomment this line #Subsystem      sftp    /usr/libexec/openssh/sftp-server change to Subsystem       sftp internal-sftp create acl Match Group sftpgroup         ChrootDirectory /opt/sftp/         ForceCommand internal-sftp 2. reload ssh service sshd restart 3. create username useradd -g sftpgroup -d /user -s /sbin/nologin user 4. create directory for user mkdir -p /opt/sftp/user 5. create ownership for directory user to user # chown -Rf user:sftpgroup /opt/sftp/user Testing from other site # sftp user@1.2.3.4 user@1.2.3.4's password: Connected to 1.2.3.4. sftp> pwd Remote working directory: /user sftp> put anaconda-ks.cfg Uploading anaconda-ks.cfg to /user/anaconda-ks.cfg anaconda-ks.cfg           ...

change root password in solaris 10

it is a silly, i change my solaris root password, after that i forgot it. even though it simple, but it quite challenge to change it. well first of all, don't panic. all you have to do is, keep calm and relaxed. then prepare all what should be needed. ok here we are. 1. we need instalation cd. we need this because we have to go to single user mode 2. cable console. I need this, so i can console my sparc solaris, then get the serial command. 3. notebook. this is must, without this, i unable to conle the sparc 4. google. ask with this is more wise 5. sun keyboard. I need this, because i can interupt the server using OBP command. by pressing stop + A we reset the server ok after all we need, here is the step 1. press stop + a, then choose reset 2. after solaris reset, insert the instalation disk. (i use solaris 10, since my solaris was solaris10) 3. after that, do stop +a again, and when ok prompt shown up, boot from cdrom OK> boot cdrom -s wait for a while, until i...

Menambahkan disk SAN di solaris

untuk mengenalkan disk SAN di solaris 1. pake command cfgadm -la 2. kalo dah kedetek, push supaya bisa baca file /kernel/drv/sd.conf update_drv -f sd ...3. supaya nda perlu restart devfsadm -C 4. trus, cek dan beri label format 5. setelah di format buat file systemnya newfs /dev/dsk/c4t4d4s6 6. terakhir di mount mount -F /dev/dsk/c4t4d4s6 /data 7 selesai

Troubleshoot lokal cluster

Kemaren saya sempat mendapatkan musibah kecil. salah satu server saya yang menggunakan cluster mengalami musibah. Problemnya adalah, server tersebut sepertinya mengalami miss konfigurasi pada clusternya. akibatnya service pada aplikasi yang ada dalam cluster tersebut tidak jalan. Cukup panik juga bagaimana mengatasinya. Beruntung, ada rekan saya yang pernah punya pengalaman di cluster, akhirnya problem saya dapat teratasi. Troubleshoot ini dilakukan pada mesin solaris 9 dan veritas HA 4. memperbaiki problem cluster di server 1. cek cluster yang problem ada di server 2. setelah itu matikan ha # cd /opt/VRTSvcs/bin # ./hastop -local -force 3. cek list disk group #vxdg list NAME STATE ID rootdg enabled 1153919932.6.cluster02 svc1_dg enabled,cds 1159784070.42.cluster04 svc2_dg enabled,cds 1159784017.36.cluster04 svc3_dg enabled,cds 1159867861.63.cluster04 4. umount semua disk y...

Belajar Commandnya Mysql

Jika pada artikel yang sudah-sudah, kebanyakan saya membahas, bagaimana menginstall dari source, maka pada tulisan kali ini , saya ingin membahas mengenai bagaimana menggunakan command-command di mysql. Sebenarnya, sudah ada management mysql via web, namun kadangkala, menggunakan command juga powerfull. Untuk Tulisan ini, isinya akan saya coba saya update. artinya, jika ada command lain yang baru saya ketahui, maka command itu akan saya tulis di sini (semoga). ok , ini beberapa command yang baru saya pelajari 1. create user - grant all on dbapp.* to 'app'@'localhost' identified by 'password'; arti : command ini akan mengupdate permission database untuk database yang bernama dbapp pada user app, dan membuatkan passwordnya yaitu password. 2. delete permission - revoke all privileges on dbapp.* from 'app'@'localhost'; perintah ini tidak menghapus user, tapi akan menghilangkan hak akses user pada suatu database. pada contoh di atas, user app dihapus ...