SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
my first and most immediate problem is when i try and log into the root account i get the funny little message but no prompt, then the system hangs for about 30 seconds and kicks me back to the login prompt (im positive i am entering the correct login info for root). however i can log in to a normal user account. some other useful information my be that i have been editing the '~.xinitrc' file.
my second problem is with that normal user account. i have created '~.bashrc' and '~.bash_profile' in the home folder and added commands to them. however, when i log into the account, it seems it is still reading the global '/etc/profile' (i have tested this by changing the user prompt line of the '/etc/profile'). again, i have been editing the '.xinitrc' file (for this account), which i actually transfered over from the root accounts home folder, but i have given everyone RWX permissions to the file.
as you can see im in a bit of a mess, any help is appreciated.
Last edited by mobilemonkey; 05-25-2007 at 07:55 AM.
the messages are right after logging in, alot of them are quotes by famous people, id like to be able to switch this off too
i have a line in my '~.bash_profile' ('source ~.bashrc') which then (should) execute all the commands in the .bashrc file, which includes a custom prompt string command, but it doesnt seem to work, although i have had this working in the past
I assumed that he meant the fortune message, which would indicate that he did successfully log in, the system just failed to give him a usable prompt.
I have always used .bash_profile under Slackware, never .bashrc. You might want to try just using bash_profile to load your user-specific settings. As for the xinitrc file, that shouldn't have anything to do with the current problems you are having since obviously that is a component of X. It shouldn't even be read when you are logging into the console.
i *think* ive worked it out. when i log into the root account and type 'echo $SHELL' i get '/bin/bash'. when i log into a normal user account and type 'echo $SHELL' i get '/bin/sh', which indicates the shell is the BOURNE shell. and so may not look at the '.bash_profile' on login ??. how would i set the bash shell as the default shell for normal users?
Last edited by mobilemonkey; 05-25-2007 at 03:23 PM.
sn9ke_eyes, i edited the '/etc/passwd' file and put '/bin/bash' at the end of the users line. now everytime i log in as that user i get bash as my default login shell, and subsequent shells, and now the commands in the '.bash_profile' and the '.bashrc' are being read and executed, so everything works. thanks again
Last edited by mobilemonkey; 05-25-2007 at 07:31 PM.