Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login as root but no one else

Status
Not open for further replies.

jabz

Programmer
Jan 9, 2002
115
US
I recently installed suse 9.0 pro and started out by creating a second user other then root. Everything was working fine until I rebooted my computer and went into windows and then back to linux. When I did this and came back to linux I wasnt able to login as the user I created only root. So I created another user thinking it was just something wrong with that first user. Second time around and it happened again. I can only login as root but would like to be able to create a regular user as well. Thanks for your help in advance.
 
I remember a long while back Debian had a bug where the package containing 'su' didn't have the setuid bit set on the su binary. That made it impossible for anyone but root to login. May want to check that?

----
JBR
 
I'm sorry to have to ask, but how would I go about checking that..
 
Code:
$ ls -l /bin/su

The first thing in the output should be the following:

Code:
-rw[b]s[/b]r-xr-x

The s is the important part. If it's there, su is setuid. If it's just an x, su is not setuid.
 
When I do this it shows:

-rwsr-xr-x 1 root root 21112 Sep 23 12:51 /bin/su

and thats all it shows but the s is in there....
 
You may check if the users where created:

cat /etc/passwd

Normally every user get's a home directory, so supposed your user name was 'linus', you should try:

ls /home

and see: linus

You needn't reboot after creating a new user.
Are you using a graphical login? (they are evil :) ).
Else try Alt-F2, to get a new login-shell.
If using a graphical login you get it with: 'Ctrl-Alt-F2', or may open an xterm/ console/ shell - Window, and try:

su linus

(or mary, or jabz, or whatever username you used).
 
yes the users are created and both have a home directory(right after creating them I was able to access them, only after a reboot I could not)...I can login to them in the shell or command line but when ever I try to in the graphical login the screen goes black shows a nvidia screen and then goes back to the login screen..
 
You could change the inittab, to get a normal login.
Then login as user.
If you have successes:

startx 1>x.log 2>&1

That should start x11, writing the output-messages to x.log, and the errors (2) to the same file as the messages, so mixing information- and warn-messages with error-messages.

If you fail to login, you should get thrown back to the shell, and may evaluate the output of the x.log

less x.log

Perhaps the nvidia-driver needs su-permissions, perhaps there is a group 'vga' where you have to add the users...
 
stefanwagner -

I did what you said on both of the user names that were not working and they had the same out put, it was as follows:

This is a pre-release version of XFree86, and is not supported in any
way. Bugs may be reported to XFree86@XFree86.Org and patches submitted
to fixes@XFree86.Org. Before reporting bugs in pre-release versions,
please check the latest version in the XFree86 CVS repository
(
XFree86 Version 4.3.0.1
Release Date: 9 May 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: SuSE Linux [ELF] SuSE
Build Date: 12 February 2004
Before reporting problems, check to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Mon Mar 8 17:48:33 2004
(==) Using config file: "/etc/X11/XF86Config"
(II) [GLX]: Initializing GLX extension
Could not init font path element /usr/X11R6/lib/X11/fonts/local, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/kwintv, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID, removing from list!

waiting for X server to shut down

What could this mean? sorry i'm so about all the questions.
 
That means, that the directory, where the fonts should be, doesn't contain the specified fonts.

have a look at /usr/X11R6/lib/X11/fonts

and compare it to the fonts-section in

/etc/X11/XF86Config-4

if there are no fonts in the directory, you may try a 'locate kwintv', to find them - perhaps at a different place.

Or there are fonts, but they don't fit, then you should try to fix the settings in XF86Config-4

 
I have looked in the fonts folder and all fonts that it says cant be found are in there and I looked in XF86Config and the paths match where they are,here is what I see when I ls the fonts directory:

linux:/usr/X11R6/lib/X11/fonts # ls
. 75dpi Speedo URW fonts.cache-1 local truetype util
.. CID Type1 encodings kwintv misc uni

and then here is what I see in the font section of XF86Config:

FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/URW"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/kwintv"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/CID"

Everything seems to be there, could it have something to do with permissions, thanks again for all your help
 
Since I never had this error I might only guess.
Do you have read-permissions to these fonts-files?

Perhaps ...
oh I see something unusual:

(==) Using config file: "/etc/X11/XF86Config"
(II) [GLX]: Initializing GLX extension
Could not init font path element /usr/X11R6/lib/X11/fonts/local, removing from list!

Since about 1998 my distros stopped using XF86Config and started using 'XF86Config-4'.

Another issue is the xfs- X-Font-Server.
Is it started?

ps ax PIPE grep xfs

(The PIPE-symbol is not comming on this bloody X11-installation : - you know, the splitted vertical line).

My xfs uses a logfile /var/log/xfs.log - perhaps there are some hints found.

And there are no problems, with x-login as root?

 
Well I thought I would try out the string that you told me to with the x.log on root...after succesfully logging on to root I checked the log and it had those same lines as the other ones the only difference was

waiting for X server to shut down

is there some other log I can check somewhere to give me more of a reason why this is occuring.

Thanks again...
 
and the

waiting for X server to shut down

appears immediately after the

Could not init form font path ...

entrys?

 
Perhaps a stupid question, but is X11 still running for root?

You may not start X11 twice - at least I don't know how to do that.

Else I'm slowly getting out of answers and questions :) .

 
No its not that b/c even if I try to login as a user first after a reboot it still does not work.

Hmmm, well thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top