1847022 Members
4034 Online
110258 Solutions
New Discussion

Re: CDE login script

 
Lalo_Weng
Advisor

CDE login script

Hi, I have a workstation with graphic interface. So every time when I start up the machine, it goes to CDE environment. In CDE environment, when I click 'terminal' , it will pop up a text terminal screen with '#' prompt.
My question is: I don't want to log in as 'root' every time, How can i do to log in CDE with other user than 'root'?

Thanks in advance.
Keep finding is the way.
4 REPLIES 4
Alex Glennie
Honored Contributor

Re: CDE login script

login to CDE as root
at the # prompt type sam &

A gui should appear, if it doesn't but refers to problems with X authorisation / Display problems/errors
type xhost + and try again.

in the GUI the first icon should be Accounts for users and groups, click on it

click on users

go to the menu and click on actions

Add fill in the blanks OK it when your satisfied logout and back in using the new userid and password.

If I have misunderstood your question my appologies feel free to elaborate.
Lalo_Weng
Advisor

Re: CDE login script

Sorry, I don't make myself understood. Actually, I have created users in the system. and I also logged into CDE with root. My question is, after I logged in CDE with root, when I open a text terminal window by click 'Terminal', Can I be prompt to enter 'USER NAME' and 'PASSWORD'? so that I can log in with desired user.

Maybe it's impossible. Maby the only way I have to do it's log out from root first, then log in CDE at CDE login dialog box.

Hope you can give me a hint. Thanks.
Keep finding is the way.
Steven Sim Kok Leong
Honored Contributor

Re: CDE login script

Hi,

You can always create a customized menu application that launches "telnet localhost". In that way, it will prompt you for the userid and password for login automatically in a terminal window.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Alex Glennie
Honored Contributor

Re: CDE login script

The only way I can think of is using the su command .... see man su (1) ?

ie su -

or dtterm -e login would also do it, I guess you could then create your own CDE action icon based on dtterm but using the additional command line and install it / drag and drop it into CDE's front panel.