Linux - NewbieThis 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.
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 10.0, Debian 3.0, FC2, and various Live CD's
Posts: 20
Rep:
Locked out of SU...
Hey guys,
Well, I don't consider myself much of a "noob," but this is the only place this question seems fit... I've locked myself out of "su"...
Earlier everything worked fine - I was "su"ing in and out with my normal account, installing some basic programs.
I noticed it right as I was installing SNORT. I needed to go "su", but I just kept getting a "Sorry" message. I can logout and log back in as root just fine, so I know I haven't forgot my password.
The only thing of significance I recall changing is are the rwx rights in certain directories. I executed a "chmod 755" for all files in /bin, /usr/bin, /usr/sbin, /etc, and /usr/etc. However, I've tried switching rights back around, but nothing seems to do the trick... most peculiar...
Anyway, any help would be greatly appreciated... I'm about fed up (I locked myself out of one of my servers yesterday by changing a home directory... sheesh...)
When you set the 755 permissions you removed the SUID permission from su, you can restore it with chmod 4755 /bin/su. But you've done the same to a number of executables, all of which need to be SUID to work properly (eg does passwd work ?). You should compare the directory listings to another Linux system to see how the permissions should be. Or restore from backup if you have one.
Distribution: Slackware 10.0, Debian 3.0, FC2, and various Live CD's
Posts: 20
Original Poster
Rep:
Your reply is much appreciated, LasseW,
But let me ask a stupid question - what would be the harm in simply changing everything in the directory to 4755? Essentially I'm only adding SUID to functions that didn't have it before, right? I'm pretty certain 755 is the setting I want for most of my main system directories, so what does it hurt to add SUID?
I'll read up on it... the more I think I know, the more I realize there is to learn... thanks 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.