Unix - Hour 2

Getting onto the System &Using the Command Line



2.1 Logging In and Out of the System

2.1.1)  I typed telnet internet.ggu.edu to connect to one of the unix servers at GGU.


2.1.2 and 2.1.3)  I Provided the requested information (account and password)

SunOS 5.7

login: spantaro
Password:
Last login: Sun May 27 16:01:37 from dhcp26-223.ggu.e
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Disclaimer and Right to Use
The GGU Network was established to serve the students, faculty and
staff of Golden Gate University for legal educational purposes with
the following provisions:

1) Security, privacy, and freedom for all users will be
granted and protected.
2) Any attempt to breach security or privacy will be followed
by corrective action.
3) Any activity that impedes the use for others, including
but not limited to:

* Harassment
* Cracking
* Hogging
* IRC BOTS.

will not be tolerated and could lead to your account being
closed.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Student Accounts on this system are maintained for instructional +
+ purposes. Accounts of students not currently enrolled will +
+ be deleted. System Administrator +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

************* Disk Quotas have been enabled - Users are **************
************* allocated 15mb of space. Purge Unwanted Files *********

You have no mail.
internet$



2.1.4)  I tried a wrong login information an got Login Incorrect messages as shown bellow.

SunOS 5.7

login: spantaro
Password:
Login incorrect
login:



2.1.5)  After login in, I saw some system and account information such as mail message as listed in item 2.1.2/2.1.3.


2.1.6 and 2.1.7)  The command exit closed the current connection. I also tried ctrl-d and the connection was lost too.

2.2 Changing Passwords with passwd



2.2.1)  Used command passwd to change my current password and followed the necessary steps in order to have the password changed. I noticed that even doing everything correctly, I always got a message at the end 'Permission denied', however I was able to change the password anyway.

internet% passwd
passwd: Changing password for spantaro
Enter login(NIS) password:
New password:
Re-enter new password:
NIS passwd/attributes changed on skywalker
Permission denied


2.2.2)  I provided some wrong data when trying to change the password and got many different messages from the system. The different messages are shown bellow.

internet% passwd
passwd: Changing password for spantaro
Enter login(NIS) password:
New password:
passwd(SYSTEM): Passwords must differ by at least 3 positions
New password:
Re-enter new password:
passwd(SYSTEM): They don't match; try again.
New password:
passwd(SYSTEM): Password too short - must be at least 6 characters.
New password:
passwd(SYSTEM): Password too short - must be at least 6 characters.
New password:
passwd(SYSTEM): The first 6 characters of the password
must contain at least two alphabetic characters and at least
one numeric or special character.
passwd(SYSTEM): Too many failures - try later.
Permission denied


2.3 Picking a Secure Password


2.3.3)  I chose this approach because it's easy to remember a sentence and pick the first letter of each word.



2.4 Who Are You?


2.4.1)  This command did not work for Sun Solaris 5.7.

internet% whoami
whoami: Command not found


2.4.2)  This command showed information about my account .

internet% who am i
spantaro pts/10 May 27 16:01 (dhcp26-223.ggu.edu)

2.4.6)  Command id also showed information about my account

internet% id
uid=10647(spantaro) gid=206(students)


2.4.7)  My account name is spantaro, my account number is 1064, my group name is students, and group number is 206


2.4.8)  I belong to only one group


2.5 Finding Out What Other Users Are Logged in the System

2.5.1)  The command users did not work under sunOS 5.7 at GGU.

internet% users
users: Command not found


2.5.2 and 2.5.3) This command showed who was logged on the system, which line they were in, how long they have been logged in, and the name of the machine they are coming from.

internet$ who
root console May 24 13:01 (:0)
wjchen   pts/2 May 27 17:59  (dhcp26-204.ggu.edu)
spantaro pts/3 May 27 18:11  (dhcp26-223.ggu.edu)
pmcdevit pts/4 May 27 15:55  (209-239-207-60.oak.jps.net)
owiharta pts/9 May 27 16:43  (dsl027-176-034.sfo1.dsl.speakeasy.net)
spantaro pts/10 May 27 16:01 (dhcp26-223.ggu.edu)
vochoa   pts/14 May 22 16:28 (pool54-80.ggu.edu)
root pts/7 May 24 13:02 (:0.0)


2.6 What is everybody doing on the Computer

2.6.1 and 2.6.2 This command showed who was logged and waht tehy were doing. The last column shows the commands they just executed. The first line summarizes the status of the system. The system has been up for 23 days. 6 users are logged in.

internet% w
6:17pm up 23 day(s), 7:42, 6 users, load average: 0.03, 0.04, 0.04
User tty login@ idle JCPU PCPU what root console Thu 1pm 3days
/usr/dt/bin/sdt_shell -c ? u
spantaro pts/3 6:11pm 6 -ksh
pmcdevit pts/4 3:55pm csh
owiharta pts/9 4:43pm 1:33 csh
spantaro pts/10 4:01pm 9 w
vochoa pts/14 Tue 4pm 5days 3 csh
root pts/7 Thu 1pm 3days 7 -sh

2.7 Checking the Current date and Time

2.7.1 Shows how much user time, system time, and CPU time has been used by the command interpreter itself, broken down by input/output operations and more.

internet% time
0.0u 0.0s 2:10:10 0% 0+0k 0+0io 0pf+0w


2.7.2 and 2.7.3 This shows the date and time.

internet% date
Sun May 27 18:31:32 PDT 2001

1