LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-16-2005, 01:53 PM   #1
adds2one
Member
 
Registered: Aug 2005
Location: Vancouver, BC
Distribution: Ubuntu 6.06
Posts: 154

Rep: Reputation: 30
login problems for user


I just installed Slackware 10.2, rebooted and logged in as root. I then ran xorgconfig and xwmconfig. No problems so far. Then I created a user using adduser. Still no problems. Finally I switch to my newly created user 'jason' and try to startx and get a 'command not found' message. Same thing if I try to run xwmconfig. I even tried copying /var/X11R6/lib/xinit/xinitrc to ~/.xinitrc but still I get 'command not found' when I try to startx or xwmconfig.

I have now setup my system to boot into run level 4 and am using KDM and I can log into KDE as my user, 'jason', but when I try to log into a console as root from KDM I get a console screen with no prompt and after a minute it just takes me back to KDM.

So I wanted to change my boot up run level back to 3. I opened Konsole in KDE as 'jason' and opened /etc/inittab using vi. But vi in the KDE Konsole won't let me delete!!!!! When I press delete it just switches vi to Command mode which should only happen when I press escape. Infact, the arrows and the insert, delete, end and home keys are all witching vi into Command mode. Backspace just moves the cursor.

Shouldn't I be able to use vi in the KDE Konsole? Shouldn't I be able to run startx and xwmconfig as a user? Shouldn't I be able to log into a console from KDM?

Any help would be greatly appreciated.
 
Old 09-16-2005, 03:11 PM   #2
XOR007
Member
 
Registered: May 2005
Location: Africa
Distribution: Ubuntu, Redhat 6.2 to 9, Centos 4, Suse 8 Ent.,Suse 9 Ent.
Posts: 51

Rep: Reputation: 15
Quote:
I just installed Slackware 10.2, rebooted and logged in as root. I then ran xorgconfig and xwmconfig. No problems so far. Then I created a user using adduser. Still no problems. Finally I switch to my newly created user 'jason' and try to startx and get a 'command not found' message. Same thing if I try to run xwmconfig. I even tried copying /var/X11R6/lib/xinit/xinitrc to ~/.xinitrc but still I get 'command not found' when I try to startx or xwmconfig.
That is because startx is not in the PATH of jason.

Quote:
So I wanted to change my boot up run level back to 3. I opened Konsole in KDE as 'jason' and opened /etc/inittab using vi. But vi in the KDE Konsole won't let me delete!!!!! When I press delete it just switches vi to Command mode which should only happen when I press escape. Infact, the arrows and the insert, delete, end and home keys are all witching vi into Command mode. Backspace just moves the cursor.
/etc/inittab can only be edited by root as it is a system file. jason shouldn't be able to run xorgconfig as well as /etc/X11/xorg.conf belongs to root and is read only for others

It seems jason does has his environment variables all screwed up.

I would say: boot in a mode were you can like single mode, userdel -r jason, then recreate it like

useradd -b jason, then passwd jason imediatly to give jason a passwd.
 
Old 09-16-2005, 03:20 PM   #3
recursv
Member
 
Registered: Oct 2004
Location: Cork, Ireland
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
That is a list of problems there. Think i might be able to help out with one or two.

To start off with, xwmconfig and startx.
The 'file not found' output denotes that your $PATH variable is not configured for your new user. Unfortunately, I cannot help with the correct method of setting up your $PATH variable. I know it is configured in the file '/etc/profile' but y it is not working with your new user, i am unsure. To run startx or xwmconfig as your new user, temporarily ... you can start them with the full path ie: '/usr/X11R6/bin/startx'
or manually set your $PATH variable to include /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.
But that is a terrible way about it, sorry.

Now, for the one I can help with
Instead of using 'vi' use 'vim' and you will see why soon. Now, from a console .. "cp /usr/share/vim/vim63/vimrc_example.vim ~/.vimrc"
This is a default set of options for vim which amongst other things will change the keyboard settings so that the arrow keys and delete and backspace key works. Read through it and muck about if ya like but there isn't that much to change.

To change from run level 4 to run level 3 at boot, using your current settings...
start a konsole and then type...
su -c "vi /etc/inittab"
enter your root password
then place your cursor over the default run level '4', press 'r' then '3' then 'wq'

Hope that helped a little
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user problems, have to login as root!! desperate_penguin Linux - Software 1 11-26-2005 09:13 AM
User login problems dludenar Fedora 4 11-16-2005 08:39 PM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM
User login problems for Red Hat 7.2 Norseman57 Linux - Distributions 1 07-02-2002 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration