SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
Deleted 'dmesg' by mistake....
Hi all, I had upgraded from slackware 13 to 13.1 and finally 13.37.
After this I noticed that 'dmesg' could only be executed as root. So inorder for a user to execute 'dmesg' I executed 'ln -s /bin/dmesg /usr/bin/dmesg'.
What happened next is the symlink was created but the dmesg executable was deleted.
I do not want to reinstall the OS (very time consuming on a P3 with 512MB RAM) so I want to know which package provides dmesg so that I can reinstall it.
The dmesg man page indicated that klogd will provide the package but then when I reinstalled it it was a no go.
Can someone tell me how to get the dmesg back?
Thanks for your help.
Hi all, I had upgraded from slackware 13 to 13.1 and finally 13.37.
After this I noticed that 'dmesg' could only be executed as root. So inorder for a user to execute 'dmesg' I executed 'ln -s /bin/dmesg /usr/bin/dmesg'.
What happened next is the symlink was created but the dmesg executable was deleted.
That should not have happened. This would be more of a concern to me...
At any rate
Files in /bin are executable by users.
Code:
-rwxr-xr-x 1 root root 9432 Feb 16 14:34 /bin/dmesg*
So creating a symlink in /usr/bin would have failed anyway since other factors are stopping dmesg from being run by users.
The solutions have already been posted, with T3slider's post here being the preferred method.
Last edited by chrisretusn; 05-30-2011 at 09:34 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.