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

Re: Can't use 'su'



This is a multi-part message in MIME format.
- --------------C939E3A30DFC0C260AB17AEF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

One reason could be that stickey bit of su is reset. You may need to
do
chmod 4755 /bin/su (or whereever su is)

VA-------------------------------------------------------
> manas garg wrote:
> 
> 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
- --------------C939E3A30DFC0C260AB17AEF
Content-Type: text/x-vcard; charset=us-ascii;
 name="Vinay_Avasthi-A12733.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Vinay Avasthi
Content-Disposition: attachment;
 filename="Vinay_Avasthi-A12733.vcf"

begin:vcard 
n:Avasthi;Vinay
tel;fax:+91-80-5598660
tel;work:+91-80-5598615 Extn. 4027
x-mozilla-html:FALSE
url:http://members.tripod.com/Vinay_Avasthi
org:Motorola India Electronics Ltd.;Network Management Operations
adr:;;The Senate, 33A, Ulsoor Road,;Bangalore;Karnataka;560042;India
version:2.1
email;internet:Vinay_Avasthi-A12733@xxxxxxxxxxxxx
title:Staff Engineer
x-mozilla-cpt:;0
fn:Vinay Avasthi
end:vcard

- --------------C939E3A30DFC0C260AB17AEF--


- --------------------------------------------------------------------
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

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