Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

solaris bad login?

Posted on 2004-09-30
7
Medium Priority
?
279 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses
Course of the Month8 days, 17 hours left to enroll

876 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