su: cannot set groups: Operation not permitted

Issues related to software problems.
Post Reply
sundarrajan
Posts: 4
Joined: 2008/03/24 09:57:08
Location: Bangalore, India

su: cannot set groups: Operation not permitted

Post by sundarrajan » 2008/03/24 10:06:16

Hi,
I am unable to login as root. As a normal user if i try su command, it gives the following error:

su: cannot set groups: Operation not permitted

I found that the command ls -ll gives:

-rwxrwxrwx 1 root root 24060 Mar 22 2007 /bin/su

but it must be -rwsr-xr-x

How do i do that without the root login.

Thanks in advance.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: su: cannot set groups: Operation not permitted

Post by gerald_clark » 2008/03/24 13:50:03

Why can't you login as root?
You may have to boot the DVD in rescue mode to fix your problem.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: su: cannot set groups: Operation not permitted

Post by toracat » 2008/03/24 14:21:05

I'm a bit concerned about the fact that /bin/su has such incorrect permission bits. What is the output of:

rpm -V coreutils

You do not need to be root to run this command.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: su: cannot set groups: Operation not permitted

Post by gerald_clark » 2008/03/24 14:24:04

Been hacked?

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: su: cannot set groups: Operation not permitted

Post by toracat » 2008/03/24 14:27:27

Yes, that is a possibility (and my concern too).

sundarrajan
Posts: 4
Joined: 2008/03/24 09:57:08
Location: Bangalore, India

Re: su: cannot set groups: Operation not permitted

Post by sundarrajan » 2008/03/25 04:20:18

Not hacked for sure....

Here's the story.....

My gnome got crashed. Now i am using kde desktop. Some of the file permissions have changed automatically. I need to fix them back. So i need to login as root. KDE is working fine except the root login part.
I am using CENTOS 5.

rpm -V coreutils
.M...... /bin/basename
.M...... /bin/cat
.M...... /bin/chgrp
.M...... /bin/chmod
.M...... /bin/chown
.M...... /bin/cp
.M...... /bin/cut
.M...... /bin/date
.M...... /bin/dd
.M...... /bin/df
.M...... /bin/echo
.M...... /bin/env
.M...... /bin/false
.M...... /bin/link
.M...... /bin/ln
.M...... /bin/ls
.M...... /bin/mkdir
.M...... /bin/mknod
.M...... /bin/mv
.M...... /bin/nice
.M...... /bin/pwd
.M...... /bin/rm
.M...... /bin/rmdir
.M...... /bin/sleep
.M...... /bin/sort
.M...... /bin/stty
.M...... /bin/su
.M...... /bin/sync
.M...... /bin/touch
.M...... /bin/true
.M...... /bin/uname
.M...... /bin/unlink
.M...... c /etc/DIR_COLORS
.M...... c /etc/DIR_COLORS.xterm
.M...... /sbin/runuser


Thanks everyone.

I will try the rescue mode also.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: su: cannot set groups: Operation not permitted

Post by gerald_clark » 2008/03/25 13:34:27

I don't believe gnome or KDE change permissions on anything.
Neither one would have any affect on a console login.
I think you are barking up the wrong tree.

larka06
Posts: 19
Joined: 2007/07/20 06:45:02
Location: Arlee, Montana

Re: su: cannot set groups: Operation not permitted

Post by larka06 » 2008/05/23 05:32:24

You are barking up the wrong tree. You need to use "su -". That is su with a space then a dash.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: su: cannot set groups: Operation not permitted

Post by AlanBartlett » 2008/05/23 20:09:48

[b] larka06[/b],

Please read this thread in its entirety [i]from the beginning[/i]. Your comment appended to the end of an old thread serves no useful purpose - unless it was to get yourself noticed. If that was the case - mission accomplished.

Post Reply