Default Permissions - HELP !!!

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

Default Permissions - HELP !!!

Postby kalinik on Sun Jan 11, 2009 5:28 pm

Hi everyone,
I'm a newbie and need some help.
I changed permissions to my home dir and some more dirs and now i CANNOT log in.When I start the Recovery mode it asks me for root login but don't know the password.I tried with my user's password but it says "login incorrect (or so)"
I know that I need to chown 644 my home dir but i can't login.
Plese help :)
Last edited by kalinik on Mon Jan 12, 2009 4:16 am, edited 1 time in total.
Image
User avatar
kalinik
Level 1
Level 1
 
Posts: 29
Joined: Sun Jan 11, 2009 5:22 pm

Linux Mint is funded by ads and donations.
 

Re: Need root login,HELP !!!

Postby proxima_centauri on Sun Jan 11, 2009 5:35 pm

Is it possible to log on as user and "sudo" to do whatever you need?
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Need root login,HELP !!!

Postby kalinik on Sun Jan 11, 2009 5:38 pm

proxima_centauri wrote:Is it possible to log on as user and "sudo" to do whatever you need?


NO.
When I try to logon with my user = "Permission denied".
:roll:
With 2 words: I have a working system without user permission to login. :evil:
Image
User avatar
kalinik
Level 1
Level 1
 
Posts: 29
Joined: Sun Jan 11, 2009 5:22 pm

Re: Need root login,HELP !!!

Postby proxima_centauri on Sun Jan 11, 2009 5:45 pm

Oh, thats what I get for speed-reading.

This was discussed earlier here viewtopic.php?f=90&t=20528&hilit=no+root+password

This page was linked as a fix
http://www.ubuntugeek.com/how-to-recove ... buntu.html

hopefully that helps
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Need root login,HELP !!!

Postby kalinik on Sun Jan 11, 2009 5:51 pm

Thank You so much !!!
I was searching for solution too :)
I'll try these later beacause i have to go now.
Thanks again :wink:

MORE Problems (below) ...
Last edited by kalinik on Sun Jan 11, 2009 6:54 pm, edited 1 time in total.
Image
User avatar
kalinik
Level 1
Level 1
 
Posts: 29
Joined: Sun Jan 11, 2009 5:22 pm

Re: Need root login,HELP !!!

Postby kalinik on Sun Jan 11, 2009 6:53 pm

I was able to login with root BUT it's a total mess with the permissions
I can't login with my user account (permission denied /bin/bash) and i can't start X server
Is there some way to restore the dafault permissions to my system ???
Image
User avatar
kalinik
Level 1
Level 1
 
Posts: 29
Joined: Sun Jan 11, 2009 5:22 pm

Re: Need root login,HELP !!!

Postby proxima_centauri on Sun Jan 11, 2009 7:21 pm

Exactly what files did you change permissions besides home?
For your /home folder
Code: Select all
sudo chmod 755 /home/username

Code: Select all
sudo chown username: /home/username
(replace username with your username)
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Need root login,HELP !!!

Postby kalinik on Mon Jan 12, 2009 4:05 am

Yes, I changed the permissions to my home dir and now i see it BUT, I can't login.
I think besides my home dir is a TOTAL mess and even some devices (in /dev/...) cannot start because of that mess.
I screwed up things :) I'll try to restore some permission to default but it's some kind of "Mission Impossible" :wink:
Next is ... reinstall (if i can't get defaults) !
Image
User avatar
kalinik
Level 1
Level 1
 
Posts: 29
Joined: Sun Jan 11, 2009 5:22 pm

Re: Default Permissions - HELP !!!

Postby proxima_centauri on Mon Jan 12, 2009 8:21 am

What about creating a new user with root access?
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Default Permissions - HELP !!!

Postby kalinik on Mon Jan 12, 2009 9:05 am

proxima_centauri wrote:What about creating a new user with root access?


I will do that, but there is many problems with files permissions :) ... like /dev/xxx/ (because they must be under 'tty' or something else ownership).For example when i start X under root account the mouse,printer,camera,audio and who know else DONT start.
I know there is many "system/internal" owners but I totally messed up things. :oops:
If there is some default permission settings it will be great, because I can't read about every specific ownership and search for this/these files to configure the whole system :roll:
Image
User avatar
kalinik
Level 1
Level 1
 
Posts: 29
Joined: Sun Jan 11, 2009 5:22 pm

Re: Default Permissions - HELP !!!

Postby proxima_centauri on Mon Jan 12, 2009 9:11 am

Yea perhaps it would be easier just to back up any relevant data and reinstall :(
There may be a way to reset system ownership but I'm not aware of it.
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Default Permissions - HELP !!!

Postby kalinik on Mon Jan 12, 2009 9:39 am

proxima_centauri wrote:Yea perhaps it would be easier just to back up any relevant data and reinstall :(
There may be a way to reset system ownership but I'm not aware of it.

That's what I'm thinking about too :)
However I Will try to chown most of the system dirs and files and if i can't login normally i will reinstall later.
Many thanx to you !!!
Image
User avatar
kalinik
Level 1
Level 1
 
Posts: 29
Joined: Sun Jan 11, 2009 5:22 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Mute Ant and 29 guests