Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
02-01-2010, 05:28 AM
|
#1
|
Member
Registered: Nov 2009
Posts: 522
Rep:
|
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.
|
|
|
02-01-2010, 05:33 AM
|
#2
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
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 ?
|
|
1 members found this post helpful.
|
02-01-2010, 05:53 AM
|
#3
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
: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 ?
|
|
|
02-01-2010, 05:58 AM
|
#4
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
First see if there is a uninstall option
In general make uninstall
Then remove the softlinks you created
Code:
rm /path/to/soft/link
|
|
|
02-01-2010, 12:12 PM
|
#5
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
make: *** No rule to make target `uninstall'. Stop.
As you said 'then', I didn't execute the second part of your instructions.
|
|
|
02-01-2010, 01:13 PM
|
#6
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
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.
|
|
|
02-01-2010, 01:53 PM
|
#7
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
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...
|
|
|
02-01-2010, 02:05 PM
|
#8
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Just wondering, can you use su and sudo now ?
remove the softlinks you created
Code:
rm /path/to/soft/link
|
|
|
02-01-2010, 05:24 PM
|
#9
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
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.
|
|
|
02-02-2010, 03:05 AM
|
#10
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
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 ?
|
|
|
02-02-2010, 09:22 AM
|
#11
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
The system works, but I cannot use su or sudo.
|
|
|
02-02-2010, 09:49 AM
|
#12
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
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?
|
|
|
02-02-2010, 10:38 AM
|
#13
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
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 ?
|
|
|
02-02-2010, 11:12 AM
|
#14
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
The CD you used to install, is a live CD
|
|
|
02-02-2010, 01:03 PM
|
#15
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
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 04:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|