Solved

Solaris Customization i.e settings depending on  Login ID

Posted on 2002-03-22
8
255 Views
Last Modified: 2013-12-27
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)
0
Comment
Question by:amirabbas
8 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 6892347
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.
0
 
LVL 4

Expert Comment

by:besky
ID: 6899562
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
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6904688
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.
0
 
LVL 1

Expert Comment

by:alextr
ID: 6910486
Why do you want to disable X? Just assigning the command to launch your appliction in the shell script of the user  is enough
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Expert Comment

by:Nisus091197
ID: 6913090
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
http://www.omnimodo.com
0
 
LVL 20

Expert Comment

by:tfewster
ID: 8052599
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

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8099884
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0
 

Expert Comment

by:SpideyMod
ID: 8099935
amirabbas,
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: http://www.experts-exchange.com/Community_Support/

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

Questions Asked
16
Last 10 Grades Given
A A A A A A C
Question Grading Record
7 Answers Graded / 7 Answers Received
http://www.experts-exchange.com/Operating_Systems/Win2000/Q_20308399.html
http://www.experts-exchange.com/Operating_Systems/Win2000/Q_20295665.html
http://www.experts-exchange.com/Operating_Systems/Win2000/Q_20007900.html
http://www.experts-exchange.com/Operating_Systems/Linux/Q_20322096.html
http://www.experts-exchange.com/Hardware/Modems/Q_20161947.html
http://www.experts-exchange.com/Programming/Programming_Platforms/Unix_Programming/Q_20299860.html
http://www.experts-exchange.com/Programming/Programming_Platforms/Unix_Programming/Q_20299858.html
http://www.experts-exchange.com/Networking/Linux_Networking/Q_20161950.html
http://www.experts-exchange.com/Operating_Systems/WinXP/Q_20395796.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 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

16 Experts available now in Live!

Get 1:1 Help Now