[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Can't use 'su'



Hi,

Something got messed up in my system because of which I can't use 'su'. I
am writing it in detail, please bear with me.

I had given root's password to one of my freind and he (for some reason)
did

# chown -R user_name .*

in his home directory with root's priviledges. Well, realising that he has
made user_name the owner of every file on my linux-box, he did 

# chown -R root /

Well, after so much mess had been created, I booted the system in single
user mode and tried to set the ownership thing correct. I did 

# ls -lR some_dir | grep user_name

for all the dirs except /home and did not find a file whose owner was
'user_name'. I went to home dir and manually changed the ownership of all
the files from root to respective users. I *thought* that I have settled
the issue but Phew!! I can't use 'su' (I don't know if something else is
also not working). It gives the following error.

su: can't set groups: Operation not permitted.

It asks for the password and all. I created 2 new users and tried to su
from one of them to the other, but it still gives the same error. Only
root is able to use 'su'.

PLEASE HELP

Thanks

Manas


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated.  If you can appreciate satire read
http://www.templetons.com/brad/emily.html

------------------------------