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.
i've got a big problem with my slackware installation. I'm using it for a long time right now and tried to update it via ssh like many times before.
Now, the update was successfull. Just some packages could not be updated because of depencies, but these were not so necessary packets like pidgin. Now after the updating the connection was lost and when I tried to start it again the answer from my machine was: "Cannot execute /bin/sh: Permission denied".
When I came home I tried to login but the same error message came up. This only happens with an user-acct. The root acct. is working perfectly, but I don't like it very much to surf and do everything on my root acct. :P
I checked the permissions of / and they are set to 755 like it has to be. Also all files (but links of course) in /bin are set to 755.
Does anybody have an idea what may be the problem?
That's bizarre. I haven't been at it for a while myself, and find the permissions a little confusing sometimes too. If you haven't already, I'd check for all links to bash or any bash-<version##-##.##> types of files and make sure they aren't linked, as well as the same for all sh-<version> or anything like that you can find. I've seen some install programs change links on things and just mess the whole thing up. Other than that, I don't have a clue what it could be.
That message can also appear on the local machine when the ssh keys for the user on the remote machine don't match the last recorded attempt.
To avoid any confusion, when I say local machine, I mean the machine where you are invoking ssh, and the remote machine is the machine you wish to connect to via ssh.
On the remote machine, try editing $HOME/.ssh/known_hosts (where $HOME is the user account's home) and find the line corresponding to the IP of the remote machine, and delete that line.
ssh should then prompt you (on the local machine) for adding a unique key on the remote machine for that IP.
Something else to look at, but probably hasn't changed since the update -- check that the sshd process is running (though I believe the message on the local machine would be different in that case).
Yes, reset the permissions would fix the problem
If you have a doubt about a file permission, check the MANIFEST file, available in your install disk or at one of the Slackware mirrors in: http://www.slackware.com/getslack/
Thanks Woodman, interesting point. I'm not using FAT oder Windows/DOS in anyway, but good to know.
Keefaz, thank you for the tip with the manifest-file. It was the problem. While I was updating, it changed the new libs to 700 instead off 755. I changed them back to 755 and now it is working again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.