Solved

solaris bad login?

Posted on 2004-09-30
7
259 Views
Last Modified: 2013-12-27
Hi!

I managed to get the graphic engine started on Sol9. I can login via root / mypass on the console, but when I try to login via the graphical interface, it does not let me. After I type in root I cant type in the password. Any ideas?

B.
0
Comment
Question by:MorganStanley
  • 4
  • 3
7 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 12189075
Usually root is blocked from logging in remotely for security.  This is set in /etc/default/login
Add another user and try with that (add a user with useradd & passwd)
0
 

Author Comment

by:MorganStanley
ID: 12189159
Hi!

I have added another user, but Sol says that no home dir is created and it starts the failsafe session.

I wish to add a user "baja" to be super-user (root basicly) and can login via web. How can I do that?
0
 
LVL 18

Expert Comment

by:liddler
ID: 12189192
When you create user, you need to create home directory - or ass useradd to do it for you
i.e.
useradd -c "Morgan Stanley" -d /export/home/baja -m -s /bin/ksh baja
passwd baja
and enter you password twice
It is always strongly recommended to never allow remote root logins.  If you intend to do this (bad thing), comment out the CONSOLE line in /etc/default/login.  But it's better to login as a normal user and your su or su for admin tasks.
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:MorganStanley
ID: 12189623
I created kb as user, Morgan Stanley was too long for Sol. When I enter Gnome 2 I get the following error:

Please contact your system administrator to resolve the following problem:
Could not open or create the file "/export/home/baja/.gconf-test-locking-file"; this indicates that there may be a problem with your configuration, as many programs will need to create files in your home directory. The error was "Permission denied" (errno = 13).

When I enter CDE it just kicks me out :(

B.
0
 
LVL 18

Expert Comment

by:liddler
ID: 12189748
either /export/home/baja (your home directory) doesn't exist or it is not owned by the user.
type:
ls -ld /export/home/baja
and post the results here
0
 

Author Comment

by:MorganStanley
ID: 12190210
drwxr-xr-x   2 bajarulez other        512 Sep 30 14:16 /export/home/baja
0
 
LVL 18

Accepted Solution

by:
liddler earned 50 total points
ID: 12190429
they should really be the same user bajarulez home directory bajarulez
or both baja

Also
what is the output of:
grep baja /etc/passwd
&
grep baja /etc/shadow
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.:
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.

860 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