Page 1 of 1

Default Permissions - HELP !!!

Posted: Sun Jan 11, 2009 5:28 pm
by kalinik
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 :)

Re: Need root login,HELP !!!

Posted: Sun Jan 11, 2009 5:35 pm
by proxima_centauri
Is it possible to log on as user and "sudo" to do whatever you need?

Re: Need root login,HELP !!!

Posted: Sun Jan 11, 2009 5:38 pm
by kalinik
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:

Re: Need root login,HELP !!!

Posted: Sun Jan 11, 2009 5:45 pm
by proxima_centauri
Oh, thats what I get for speed-reading.

This was discussed earlier here http://www.linuxmint.com/forum/viewtopi ... t+password

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

hopefully that helps

Re: Need root login,HELP !!!

Posted: Sun Jan 11, 2009 5:51 pm
by kalinik
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) ...

Re: Need root login,HELP !!!

Posted: Sun Jan 11, 2009 6:53 pm
by kalinik
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 ???

Re: Need root login,HELP !!!

Posted: Sun Jan 11, 2009 7:21 pm
by proxima_centauri
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)

Re: Need root login,HELP !!!

Posted: Mon Jan 12, 2009 4:05 am
by kalinik
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) !

Re: Default Permissions - HELP !!!

Posted: Mon Jan 12, 2009 8:21 am
by proxima_centauri
What about creating a new user with root access?

Re: Default Permissions - HELP !!!

Posted: Mon Jan 12, 2009 9:05 am
by kalinik
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:

Re: Default Permissions - HELP !!!

Posted: Mon Jan 12, 2009 9:11 am
by proxima_centauri
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.

Re: Default Permissions - HELP !!!

Posted: Mon Jan 12, 2009 9:39 am
by kalinik
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 !!!