Computing.Net > Forums > Linux > Can't ls as root

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Can't ls as root

Reply to Message Icon

Name: Peter Marshall
Date: November 9, 2003 at 11:41:46 Pacific
OS: RH 9
CPU/Ram: 1.8
Comment:

I was changing the group permissions on /var/ftp and now I can not use any command in the bin directory. .... I had 2 shell windows open. One I am still loged in as root the other not. The one I am not I can not use the su command so I dont dare log out of the other window. I cant ( in either window) type ls, chown, chgrp, etc. I am really stuck., Any suggestions ?

I have RH9

THank you very much
Peter




Sponsored Link
Ads by Google

Response Number 1
Name: cornstalk
Date: November 10, 2003 at 06:50:09 Pacific
Reply:

1. Do you have any graphical file managers installed, and if so, have you tried using them to deal with this problem? It may be that at least on of these does not rely on the shell binaries.

2. Do you have emacs? If so, it is just possible that you have access to eshell, which is a shell implemented entirely in lisp. To find out if you have eshell, start emacs, and enter: alt-x load-file (hit return) eshell-auto.el (hit return). If this runs without error, visit your info files (from emacs, cntl-h i return) and read further what you need to do to start eshell. You will then be able to list files, change permissions, and so forth, independently of your access to the normal shell binaries.


0

Response Number 2
Name: 3Dave
Date: November 12, 2003 at 06:21:53 Pacific
Reply:

Perhaps booting off a floppy or cd based
distro like knoppix will allow you the
mount your drive read/write and then add
the execute permissions to your files in
the /bin directory.


0

Response Number 3
Name: Peter
Date: November 13, 2003 at 04:39:26 Pacific
Reply:

Thanks for the reply's. I was able to boot up in rescue mode and mount my root partition. I changed back the things I changed (took the entry I made out of /etc/shells, and changed the permissions of /var/ftp back to root.). However, when I rebooted, I got the following error

"Kernel Panic. Try passing init= option to kernel "

.. Any suggestions ?

Thanks
Peter


0

Response Number 4
Name: 3Dave
Date: November 13, 2003 at 06:14:26 Pacific
Reply:

At the lilo prompt type:
linux init=/dev/hdXX
where hdXX is your root partition, eg hda1


0

Response Number 5
Name: Peter Marshall
Date: November 13, 2003 at 06:49:46 Pacific
Reply:

I am not using lilo ... (using grub with redhat 8)


0

Related Posts

See More



Response Number 6
Name: 3Dave
Date: November 13, 2003 at 08:49:51 Pacific
Reply:

same difference....


0

Sponsored Link
Ads by Google
Reply to Message Icon

Lilo to boot Mandrake Lin... graphic crd not found in ...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Can't ls as root

I can't login as root on RH 8.0 www.computing.net/answers/linux/i-cant-login-as-root-on-rh-80-/17826.html

can't login as root during SSH www.computing.net/answers/linux/cant-login-as-root-during-ssh-/17895.html

Can only login as ROOT www.computing.net/answers/linux/can-only-login-as-root/27757.html