Wednesday, February 22, 2012

How to create user in UNIX

October 27, 2011

I stumbled upon this problem when I was helping my friend to setup Apache server on Red Hat. Let us learn a few things about UNIX user access first.

Access control list in UNIX was first introduced by Hewlett Packard (my current employer) via its product, HP-UX. User access control is defined as a list of permissions attached to an object. In our context here, an object is a user or a group of user. In UNIX, there are Groups and Users associated to one or more groups. As a Root user, we can assign permission to a Group.

But but, what is a ROOT???

Alright, Root is a group with absolute control to the system. Root is also a default user for a UNIX system. When you installed a UNIX-based operating system, they will automatically create a root user and you can use this user to create another user or perform any administrative tasks. Most of UNIX-based operating system nowadays is disabling their root user due to security concern. Example of UNIX-based operating system with root-disabled is Ubuntu. As a root user, you can modified system files, create user, adding group, etc. So, be absolute careful when dealing with root user.

Next is I want to show you how to create a group and user. To create a group is pretty simple. You just run this command:


trick utk elak gna localhost atau 127.0.0.1

Sblm tdo, aku nk bg tips dlu. kalo korang bwat sistem brasaskn web, msti korang kne testing kt local pc korang kn. slalunya kte gna localhost atau 127.0.0.1. tp arini aku nk bg trick utk mmbolehkn kte customizekn localhost tu. eg mcm peja.server.com ke, www.facebook.com ke. trick ni boleh jgk dgunakan utk steal password org laen.

snang je, first skali korang kne locate fail 'host'. biasanya fail host ni ada dlm folder windows/system32/drivers/etc/. dah jmpa fail tu, korang edit gna textpad or notepad or ape2 la yg ade. file ni sbnrnya mmbolehkn pc korang retrieve dns scara local sbb file ni akan drujuk oleh pc utk cari ip. kalu xjmpa dlm file ni, pc akan send request pd dns server.

mende ni agak bahaya sbb org boleh phishing mana2 website utk dptkn password korang. sbg contohnya:

Monday, May 17, 2010

Java EE Tutorial

Salam everyone..

Back to bloggin' eh.. so, long story short.. i landed a new job, still at tmn university and still a programmer but specifically as a java developer.. this job really open my eyes and really made me said: "i am still a novice programmer".. so, i set my mind back to zero and push my perspective to always learning and never stop.. then, i sold everything including my precious ps3 set, my ipod (want to buy new iphone 4g), and bought new ibanez guitar (not related)..

this 4 months (january to april 2010) is hard for me.. so, back to our topic.. right now, i am working with canang technology sdn bhd.. still young and green, but highly technical and organized.. salary still the same as before, but working hours is more flexible and suit for my lifestyle.. monday to friday (9am - 5.30pm).. so, i have more time to sleep.. :)

right now, i'm working with finance system for utm.. so far, i have learn't about ejb and struts.. on this moment, i'm trying hard to understand hibernate and spring framework.. maybe on next week, i will post simple tutorial on how to work with spring and hibernate.. spring and hibernate is really (really) powerful framework to develop java (enterprise) application. imagine, if u don't have to design database and just focus design on class.. no more messy sql statements.. no more



conn = DataSourceManager.getConnection();
Statement stmt = conn.prepareStatement();



just create a class and u ready to go.. but, don't forget with HSQL.. next week i will share all my knowledge on my post.. good day.. :)

Sunday, October 25, 2009

byknye keje

dah bangun lewat ni, tetiba aku rs risau. byk keje la pulak. ni la listing keje2 aku sementara aku masih ingat:

  1. Corrossion Assessment System
  2. MPOB E-Forecast
  3. F1-Payment
  4. CTSB
adoi.. cane aku nk handle ni. susah2 sgt terpaksa la aku blk kampung.. haha..

Welcome back..

Salam..

Dah lama xupdate blog ni.. aku ingt da delete dah. tgh check2 fb, ternampak link blog ni..
bukan xnk update tp aku bkn rajin sgt nk memblogging ni.. byk mende da brlaku since last aku update blog ni.. skarang da bekerjaya, bizi ngn keje n anak2 bini.. eh, aku ade anak bini ke? hmm.. aktiviti skarang xbyk da.. so, ini la sdikit sbyk perubahan aku:


  1. Dari xbox ke gitar
  2. Dari kurus ke kurus cket.
  3. Dari byk makan ke kurang mkn.
  4. Dari belajar ke bekerja.
  5. etc.

Kalu nk citer mmg bykla. smpai komik wira tunggal scan aku da nk complete aku kumpul. Hmm, skarang aku da duk kt luar. Sewa rumah kt taman u. rumah teres biasa je, xde gempak sgt. lantai simen, bilik air kecik. tapi alhamdulillah dpt jgk tempat utk berteduh. ni pn aku baru lepas main garena. layan jgkla smpai pukul5 pn xtdo2 lg. keje byk xbwat2, main game boleh aje.

rasa mcm nk citer pnjang tp xguna jgk kot. nk tdo da. aku akan cuba la rajinkan diri tulis2 blog.. atleast yang mmbina la.. kongsi2 ilmu yg xseberapa ni ke.. sblm blah aku nk kutuk maxis bb dlu.

maxis can kiss my sweet metal a**! makan duit haram! ke nerakalah tokey ko! perkhidmatan cam bangang! s*al!


ok, puas hati aku..

Gute Nacht!

Friday, June 19, 2009

Divine Master and kotak X cincin merah

Tiga mende ni yang brlegar dlm otak aku ari ni.. hadoi la..

i - Divine Master - Merpati Putih
dua tiga hari ni asek dgr divine master je.. dua lagu yang best namely merpati putih n disampingmu.. hehe.. layan jugak la band ni walaupun aku xtau band ni band malaysia ke indonesia..

Merpati Putih

Kau merpati putih terbang di awanan
Ku ingin ikut bersamamu di sana
Sucinya hatimu seputih warnamu
Lembutnya sifatmu indahnya rupamu

Berkali ku tunggu utk melihatmu
di tempat yg engkau singgahi selalu
sayangnya diriku tak sesuci kamu
ku bisa memandang tak dekat padamu

Sedar diri ini sampai terhentinya mati
sampai masa ku kan jatuh ke bumi
walau pada hakikatnya kita tak dapat bersama
agar kau dapat tahu diari di hati
(Agar kau dapat tahu ku mencintaimu)

Ku tulis puisi cerita diriku
Lantas ku kirimkan ia kpd mu
Kukarangi lagu nyanyikan untukmu
teman dikala mendatangnya sepimu
MP3

ii - Kotak X Cincin Merah

Xtaula aku kne tipu ke ape.. kotak X aku asek kne 2 red rings je.. ba** sungguh.. da cek kt microsoft, diorang ckp device overheated.. overheated pale diorang! aku main xsmpai 5menet trus kne.. rasa kt console tu xdela panas pom.. bengong sungguh.. ops, tkasar bahasa.. sori2.. aku ingt2 nk lupakn dulu psl kotak X aku ni.. pasni la upgrade.. xpn gna 'stesen memain 3' trus.. hehe..

Friday, May 29, 2009

back again

hello.. long time me not update this blog. got busy with many things.. psm, exam, game, game, game, study, game and game.. now that i have finished my last sem, still busy with my job at iwana solution.. right now, i'm working on online payment system for ehem ehem.. sorry, cannot say it out loud as i must keep this secret for the sake of company.. so far, i'm interest with watching chinese drama and playing xbox.. hoho, i bought used xbox 360 for rm600.. still can be use with 20gb hdd..