Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-17-2007, 07:20 AM   #1
Registered: May 2006
Location: Kuching, Malaysia
Distribution: Debian 2.4 & 2.6
Posts: 42

Rep: Reputation: 16
su stopped working! and so was ping

I need help with this anybody. I was experimenting with my Debian box trying to pass some control to my user account by chgrp /bin/* to the "staff" group. After this the "su" would always say

su: Authentication failure

And ping would tell me:

wongdg@dg-debian:~$ ping
ping: icmp open socket: Operation not permitted

Changing them back to root group didn't help either. There must be ways to set this right. I couldn't find anything relevant on this subject in this site. So, would really appreciate anyone able to contribute.

Many thanks,
Old 03-17-2007, 12:48 PM   #2
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Check the permissions on the file /bin/su. It should be owned by root/root and have the SUID bit enabled in order for it to work for users.
There aren't very many things which need the SUID bit enabled, but /bin/su is one of them that does.
check 'man su' and 'man chgrp' amd 'man chmod' for more info.
Let us know if that solves the problem.
For ping, the same applies, but first you could see if it is executable by everybody (--x--x--x) or even executable at all (as root type chmod +x /bin/ping). I think Ping by default also has the SUID bit enabled.
Beware of anything with the SUID bit enabled, it can lead to security holes.


authentication, failed, su

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM
X stopped working ... Rackerz Ubuntu 1 12-11-2005 08:09 PM
su stopped working bulldogzerofive Linux - Software 5 01-17-2005 02:05 AM
X stopped working sueno Fedora 15 10-02-2004 12:23 PM
My X just stopped working??? freeindy Linux - Newbie 4 11-30-2002 10:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration