Files that have a dash at the start of their name have to be handled with special options because a dash is also used for arguments of the commands. In this video i display some examples.
cat ./-ls
cat — -l
rm — -ls
Solaris Administration secrets and programming
Files that have a dash at the start of their name have to be handled with special options because a dash is also used for arguments of the commands. In this video i display some examples.
cat ./-ls
cat — -l
rm — -ls
In Solaris are two possibilities to schedule processes, it depends on the nature of the scheduling objective that one method is used or the other.
The methods are “cron” and “at”.
Cron
This name is inspired in the Greek god of Crono, the god of human’s time (day, month, years, calendards).The Cron method is used if you need [...]
When processes are managed, two concepts come up, they are the Real and the Effective ID of the process. To detail the difference, you have to understand the Difference between setuid / setgid / sticky bits.
The Real ID is the ID of the user that started the process, suppose that the process was started [...]
To change a file permission the “chmod” command is used. This command has the following format in Solaris:
chmod [-fR] <permissions> <fileName>
-f : Is to force, if there is an error, nothing is displayed.
-R : Does the change recursivelly.
But let go to the point, the setuid bit permits that the process, produced by executing the [...]
1. Enable rlogin
In the latest versions of Solaris Rlogin comes disabled by default. To enable it you have to use Service Control System:
svcs enable svc:/network/inetd:default
svcs enable svc:/network/login:rlogin
2. Secure rlogin
If you do not need the .rhosts file, delete them from the users home directory. This file has server names and ip addresses from where [...]
1. Enable FTP
In this article i am going to explain the simple steps required to enable (start) the FTP Server in Solaris 10 and also securing the service.
First look if the service is enabled:
svcs -a | grep ftp
If the service is disabled, start it (As root):
svcadm enable svc:/network/ftp:default
2. Securing FTP
To secure ftp you are [...]
To reject any attempt to login as root remotely (ssh, rcp, ftp) you have to modify the file:
/etc/default/login
And, uncomment the line that says:
CONSOLE=/dev/console
If console is set, root can only login from that device.
Create the file /var/adm/loginlog, the failed login attempts are going to be logged in this file. It should be created as the root user, and then:
chmod 600 /var/adm/loginlog
chgrp sys /var/adm/loginlog
If the unsuccesful login attempts are bellow 5 for a user account, it would not log, but this can be setup while editing /etc/default/login and [...]
Something bad could happen if you delete /etc/vfstab by mistake and you do not have a backup, the system would not find the required partitions to boot, they are: root (/), /usr, and /var.
To recover it, if you realialized that the /etc/vfstab file has been deleted but do not rebooted yet, you can accomplish this [...]
I needed to convert some ANSI screens to ASCII to capture some data, finally i had to hack a little with sed and regular expressions, this may help a lot of pleople with similar problems:
sed ’s/^\x20//g’ < test.log > test.2
sed ’s/\x1B\[[0-9]*;*[0-9]*.//g’ < test.2 > test.3
Eng. Walter Lamagna
Solaris Certified SysAdmin
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jul | Sep » | |||||
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |