LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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



Reply
 
Search this Thread
Old 03-17-2007, 08:31 AM   #1
wongdg
Member
 
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
Sorry.

And ping would tell me:

wongdg@dg-debian:~$ ping 202.188.0.133
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,
Wilson
 
Old 03-17-2007, 09:42 AM   #2
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
you change try this whether it help:
chmod +s /bin/*
good luck,
 
Old 03-17-2007, 09:48 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
If you change ownership, group, permissions, etc. only on the contents, it does not help---since the new attributes are not applied to the containing folder.
Normally you would use the -R option like so:
chgrp -R <newgroup> /bin
This changes the folder AND everything inside.

Look at the permissions, owner, etc. for /bin and for the contents.

Here is how mine are set: (Note that everyone has execute privileges)
Code:
mherring@1[bin]$ ls -l|grep su
-rwsr-xr-x 1 root root   29568 2006-07-11 05:51 su
mherring@1[bin]$ ls -l|grep ping
-rwsr-xr-x 1 root root   21412 2005-11-15 14:44 ping
mherring@1[bin]$  cd ..
mherring@1[/]$ ls -l|grep bin
drwxr-xr-x   2 root root  4096 2007-02-21 09:52 bin
drwxr-xr-x   2 root root  4096 2007-02-21 09:52 sbin
mherring@1[/]$
 
Old 03-18-2007, 02:12 AM   #4
wongdg
Member
 
Registered: May 2006
Location: Kuching, Malaysia
Distribution: Debian 2.4 & 2.6
Posts: 42

Original Poster
Rep: Reputation: 16
Thank you

You guys are great! I have got my su and ping working and learned another new lesson. It won't stop me from exploring more of my debian.

Thanks again.
 
Old 03-18-2007, 08:50 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Quote:
Originally Posted by wongdg
You guys are great! I have got my su and ping working and learned another new lesson. It won't stop me from exploring more of my debian.

Thanks again.
Right on!!! Every time you break something, you will learn. As long as you data is backed up, the only thing you are risking is your time.
 
  


Reply

Tags
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
su stopped working! and so was ping wongdg Linux - Newbie 1 03-17-2007 01:48 PM
x stopped working sleepwalk Slackware 1 03-25-2006 10:52 AM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 08:44 AM
X stopped working sueno Fedora 15 10-02-2004 01:23 PM
My X just stopped working??? freeindy Linux - Newbie 4 11-30-2002 11:53 AM


All times are GMT -5. The time now is 09:29 AM.

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