Category Archives: sysadmin

Mounting NFS at boot automatically on Solaris10 x86

1. add the mount entry in /etc/vfstab 2. check if disabled or not svcs nfs/client if disabled then enable it 3. svcadm enable  svc:/network/nfs/client:default
Posted in sysadmin | Tagged , , | Leave a comment

HTTPD mod_perl & mod_cgi

1. install mod_perl , mod_cgi #yum -y install mod_perl mod_cgi 2. edit /etc/httpd/conf/httpd.conf #vi /etc/httpd/conf/httpd.conf LoadModule cgi_module modules/mod_cgi.so LoadModule perl_module modules/mod_perl.so 3. edit /etc/httpd/conf/vhost.conf to handle cgi/perl #vi /etc/httpd/conf/vhost.conf <Directory “/path/to/your/perl-script-dir”> AllowOverride all DirectoryIndex index.php index.html Options +ExecCGI AddHandler cgi-script cgi pl Order allow,deny Allow from all </Directory> 4. reload your httpd server #service httpd reload 5. test to execute perl script by httpd #cd /path/to/your/perl-script/dir #vi test.pl #!/usr/bin/perl print “Content-type: text/plain\r\n\r\n”; print “mod_perl rules!\n”; 6. chmod +x [...]
Posted in sysadmin | Tagged , , , , , , | Leave a comment

SMF Repository Restore

#/lib/svc/bin/restore_repository choose the backup
Posted in sysadmin | Tagged , , , | 1 Comment

lsb_release : to print out the ubuntu release information

#lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 7.04 Release:        7.04 Codename:       feisty
Posted in sysadmin | Tagged , | Leave a comment

น่าคิดดีนะ

Posted in sysadmin | Tagged | 1 Comment

Setting up NTP Client on CentOS 5.3

setting up the ntp client for time synchronization on centos cando as follow 1. login to your shell as root 2. install ntp client by invoke this command yum -y install ntp 3. edit ntp file configuration| vi /etc/ntp.conf comment out all the default time server and add your own time server. in case of me , Im in Thailand so I [...]
Posted in sysadmin | Tagged , , | 1 Comment

Setting up NTP Client on Solaris 10

1. vi /etc/inet/ntp.conf #Created by bankster: 2009-05-07 #follow the last modified by Mr.Kitti :2008-06-17 # # To start/stop/restart process : #    # svcadm disable ntp #    # svcadm enable ntp #    # svcadm restart ntp driftfile /etc/inet/ntp.drift logfile /var/log/xntpd.log server  clock.thaicert.org server  time1.nimt.or.th server  time2.nimt.or.th server  time3.nimt.or.th # end of /etc/inet/ntp.conf 2. # touch /etc/inet/ntp.drift # touch /var/log/xntpd.log 3. svcadm enable ntp
Posted in sysadmin | Tagged , , , | Leave a comment

SUN Solaris 10 and the word “Secure by Default” in practice

คำว่า secure by default คิดว่าหลายๆ คนในวงการ sysadmin ได้ยิน ได้เห็น แล้วคงต้องนึกถึง OS ที่ ถูกตั้งค่ามาให้มีความปลอดภัยแบบ  out of the box โดยแทบจะไม่ต้อง tune กันเลยทีเดียว อย่างเช่น ระบบปฏิบัติการที่เป็นที่รู้จักกันดีอย่าง OpenBSD นอกจากนั้น ระบบปฏิบัติการใหม่ๆ อย่าง ubuntu และ windows vista ก็เข้าข่าย secure by default กับเค้าบ้างเหมือนกัน โดย ubuntu และ vista มุ่งเน้นไปที่ administrative priviledges ใน ubuntu จะไม่มี root account มากับการติดตั้งครั้งแรก โดยจะให้สิทธิ์ super user กับ user account แรกของระบบ [...]
Posted in sysadmin | Tagged , , , , | 1 Comment

change user’s shell

solution 1. edit /etc/passwd or solution 2. usermod -s /bin/bash user
Posted in sysadmin | Tagged , , , | 4 Comments

Solaris Home Directory

Under Solaris, home directories are conventionally kept on one of two places, /home or /export/home. The /home directory is under control of the automounter and only the automounter can create directories there. The /export/home directory is where users home directories can be created by the system administrator. To create an account for user [...]
Posted in sysadmin | Tagged , , | Leave a comment
  • Tags

  • Pages

  • Categories

  • Archives