3 quick basic solaris adin quewstions i'm having difficulty answering........

Posted on 2005-05-02
Last Modified: 2013-12-27
1. what is the full path to the file used to modify the configuration of the kernel?

2.What is the command usedc that provides the ability to issue a warning message before the system run level is changed?

3when is the system profile executed?

if anyone could help me answer thease that be grweat man pages are not helping.........
Question by:tyweed420
    LVL 48

    Assisted Solution

    1.  There's a few ways of doing this.  Generally, you can change most kernel settings in /etc/system

    2.  Not aware of one, but the shutdown command uses the 'wall' command to broadcast a shutdown message

    3.  By system profile, do you mean /etc/profile?  If you have a non csh shell, then it is run when you login.
    LVL 7

    Accepted Solution

    1) /etc/system

    2) the rc? commands in the /sbin directory do that

    3) It is executed when the system shell is started
    LVL 5

    Expert Comment

    For Q2, you can modify the /etc/inittab to achieve your goal.

    Alternatively, if you are changing run level using the 'shutdown' command you can give a period of grace before the run level is changed.  This will alert users logged in with terminals.

    Regards, Nisus
    LVL 7

    Expert Comment

    The question #2 was what command was used not how to get around it though
    LVL 5

    Expert Comment

    in which case the command would be init ;-)
    LVL 7

    Expert Comment

    Actually no ... the echo statements are in the rc? commands in the /sbin directory. if you cat them .. you will see them making echo statements telling the person on the console what is going on with the system

    Expert Comment




    write a simple script which will echo that there is  a run level change and add this in to a rc# with a
    higest priory to be executes (which is  decided by the K and S script in rc directory).


    when any user logs in the /etc/profile is executed before the .profile is executed .


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
    Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now