LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   su stopped working! and so was ping (https://www.linuxquestions.org/questions/linux-newbie-8/su-stopped-working-and-so-was-ping-538254/)

wongdg 03-17-2007 07:31 AM

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

kstan 03-17-2007 08:42 AM

you change try this whether it help:
chmod +s /bin/*
good luck,

pixellany 03-17-2007 08:48 AM

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[/]$


wongdg 03-18-2007 01:12 AM

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.

pixellany 03-18-2007 07:50 AM

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.


All times are GMT -5. The time now is 07:52 AM.