BCSL-063 Solved Assignment 2024-25
BCSL-063 Solved Assignment 2024-25
Maximum Marks : 50
Weightage : 25%
Last date of Submission : 31st October, 2024 (For July, Session) : 30th April, 2025 (For
January, Session)
Note:
Answer all the questions in the assignment having 40 marks in total. 10 marks are for viva
voce. You may use illustrations and diagrams to enhance the explanations. Please go
through the guidelines regarding assignments given in the Programme Guide for the format
of presentation. Make suitable assumption if necessary.
Q1. (8 Marks)
(a) Write a shell script which will accept the PID of a process and display the details of
that process.
(b)Create Remote Access Policy. Show how you can change to Remote Access Logging
setting in Windows 2000.
Solution:
#!/bin/bash
Screenshot:
(b) Remote Access Policy and Logging in Windows 2000:
1. Open the Remote Access Policy: In Windows 2000, go to Start -> Programs ->
Administrative Tools -> Remote Access Policy.
2. Create a New Policy: In the Remote Access Policy snap-in, right-click on "Remote
Access Policies" and select "New". Give the new policy a descriptive name.
3. Configure Permissions: Within the new policy, configure the permissions for various
users or groups. This involves defining which users can connect remotely, what
authentication methods are allowed, and what network resources they can access.
1. Open the Remote Access Service Properties: In Windows 2000, go to Start ->
Settings -> Control Panel -> Administrative Tools -> Services. Find "Remote Access
Connection", right-click it and select "Properties".
2. Navigate to the Logging Tab: In the Remote Access Connection Properties window,
navigate to the "Logging" tab.
3. Configure Logging Options:
o Enable logging: Check the "Enable logging" box.
o Choose Logging Level: Select the desired logging level (e.g., Detailed, Basic).
o Specify Log File Location: Indicate the directory where the log files should be
stored.
4. Apply Changes and Restart Service: Click "Apply" and then "OK" to save changes.
Restart the Remote Access service for the modifications to take effect.
Q2. (8 Marks)
(a) Write a shell program to scan all the files in a particular directory and list only those
files which start (file_name) with "a" or "A".
(b)Install and configure TCP/IP settings in LINUX/UNIX operating system.Explain with
step by step procedure.
Solution:
#!/bin/bash
# Scan the directory and list files starting with 'a' or 'A'
find "$1" -maxdepth 1 -type f -name "[aA]*" -print
Step-by-Step Procedure:
nameserver 8.8.8.8
nameserver 8.8.4.4
(a) Create a user account in the LINUX/UNIX Server. Set its password and define its
permission like'an administrator.
(b)Configure a DNS Server as a Root Name Server in Windows 2000 Server. Explain with
step by step procedure.
Solution:
To create a user account with administrator privileges in a Linux/Unix server, I would follow
these steps:
useradd -m newuser
This command creates a new user named "newuser" and also creates a home directory for
them.
passwd newuser
This command prompts me to set a password for the newly created user. I will enter and
confirm the password.
(b) Configuring a DNS Server as a Root Name Server in Windows 2000 Server
To configure a DNS Server as a Root Name Server in Windows 2000 Server, I would follow
these steps:
Q4. (8 Marks)
Solution:
To access my account on a remote machine, download a file, modify it, and upload it back, I
would utilize the Secure Copy (SCP) and Secure Shell (SSH) protocols. Here's a step-by-step
procedure:
ssh username@remote_machine_IP_address
Replace /path/to/remote/file with the full path to the file on the remote machine and
/path/to/local/destination with the desired local destination path.
scp /path/to/local/modified/file
username@remote_machine_IP_address:/path/to/remote/destination
Replace /path/to/local/modified/file with the path to the locally modified file and
/path/to/remote/destination with the desired destination path on the remote
machine.
(b) Configuring TCP/IP Settings in LINUX/UNIX with IP Address 192.168.1.2 and Port
446
To configure TCP/IP settings in LINUX/UNIX with the given IP address and port, I would
typically modify the network interface configuration files. The exact procedure might vary
slightly based on the specific Linux distribution. Here's a general guideline:
IPADDR=192.168.1.2
NETMASK=255.255.255.0
Replace the values if needed.
GATEWAY=192.168.1.1
This command will reload the network configuration and apply the changes.
ip addr show
This command will display the network interface configuration, including the assigned IP
address.
(d) To create a new file with name "abc" in the current directory.
Solution:
Command:
who
Explanation:
The who command displays a list of all users currently logged into the system, including
their username, terminal, login time, and idle time.
date
Set the date:
Replace MMDDhhmmYYYY with the desired date and time in the format
MonthDayHourMinuteYear.
For example, sudo date --set="031510302023" would set the date to March 15, 2023, 10:30
AM.
Note: sudo is required as setting the system date usually requires root privileges.
Command:
tty
Explanation:
The tty command displays the file name associated with the current terminal. This gives the
reference and name of the terminal.
Command:
touch abc
Explanation:
The touch command creates an empty file with the specified name, "abc", in the current
working directory.