Create the user named eric and deny to interactive login.
Answer and Explanation:
Which shell or program should start at login time is specified in /etc/passwd file. By default Redhat Enterprise Linux assigns the /bin/bash shell to the users. To deny the interactive login, you should write /sbin/nologin or /bin/false instead of login shell.
Install the Redhat Linux RHEL 4 through NFS. Where your Server is server1.example.com having IP 172.24.254.254 and shared /var/ftp/pub. The size of the partitions are listed below:
/ïƒ 1048
/homeïƒ 1028
/bootïƒ 512
/varïƒ 1028
/usrïƒ 2048
Swap->1.5 of RAM Size
/dataïƒ configure the RAID Level 0 of remaining all free space.
After completing the installation through NFS solve the following questions. There are two networks 172.24.0.0/16 and 172.25.0.0/16. As well as there are two domains example.com on 172.24.0.0/16 network and cracker.org on 172.25.0.0/16 network. Your system is based on example.com domain.
Answer and Explanation:
1. Insert the CD on CD-ROM and start the system.
2. In Boot: Prompt type linux askmethod
3. It will display the language, keyboard selection.
4. It will ask you for the installation method.
5. Select the NFS Image from the list
6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use
Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.
7. It will ask for the NFS Server Name and Redhat Enterprise Linux Directory.
Specify the NFS Server: 172.24.254.254
Directory: /var/ftp/pub
8. After Connecting to the NFS Server Installation start in GUI. Go up to the partition screen by selecting the different Options.
9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question
10.Create the two RAID partitions having equal size of remaining all free space.
11.Click on RAID button
12.Type mount point /data
13.Select RAID Level 0
14.Click on ok
15. Then select the MBR Options, time zone and go upto package selections.
It is another Most Important Time of installation. Due to the time limit, you should care about the installation packages. At Exam time you these packages are enough.
X-Window System
GNOME Desktop
(these two packages are generally not required)
Administration Tools.
System Tools
Windows File Server
FTP Servers
Mail Servers
Web Servers
Network Servers
Editors
Text Based Internet
Server Configuration Tools
Printing Supports
When installation will complete, your system will reboot. Jump for another Question.
Create the user named jane and john.
Answer and Explanation:
1.useradd jane
2.useradd john
useradd command is used to create the user. All user’s information stores in /etc/passwd and user;s shadow password stores in /etc/shadow.
One Package named zsh is dump on ftp://server1.example.com under pub directory. Install the package from ftp server.
Answer and Explanation:
1.rpm –ivh ftp://server1.example.com/pub/zsh-*
2.Package will install
rpm command is used to install, update and remove the package, -i means install, -v means verbose and -h means display the hash mark.
Install the dialog-*
Answer and Explanation:
Questions asking you to install the dialog package from the server. In your Lab FTP server as well as NFS server are configured. You can install either through FTP or NFS.
1.Just Login to server1.example.com through FTP: ftp server1.example.com
2.Enter to pub directory: cd pub
3.Enter to RedHat/RPMS: cd RedHat/RPMS
4.Download the Package: mget dialog-*
5.Logout from the FTP server: bye
6.Install the package: rpm -ivh dialog-*
7.Verify the package either installed or not: rpm -q dialog
Install the Cron Schedule for david user to display “Hello†on daily 5:30.
Answer and Explanation:
30 05 * * * /bin/echo “Helloâ€
3. crontab –u david schedule.txt
4. service crond restart
The cron system is essentially a smart alarm clock. When the alarm sounds, Linux runs the commands of your choice automatically. You can set the alarm clock to run at all sorts of regular time intervals. Alternatively, the at system allows you to run the command of your choice once, at a specified time in the future.
Red Hat configured the cron daemon, crond. By default, it checks a series of directories for jobs to run, every minute of every hour of every day. The crond checks the /var/spool/cron directory for jobs by user. It also checks for scheduled jobs for the computer under /etc/crontab and in the /etc/cron.d directory.
Here is the format of a line in crontab. Each of these columns is explained in more detail:
#minute, hour, day of month, month, day of week, command
* Â Â Â Â * Â Â Â * Â Â Â Â Â Â Â Â Â * Â Â Â * Â Â Â Â Â Â Â Â command
Entries in a crontab Command Line
Field
Value
Minute
0-59
Hour
Based on a 24-hour clock; for example, 23 = 11 p.m.
Day of month
1-31
Month
1-12, or jan, feb, mar, etc.
Day of week
0-7; where 0 and 7 are both Sunday; or sun, mon, tue, etc.
Command
The command you want to run
Raw (Model) printer named printer1 is installed and shared on 192.168.0.254. You should install the shared printer on your PC to connect shared printer using IPP Protocols.
Answer and Explanation:
IPP( Internet Printing Protocol), allows administrator to manage printer through browser so CUPS is called Internet Printing Protocol based on HTTP. We can Install the printer either through: system-confing-printer tool or through Browser.
1.Open the browser and Type on address: http://localhost:631 ïƒ CUPS (Common Unix Printing System) used the IPP protocol. CUPS use the 631 port.
2.Click on Manage Printer.
3.Click on Add Printer.
4.Type Printer name, Location, Description.
5.Select Device for bb. (Select IPP).
6.Device URL: ipp://192.168.0.254/ipp/ queue name ïƒ Same printer name of shared printer.
7.Select Model/Driver RAW printer.
8.service cups restart
neo user tried by:
dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70
files created successfully. Again neo tried to create file having 70K using following command:
dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70
But he is unable to create the file. Make the user can create the file less then 70K.
Answer and Explanation:
Very Tricky question from redhat. Actually question is giving scenario to you to implement quota to neo user. You should apply the quota to neo user on /home that neo user shouldn’t occupied space more than 70K.
1.vi /etc/fstab
2.touch /home/aquota.userïƒ Creating blank quota database file.
3.mount -o remount /home ïƒ Remounting the /home with updated mount options. You can verify that /home is mounted with usrquota options or not using mount command.
4.quotacheck -u /home ïƒ Initialization the quota on /home
5.edquota –u neo /home ïƒ Quota Policy editor
See the snapshot
1 Disk quotas for user neo (uid 500):
2 Filesystem blocks soft hard inodes soft hard
4 /dev/mapper/vo-myvol 2 30 70 1 0 0
Can you set the hard limit 70 and soft limit as you think like 30.
You are a System administrator. Using Log files very easy to monitor the system. Now there are 50 servers running as Mail, Web, Proxy, DNS services etc. You want to centralize the logs from all servers into on LOG Server. How will you configure the LOG Server to accept logs from remote host ?
Answer and Explanation:
By Default system accept the logs only generated from local host. To accept the Log from other host configure:
SYSLOGD_OPTIONS="-m 0 -r"
Where
-m 0 disables 'MARK' messages.
-r enables logging from remote machines
-x disables DNS lookups on messages recieved with -r
One Logical Volume is created named as myvol under vo volume group and is mounted. The Initial Size of that Logical Volume is 124MB. Make successfully that the size of Logical Volume 245MB without losing any data. The size of logical volume 240MB to 255MB will be acceptable.
Answer and Explanation:
1.First check the size of Logical Volume: lvdisplay /dev/vo/myvol
2.Increase the Size of Logical Volume: lvextend -L+121M /dev/vo/myvol
3.Make Available the size on online: ext2online /dev/vo/myvol
4.Verify the Size of Logical Volume: lvdisplay /dev/vo/myvol
5.Verify that the size comes in online or not: df -h
We can extend the size of logical Volume using the lvextend command. As well as to decrease the size of Logical Volume, use the lvresize command. In LVM v2 we can extend the size of Logical Volume without unmount as well as we can bring the actual size of Logical Volume on online using ext2online command.
Successfully resolv to server1.example.com where your DNS server is 172.24.254.254
Answer and Explanation:
nameserver 172.24.254.254
On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolv from DNS server .
Install the Redhat Linux RHEL 5 through NFS. Where your Server is server1.example.com having IP 172.24.254.254 and shared /var/ftp/pub. The size of the partitions are listed below:
/ïƒ 1048
/homeïƒ 1028
/bootïƒ 512
/varïƒ 1028
/usrïƒ 2048
Swap->1.5 of RAM Size
/storageïƒ configure the RAID Level 0 of remaining all free space.
After completing the installation through NFS solve the following questions. There are two networks 172.24.0.0/16 and 172.25.0.0/16. As well as there are two domains example.com on 172.24.0.0/16 network and my133t.org on 172.25.0.0/16 network. Your system is based on example.com domain. SELinux should be in enforce mode.
Answer and Explanation:
1. Insert the CD on CD-ROM and start the system.
2. In Boot: Prompt type linux askmethod
3. It will display the language, keyboard selection.
4. It will ask you for the installation method.
5. Select the NFS Image from the list
6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use
Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.
7. It will ask for the NFS Server Name and Redhat Enterprise Linux Directory.
Specify the NFS Server: 172.24.254.254
Directory: /var/ftp/pub
8. After Connecting to the NFS Server Installation start in GUI. Go up to the partition screen by selecting the different Options.
9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question
10.Create the two RAID partitions having equal size of remaining all free space.
11.Click on RAID button
12.Type mount point /data
13.Select RAID Level 0
14.Click on ok
15. Then select the MBR Options, time zone and go upto package selections.
It is another Most Important Time of installation. Due to the time limit, you should care about the installation packages. At Exam time you these packages are enough.
X-Window System
GNOME Desktop
(these two packages are generally not required)
Administration Tools.
System Tools
Windows File Server
FTP Servers
Mail Servers
Web Servers
Network Servers
Editors
Text Based Internet
Server Configuration Tools
Base
Printing Supports
When installation will complete, your system will reboot. Jump for another Question.
/data Directory is shared from the server1.example.com server. Mount the shared directory that:
Answer and Explanation:
/mnt/etc/auto.misc--timeout=50
When you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of linux helps to mount at access time and after certain seconds, when user unaccess the mounted directory, automatically unmount the filesystem.
/etc/auto.master is the master configuration file for autofs service. When you start the service, it reads the mount point as defined in /etc/auto.master.
There is a NFS server 192.168.0.254 and all required packages are dumped in /var/ftp/pub of that server and the /var/ftp/pub directory is shared. Install the Redhat Enterprise Linux 5 by creating following partitions:
/1000
/boot200
/home1000
/var1000
/usr4000
swap2X256 (RAM SIZE)
Answer and Explanation:
Note: Examiner will provide you the Installation startup CD. And here mentioned size may vary see on the exam paper.
1.Insert the CD on CD-ROM and start the system.
2.In Boot: Prompt type linux askmethod
3. It will display the language, keyboard selection.
4. It will ask you for the installation method.
5. Select the NFS Image from the list
6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use
Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.
7. It will ask for the NFS Server Name and Redhat Enterprise Linux Directory.
Specify the NFS Server: 192.168.0.254
Directory: /var/ftp/pub
8. After Connecting to the NFS Server Installation start in GUI. Go up to the partition screen by selecting the different Options.
9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question
10. Then select the MBR Options, time zone and go upto package selections.
It is another Most Important Time of installation. Due to the time limit, you should care about the installation packages. At Exam time you these packages are enough.
X-Window System
GNOME Desktop
(these two packages are generally not required)
Administration Tools.
System Tools
Windows File Server
FTP Servers
Mail Servers
Web Servers
Network Servers
Editors
Text Based Internet
Server Configuration Tools
Printing Supports
When installation will complete, your system will reboot. Jump for another Question.
Create the user named jeff, marion, harold
Answer and Explanation:
1.useradd jeff
2.useradd marion
3. useradd harold
useradd command is used to create the user. All user’s information stores in /etc/passwd and user;s shadow password stores in /etc/shadow.
Create the group named sysuser.
Answer and Explanation:
1.groupadd sysuser
groupadd command is used to create the group and all group information is stored in /etc/group file.
Make on /data that only the user owner and group owner member can fully access.
Answer and Explanation:
1.chmod 770 /data
2.Verify using : ls –ld /data
Preview should be like:
drwxrwx--- 2 root sysadmin 4096 Mar 16 18:08 /data
To change the permission on directory we use the chmod command. According to the question that only the owner user (root) and group member (sysadmin) can fully access the directory so: chmod 770 /data
Make Secondary belongs the both users on sysadmin group.
Answer and Explanation:
1.usermod -G sysadmin john
2.usermod –G sysadmin jane
3.Verify by reading /etc/group file
Using usermod command we can make user belongs to different group. There are two types of group one primary and another is secondary. Primary group can be only one but user can belongs to more than one group as secondary.
usermod -g groupname username ïƒ To change the primary group of the user
usermod -G groupname username ïƒ To make user belongs to secondary group.