UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Having a problem. When booting up Ubuntu it doesn't starts in a terminal like mode (pardon my terminology, I'm not super familiar with linux) instead of the normal login mode, I try to log in as "administrator" (there is no root account, this is the only one) and this fills the lines
bash: /dev/null: Permission denied
I've read some of the other topics related to this, but the closest to my problem suggested logging in as root and changing the permissions of the /dev/null directory. Problem is, there's no root account for me, just administrator.
The permission denied issues started before i restarted. I was logged in and everything locked up, couldn't access anything. Last changes I can remember making is changing the permissions of the contents of "bin" (or possibly "sbin") from 755 to 777. I didn't figure this had anything to do with it since it's a different directory and I was adding permissions, not removing them. Then the system shut down and, like said, I can't log in.
Is there any way to change the permissions of the /dev/null directory or another walk-around to get Ubuntu up and running again?
Oh, I'm also running this as a virtual machine on fedora if that makes any difference.
To gain access, try starting it up in single user mode. If you were doing a normal boot, you would do this by putting the numeral "1" on boot line. I don't know how you do it as a virtual image. Once you boot you are running as root, but I don't know how to troubleshoot you problem.
I wouldn't expect changing the permissions on /bin/ or /sbin/ form 755 to 777 to cause your problem, but it is a horrible thing to do from a security perspective.
Normally, you can get to a "virtual terminal" by hitting Ctl-Alt-Fn where n is from 1 to 6. I don't know if this would work for you as a virtual machine. Fedora would probably intercept it.
Got it fixed! logged in as root using single user mode, changed the respective permissions back and i can log in now.
Quote:
but it is a horrible thing to do from a security perspective
Yeah, I realize that now- long story how I got to the point of doing it. It seems I didn't increase the permission (as I thought), but restricted it, which is what indeed caused the issue to begin with. I'm just retrieving my data now and then plan on doing a clean install.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.