Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm very new to linux and don't really know what I'm doing and that's what caused my problem...
I'm running slackware. I was trying to figure out how to get my qmail working with some new domains I put on my server. I was looking at "/etc/aliases.cdb" then I suddenly started getting "Segmentation fault". I rebooted the server and now if I try to login I get:
Linux 2.4.31.
\203\304^L\205\300^O\204@^C
I noticed when the server boots I get several "Segmentation fault" errors. It looks like apache is running but postgreSQL isn't.
I have someone doing a demo on one of the sites at 9:00am in the morning and now the site isn't working and I can't login.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Umm, segmentation faults and still booting? As a first guess I'd hazard it's a hardware problem. Do you have a testsuite for that? Since you are in a hurry you might open the box and move the memory out and in again...
I think somehow the "/etc/aliases.cdb" got messed up evenn though I didn't save when I exited (but it did ask me if I wanted to save changes and I didn't make any changes).
It does let me in as "nobody" but nothing else. I think it may have something to do with login and checking if there is any mail. Can I stop the checking of mail when I login as root. I can boot to the distribution CD and login as root but have to mount the hda1 manually.
I will take the server down and check hardware connections but I think I screwed up the software somehow.
What is the "/etc/aliases.cdb" and can it be fixed.?
- "I am able to login on the console as "nobody" but still can't login to any other accounts." are you talking about a local login or a remotely one? 'cause "nobody" account should not be among users with local login rights.
The segmentation fault can appear when - for example - a program is trying to write smth in a read-only location, so not necessary a hardware problem.
My advice - restore an old backup if you have any (without your last modifications into your system). For security purpose you should run a check with a tool like Tripwire to see if any break into your system was performed. You can also have a look into your PAM configuration (if you don't have a backup) as your system seems to be "locked".
My question: why are you using Slackware? - its not the happiest option to learn Linux as a beginner.
I'm running slackware because it was installed for me but the person that installed it isn't available anymore so I have to work with what I have.
There is no backup to bo back on...
Is there a was to do a "basic" login that doesn't check mail or load other options.? I really thinks is beacuse the "/etc/aliases.cdb" file is screwed and in digging around I have found that "newaliases" will rebuild it but I need to get logged in as root to do it. I think it let me in as nobody becasue it doesn't check mail for that account. Currently I'm booted to the distribution CD and logged in as root and mounted /dev/hda1 as /mnt and mounted /dev/hda3 as /usr but if I do the "newaliases" I'm not sure where it will write the "/etc/aliases.cdb" file.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
My reasoning for a hardware fault was his mentioning of segmentation faults during boot.
Be that as it may, the /etc/aliases.cdb can't be writen to your distribution CD . So fire ahead (after saving the old file) and see where it gets written to. You can always move it later.
Might be worth the try to umount your CD's /etc and mount your hard disk accordingly.
P.S.: I have the suspicion that a real Linux Guru would use "chroot". You might want to check that out (man chroot) on your steep way to guruhood (is there such a thing at all?) ...
OK... Maybe I'm barking up the wrong tree with "/etc/aliases.cdb" and newaliases. I was only looking at that because it was the last thing I was doing before this got messed up. I looked that the date of the "/etc/aliases.cdb" and I really don't think that's the problem.
I rebooted the server and I start getting "Segmentation fault" on boot up, these are examples:
/etc/rc.d/rc.sysvinit: line 34: 49 Segmentation Fault stty onlcr 0&1 Using /etc/random-seed to initialize /dev/urandom
Since I can't get postgres running will I be able to copy and/or save the the postgres databases.? If I can where would I look for them.?
As far as the web sites, they are all on hdb1. I'm just not sure where that postgres database is.
Now, I have another motherboard which is the same as the one I am currently using and I have more memory. Should I try hardware swapping or is the boot drive fried.?
Please can you email me to silviu_p_atc at yahoo dot com your following files: /etc/rc.d/rc.sysvinit and /etc/rc.d/rc.M
Also can you dmesg to a file and send me that files to the same email address.
You can try reverse the process of what you have done to your system before crashed (some new programs/updates installed, etc).
dmesg is a command for printing/control the kernel ring buffer (you will use it to extract the info from the boot process).
Why do you need a ftp if you are logged in rescue mode directly from system console?
Run this way: dmesg > dmesg.txt and then email me the dmesg.txt
PS: I have received the files from you. I will have a look on those lines....who knows...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.