LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   many bugs on ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/many-bugs-on-ubuntu-786170/)

elishac 02-01-2010 05:28 AM

many bugs on ubuntu
 
hello,

I noticed that my log in /var/log/syslog doesn't report any passwords failure, as it should with unix-chkpwd.
So I googled it and I found a manipulation that should help me with that. Here is what I did :
- I installed this : http://www.kernel.org/pub/linux/libs...AM-0.77.tar.gz
- I wrote this :
Code:

./configure --enable-static-libpam --with-mailspool=/var/mail \
--enable-read-both-confs --sysconfdir=/etc &&
make &&
make install &&
mv /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a /usr/lib &&
ln -sf ../../lib/libpam.so.0.77 /usr/lib/libpam.so &&
ln -sf ../../lib/libpam_misc.so.0.77 /usr/lib/libpam_misc.so &&
ln -sf ../../lib/libpamc.so.0.77 /usr/lib/libpamc.so

In the end, unix-chkpwd still doesn't work (please help me to make this work) and even worse, when I type su or sudo ls and then my password, it says my password is incorrect.
I don't know if this has anything to do with the manipulation I just made, because I'm a newbie, but I think it does.
I now fear to shut my computer down because I'm afraid I won't be able to log in anymore. So please help me fast because I'll wait for your instructions before turning it down.

On another matter, which I'm not sure it's related either, my syslog is now getting spammed with "ureadahead-other main process (xxx) terminated with status 2" (several messages per second).
I googled it too, and I found it may be related to fstab issues, but I'm not sure, and I don't know enough anyway to modify it.
Here it is, tell me if there's anything wrong with it, and how to modify it :

Code:

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
# / was on /dev/sda5 during installation
UUID=b58... /              ext2    relatime,errors=remount-ro 0      1
# swap was on /dev/sda6 during installation
UUID=a67... none            swap    sw              0      0
/dev/scd0      /media/cdrom0  udf,iso9660 user,noauto,exec,utf8 0      0
/dev/sda2  /media/DATA  ntfs-3g  rw,auto  0  0

Thanks.

repo 02-01-2010 05:33 AM

Quote:

I noticed that my log in /var/log/syslog doesn't report any passwords failure, as it should with unix-chkpwd.
Aren't these logged in
/var/log/auth.log ?

elishac 02-01-2010 05:53 AM

:S
Thanks a lot. You solved one of my problems, and the one that interested me the most.
Can you please help me to fix all the mistakes I did while trying to make this work on my own ?

repo 02-01-2010 05:58 AM

First see if there is a uninstall option
In general make uninstall
Then remove the softlinks you created
Code:

rm /path/to/soft/link

elishac 02-01-2010 12:12 PM

make: *** No rule to make target `uninstall'. Stop.

As you said 'then', I didn't execute the second part of your instructions.

repo 02-01-2010 01:13 PM

You need to use "make uninstall" in the source directory you used to install.
However, seems to me there is no uninstall option.
You could try to reverse what you did here
Quote:

mv /lib/libpam.a /lib/libpam_misc.a /lib/libpamc.a /usr/lib &&
ln -sf ../../lib/libpam.so.0.77 /usr/lib/libpam.so &&
ln -sf ../../lib/libpam_misc.so.0.77 /usr/lib/libpam_misc.so &&
ln -sf ../../lib/libpamc.so.0.77 /usr/lib/libpamc.so
This is why you always should use the packagemanager to install software.

elishac 02-01-2010 01:53 PM

I did it in the same directory, but it seems that there is no uninstall option indeed.
What do you mean by "reverse", tell me exactly what I need to type in...

repo 02-01-2010 02:05 PM

Just wondering, can you use su and sudo now ?

remove the softlinks you created
Code:

rm /path/to/soft/link

elishac 02-01-2010 05:24 PM

I'm really a newbie, you must help me more. I don't know what a softlink is, let alone where it is. All I know is that the directory in which I copied and made all the commands that I pasted above is : #HOME/Downloads/Linux -PAM-0.77. What exactly am I supposed to do ?

And by the way, I just noticed that what is logged in /var/log/auth.log isn't really a unix-chkpwd. unix-chkpwd seems to use /var/log/syslog only.

repo 02-02-2010 03:05 AM

Quote:

In the end, unix-chkpwd still doesn't work (please help me to make this work) and even worse, when I type su or sudo ls and then my password, it says my password is incorrect.
I don't know if this has anything to do with the manipulation I just made, because I'm a newbie, but I think it does.
I now fear to shut my computer down because I'm afraid I won't be able to log in anymore. So please help me fast because I'll wait for your instructions before turning it down.
Does the system work?
Can you use su and sudo ?

elishac 02-02-2010 09:22 AM

The system works, but I cannot use su or sudo.

repo 02-02-2010 09:49 AM

Quote:

The system works, but I cannot use su or sudo.
If you can't use su or sudo, you can't remove the installed files and softlinks you created.
You need to boot from a live CD, and undo what you did from the live CD
You also need to know which files are installed using the "make install" command.
If you go to a terminal using CTRL_ALT_F2, can you login as root?

elishac 02-02-2010 10:38 AM

I don't have a live CD.
I had to shut the computer down because the battery was low.
Now I can't login anymore. It says authentification failure, although the password I entered is correct.
What can I do ?

repo 02-02-2010 11:12 AM

Quote:

I don't have a live CD.
The CD you used to install, is a live CD

elishac 02-02-2010 01:03 PM

I don't have a single CD in my house, so there's no way I have a live CD.
I wasn't the one who installed ubuntu on my computer.
I managed to change my password and now I can use ubuntu again (i just followed a procedure on internet ; and by the way it seems very strange to me that someone is able to change the root's password without needing to know the previous password). But I still need to uninstall everything I did. How to do that ?


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