Re: HELP! can't become root
On Wednesday 03 October 2007 12:17, Douglas A. Tutty wrote:
> On Wed, Oct 03, 2007 at 12:12:52PM -0700, tom arnall wrote:
> > I got impatient with an aumix error and did 'chmod -R /dev' (and ctl-C'ed
> > out of it after ~3 min's.) now I can't become root. Some examples:
> > kloro@debian:/bin$ sudo /usr/src/modules/alsa-driver/snddevices
> > sudo: /etc/sudoers is mode 0777, should be 0440
> > kloro@debian:/bin$ su
> > Password:
> > setgid: Operation not permitted
> > kloro@debian:/bin$
> > When I try to log in as root on a pseudo terminal, I get:
> > setgid: operation not permitted
> > I can log in as myself.
> > Also, is there other damage that i might have done with the 'chmod'?
> You'd have to know what files got altered. For example, you say you
> chmoded /dev. Then how did /etc/sudoers get changed?
> Can you boot single-user mode and login as root?
> Do you have good backups of your data?
there is a change in the behavior when i try to log in as root. instead of:
setgid: Operation not permitted after inputting the password, i get: login
incorrect right after inputting 'root'.
sudo works now. i think it was because i changed the perm's on sudoers