LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 05-28-2008, 02:17 PM   #1
w1k0
Member
 
Registered: May 2008
Posts: 936

Rep: Reputation: 108Reputation: 108
Midnight Commander hangs up console or xterm


*** The problem is solved. It concerns very peculiar configuration of the system, so you aren't probably interested in reading the entire thread ***


I use Slackware 12.1 but the same problem I noticed using two former versions of Slackware.

In my system there are two users: first and second. Both users was made using the same set of commands and both use similar .bashrc and .bash_profile files. They should be the same but aren't. As the first user I can start Midnight Commander and use all its functionalities. When I start Midnight Commander as the second user using mc command, the program hangs up console or xterm respectively. As the second user I need to start Midnight Commander using mc -u command disabling concurrent shell. The result isn't satisfactory, because in that mode Midnight Commander doesn't allow to use console or xterm.

What should I do to restore the possibility of using mc command for standard operation of Midnight Commander?

Have a nice day...

w1k0

Last edited by w1k0; 06-05-2008 at 09:24 AM. Reason: problem solved
 
Old 05-28-2008, 02:45 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-13.37
Posts: 1,955

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Is your user shell set up properly? (Check /etc/passwd. Most people use /bin/bash as their shell.)
 
Old 05-28-2008, 03:09 PM   #3
w1k0
Member
 
Registered: May 2008
Posts: 936

Original Poster
Rep: Reputation: 108Reputation: 108
Both my users use /bin/bash:

# cat /etc/passwd | tail -n 2

first:x:1000:100::/home/first:/bin/bash
second:x:1001:100::/home/second:/bin/bash

I made these users using simple newuser script:

USER="$1"
DIRECTORY="/home/$USER/"
if [ ! -e ${DIRECTORY} ]
then
echo "Adding ${USER} and configuring his/her account."
useradd ${USER}
mkdir ${DIRECTORY}
chmod 711 ${DIRECTORY}
chown ${USER}:users ${DIRECTORY}
mkdir ${DIRECTORY}bin/
chown ${USER}:users ${DIRECTORY}bin/
chsh -s /bin/bash ${USER}
passwd ${USER}
touch /var/spool/mail/${USER}
chmod 660 /var/spool/mail/${USER}
chown ${USER}:mail /var/spool/mail/${USER}
fi
 
Old 05-28-2008, 07:32 PM   #4
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,185

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
And what happens if you add the user using the standard "adduser" Slackware script?
 
1 members found this post helpful.
Old 05-28-2008, 08:11 PM   #5
w1k0
Member
 
Registered: May 2008
Posts: 936

Original Poster
Rep: Reputation: 108Reputation: 108
Problem solved by T3slider -- thank you very much

The simplest methods are the best... Now Midnight Commander works good for the second user as well. I didn't tried adduser command before for the second user, because my script worked well for the first. I assumed: if it works for the first user it must work for the second and the reason of that problem is another. I still don't know why adduser works and my script doesn't work but I don't bother with it. It's enough that Midnight Commander works well for both users.

Thank you allend for your hint once again! (I mistyped your name in the title of that post -- excuse me).

Last edited by w1k0; 06-05-2008 at 09:25 AM. Reason: thanks and excuses to allend
 
  


Reply

Tags
commander, console, midnight, xterm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Midnight Commander help? masterross Linux - Software 3 01-22-2008 09:25 AM
Running midnight commander from console ocgltd Linux - Software 1 09-23-2005 08:40 AM
midnight commander archlyric Linux - Software 2 02-28-2004 02:04 AM
Where's mc (Midnight Commander) Shadow Of Death Linux - Software 7 01-09-2003 07:09 PM
RH8, Unicode Font and Term issues with Midnight Commander under remote console Mulefire Linux - Distributions 1 12-28-2002 09:37 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration