LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-23-2007, 09:28 AM   #1
eluser
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
Question Permission Denied Login


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.
 
Old 07-23-2007, 11:12 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
tried single user mode?
 
Old 07-23-2007, 11:16 AM   #3
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
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.
 
Old 07-23-2007, 11:36 AM   #4
eluser
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh login error : Permission denied, please try again powah Linux - Security 3 07-12-2007 12:32 AM
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 09:20 AM
GNOME login - bind: Permission denied Fle>< Linux - Software 7 11-07-2005 11:11 AM
Login against active directory. Get permission denied! ZilenT-X Linux - Newbie 6 08-15-2005 04:29 AM
permission denied message at login p_test Linux - Newbie 2 10-07-2004 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration