Tag Archives: unix

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 | Also 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 | Also tagged , , , , , | Leave a comment

SMF Repository Restore

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

change user’s shell

solution 1. edit /etc/passwd or solution 2. usermod -s /bin/bash user
Posted in sysadmin | Also 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 | Also tagged , | Leave a comment
  • Tags

  • Pages

  • Categories

  • Archives