Solved

solaris bad login?

Posted on 2004-09-30
7
254 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
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.

760 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

20 Experts available now in Live!

Get 1:1 Help Now