[Ilugc] sudo command and synaptic not working

2010-02-18 Thread selvamani sampath


This is the problem i have in my laptop :

 I gave the following sudo command to
 change the permission

se...@selvamani-laptop:~$ sudo chmod 777 -R /usr/
 [sudo] password for selva : 
 |

Nothing happened after i gave the password, so i entered
the Backspace key twice. Then again i tried same command,
but the error message came as follows:
 
se...@selvamani-laptop:~$ sudo chmod 777 -R /usr/
sudo: must be setuid root
se...@selvamani-laptop:~$ 
 
This is the error.  But now, i unable to open synaptic
manager and unable to download or install any packages into
my laptop. Please tell me to correct this error.


  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] sudo command and synaptic not working

2010-02-18 Thread Prema
>
> se...@selvamani-laptop:~$ sudo chmod 777 -R /usr/
> sudo: must be setuid root
> se...@selvamani-laptop:~$
>

If the problem is just that you chowned /usr, try booting into the recovery
console and type

chwon root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
then..

reboot

This worked for me when I face the same issue..

-- 
With luv n cheers.,
Prema
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] sudo command and synaptic not working

2010-02-18 Thread Raman.P
--- On Fri, 19/2/10, Prema  wrote:
> >
> > se...@selvamani-laptop:~$ sudo chmod 777 -R /usr/
> > sudo: must be setuid root
> > se...@selvamani-laptop:~$
> >
> 
> If the problem is just that you chowned /usr, try booting
> into the recovery
> console and type
> 
> chwon root:root /usr/bin/sudo
> chmod 4755 /usr/bin/sudo
> then..
> 
> reboot
> 
> This worked for me when I face the same issue..

A bit of explanation: chmod 4xxx will set what is called setuid on execution. 
That means when the programme is run it will be run as owner of the file, even 
though started by anybody else.  sudo should run  as root to do most of 
function and hence set with setids.


A simple chmod xxx will remove any such setid's.

I am curious why people want 777 for /usr?. 

Raman.P
blog:http://ramanchennai.wordpress.com/



  Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
http://downloads.yahoo.com/in/internetexplorer/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc