November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

How to Create or Edit a crontab File

Before You Begin

If you are creating or editing a crontab file that belongs to root or another user you must become root.

You do not need to become root to edit your own crontab file.

Create a new crontab file, or edit an existing file. # crontab -e [username]

where username specifies the name […]

Solaris ssh restart

To check if the service is online or offline: # svcs -v ssh online – 12:23:17 115 svc:/network/ssh:default

To stop the service: #svcadm disable network/ssh

To start the service: #svcadm enable network/ssh

To restart the service: # svcadm restart network/ssh

To Restart the SSH Service

Login to the command-line terminal Run the command:

svcadm restart […]

Solaris Commands

1. List the files in current directory sorted by size ?

  ls -l | grep ^- | sort -nr

2. List the hidden files in current directory ? ls -a1 | grep “^\.”

3. Delete blank lines in a file ?

cat sample.txt | grep -v ‘^$’ > new_sample.txt

4. Search for a sample […]

Solaris 10

After the Solaris installation finished you got to modifiy these things.

1. Login with ‘root’ user

2.To create group and user account: #groupadd -g 500 unixmin #useradd -u 500 -g unixmin -d /export/home/zawhtet -m -s /usr/bin/bash -c “Zaw Htet” zawhtet #passwd zawhtet

3.Create no login user for Services (Optional) #groupadd -g 501 squid #useradd -u […]

Hardening Solaris with Jass

1. Preparation Keep things simple: it is expected that only one or two services will run on a host. Use several machines, rather than one superserver that does everything. It’s easier to isolate applications, harden, troubleshoot and upgrade hw/sw. Be minimalist, only run what is absolutely necessary. Hardware: Consider installation via the serial port console, […]

Shutdown or Reboot Sun Solaris

Solaris is usually used as a server operating system. Because of this, you want to make sure that you shut the system down as gracefully as possible to ensure there isn’t any data loss.

For every application that is installed on your server, you should make sure that you have the correct scripts in /etc/rc(x).d […]

Solaris Add Defualt Route

netstat -nr

route delete default 192.168.1.251

ou can add default router temporarily by following command

route add default 192.168.10.249

You can add default router permanently by following commands

route -p add default 192.168.1.249

Or

echo 192.168.1.249 > /etc/defaultrouter

It will create /etc/defaultrouter file if not already available. Next time you restart you system 192.168.1.249 will […]

IPMP – Solaris

IPMP, or IP Multipathing, is used to provide redundant network connections for your Solaris servers. When IPMP was first release it used a probe based method for failure detection. This required an IP address to be placed on all NIC’s in the IPMP group, even if the NIC was just being used a test […]