[Ilugc] Re: Queries on customising my linux

  • From: gopu.bhaskar@xxxxxxxxx (gopu.bhaskar@xxxxxxxxx)
  • Date: Fri Aug 6 19:14:13 2004


3.how to add security by asking for password when
all
the processes starts when linux starts them?
ie something like this
Checking /boot [OK]
Type Ur Password:********
Starting crond [OK] etc.....
i don't want to add grub password as itis maintained
by lab administrator.i know i should edit init.d
file
but what to do?

Go to /etc/rc.d
Here you would find the scripts that are run at startup and shutdown
Under this there are dirs like rc1.d, rc2.d ... these dirs contain the
scripts to be run for the particular run level. The scripts starting
with S are run at start up and K scripts are run at shutdown (or is it
vice versa ?).  Go to rc5.d if you are running at level 5. Here grep for
the message that you see at the console (to identify the script). In
these scripts interactive shell commands work, so you can add your small
password protection facility here.

5.i installed linux kernel 2.6.6 and see that it is
successfully installed but the services are not
successfully started.why?it successfully starts in
2.4

Usually this happens when your root partition is not identified.
But there can be thousands of other reasons too. A dmesg output right
after a boot might help in analyzing the issue.

kernel and also see that the boot directory has only
kernel.h file in it.where have the other files
gone?in

Are you sure you boot directory contains 'only' kernel.h ?
Or do you mean to say that it's the only header file there ?
Don't you see any vmlinuz*, Sytem.map*,grub dir etc ? 

the boot up it showed that it was not able to mount
ext3 partitions?is this the reason?


The 2.6.x kernel does not support ext3 by default. It would be either
modularized or not there at all. You would have to recompile to kernel
to build ext3 as a part of it. 

Do make menuconfig in the kernel sources dir

Go to 
File systems  ---> <*> Ext3 journalling file system support

If it already shows a M (<M> instead of <*>) as above, then you might
have
Forgotten to a make modules and make modules_install.
If you are following the modules method then creating a ram disk image
would help. 

Goto your /boot, and run mkinitrd ./initrd-2.6.6.img 2.6.6
This would make the rd image.

Next you would have to add a corresponding entry in /etc/grub.conf
initrd /vmlinuz-2.6.6.img

I would recommend recompiling with ext3 support inbuilt.

Regards,
Gopu Bhaskar.


Confidentiality Notice 

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or 
Mailadmin@xxxxxxxxx immediately
and destroy all copies of this message and any attachments.

Other related posts: