Solaris Customization i.e settings depending on Login ID

I am using Solaris 8 on Intel and SUN platforms (OCT 2001 Edition). I have developed a graphical application in C++. Now I want to customize solaris in the following manner.

The system should boot in text mode and prompt for Login info.

If the user is "root" then X-server should start with full access to the system.

But if the user is other than "root", the system should run a my specific application (graphical application)with no access to system what so ever. The system should come back to text login prompt when the user quits the application.

(Actually I want that even novice users ahould be able to use my application without learning the intricacies of solaris. Moreover, they should not be able to fiddle with the system)
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I don't believe you can do this for two reasons. One is that CDE & X can't simply be started from a command line login. And the other is that Unix in general doesn't have that capability of running such an application as a part of the boot process, nor does it have that capability of doing an 'auto-logon' at boot.

What you could do, which I belive would satisfy your requirements, would be to allow CDE to start normally at boot. Root, of course, would be able to login normally, but the application would be accessed via a designated login name. The shell init scripts for that user could be used to start the application.
I have another opinion about this.

Before CDE came and the graphical interface became default we started openwindows in the users login file.

There are systemloginfiles in /etc ( profile for ksh,sh and .login for csh,tcsh) you could start your application or an xwindowsystem in this file based on a check on userid.
CDE is a problem since it default kicks of the login when it starts.

There might be yet another way to do this. Check the manuals for "sessionetc". This is script you can write and put in the dt directory that starts up a mandatory application in the CDE environment for the users who has this file.
That way you can use the dtlogin but hide the not so great CDE from them.

CDE can also be hacked but I would stay away from that since it is going away in a near future.

Happy hacking
hat's what users and groups are for in UNIX.
Simply setup your /etc/passwd and /etc/group, then ssign appropriate permissions to dirs, files and programs according your settings.
You don't nedd a special program for that, it's all standard UNIX/Solaris.
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Why do you want to disable X? Just assigning the command to launch your appliction in the shell script of the user  is enough
Make the last field of the user's entry in the passwd file to be the full path/name of your application.

simple as that.

Regards, Nisus
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- PAQ, no points refunded

Please leave any comments here within the next 7 days


Cleanup Volunteer
per recommendation

Community Support Moderator @Experts Exchange

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You have logged on yesterday, so you are still active and using this site.  However, you have a terrible record for closing out your own questions.  I will give you 1 week to close out all of your open questions older then 1 month before I ask site administration to step in at which time they will most likely suspend your account.  Feel free to ask questions here to help you handle your open question, or post in the Community Support area.  

You can get to the list of your opened questions (as can everybody else) by clicking on your login name link at the top left of the site.

You can get to the Community Support Topic area by clickin on it in the list to the left or here:

Below is a list of your open questions for easy reference.

Questions Asked
Last 10 Grades Given
Question Grading Record
7 Answers Graded / 7 Answers Received
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.