I cant Access root account

Asked by VP Gautham

Sir,

I am a newbie in ubuntu. After installing the ubuntu. There was no problem to access the root account. but now i cant access the root.
when i try to enter the root account a dialougue box appears with a message

"User's $HOME/.dmrc file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permissions. User's $HOME directory must be owned by User and not writable by other users."

After clicking OK In the dialougue box a black screen appears. then no response from computer. I want to access root account to edit my boot menu

Please help me

any one
Thanks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Tom
Solved:
Last query:
Last reply:
Revision history for this message
arochester (arochester) said :
#1

" I want to access root account to edit my boot menu"

Issue this command in a terminal: sudo gedit /boot/grub/menu.lst

Revision history for this message
Vihar (vmankov) said :
#2

There is something wrong at my glance.

But if you want to be "root" open a terminal, type there "su", hit Enter and when asked for password fill your root-password, not the user one.
When you are done with your task close this root session immediately with "exit", please.

Revision history for this message
Vihar (vmankov) said :
#3

Opening a terminal:
At the top panel click on Applications, point the mouse on Accessories, find Terminal and click on it.

Revision history for this message
arochester (arochester) said :
#4

@ Vihar

Do you mean: sudo su

Revision history for this message
Vihar (vmankov) said :
#5

I meant exactly what I wrote.
VP Gautham wants to reach root privileges. I told how it could be done. If I'm wrong, arochester, please tell me.

Revision history for this message
arochester (arochester) said :
#6

@Vihar

If I input to a Terminal: su
It asks for a password
and then says "su: Authentication failure"

If I input to a Terminal: sudo su
it says " root@alan-desktop:/home/alan# "

Revision history for this message
Tom (tom6) said :
#7

"sudo su" does give you root privileges and it's a neat trick but working with root privileges is likely to harm your machine and mess up all the permissions for stuff so please only use it when you really need to. Most things should be fairly easy to do without logging in as root - you should be able to login as "alan" and do pretty much everything from there except potentially critically machine damaging things. Here's a guide about all that
https://help.ubuntu.com/community/RootSudo

Is logging in as !alan" not getting you to a usable desktop?

Good luck and regards from
Tom :)

Revision history for this message
Vihar (vmankov) said :
#8

Tom is pretty right.
But if somebody in Linux wants to be root let's tell him how to be it. Well, "Somebody" - if you want REALLY root privileges just go System-->Administration-->Users and Groups.
A window comes in which users are listed. In my own case they are ME, MY DAUGHTER and a "strange" user named "root".
Well, using GUI if you want the max of privileges click "Unlock", type in your user password, click on "root", then click on Properties, after that on User Privileges define the "root" password and give the "root" user which privileges you want. After that, in terminal or in console (Ctrl+Alt+number from 2 to 66) you can enter the ROOT one with this root password.
Well, it's dangerous for people like me. Why? When I'm root the system of Linux doesn't warn me - it assumes I know better than it (I'm the root, you know). So I newer use this option for now - I'm still a noob there and need the system warnings.

Revision history for this message
Best Tom (tom6) said :
#9

When i was new i wanted to be root all the time because that's what you have to be in the Windows world. That's why the Windows world is so rife with viruses and why they're always having trouble with 'security issues', well one of the main reasons anyway.
http://librenix.com/?inode=21

Good luck and regards from
Tom :)

Revision history for this message
Sam_ (and-sam) said :
#10

>There was no problem to access the root account

@VP Gautham
resume:
Your are newbie and created a 'root account'? If yes, for what?
Ubuntu has no 'root account' by default, the user has to create one. After he did so, the user is able to login as 'root' with a 'root password' instead of 'user password'. Unless the user knows what he's doing he's able to mess up the installation and permissions.
One example is your entry:
"User's $HOME/.dmrc file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permissions. User's $HOME directory must be owned by User and not writable by other users."

Ubuntu allows a 'user' to gain 'root privileges' temporary via the command 'sudo'.
If there is a need to issue more than one command with 'root privileges':
sudo -s
##user is still in 'home environment'.

With:
sudo -i
#user is in 'root environment', at the end of this session he needs to issue the command:
exit

To acces the boot menu:
#can be done when the computer boots by choosing a kernel line and pressing 'e' (for edit)
eventually press ESC if the boot menu doesn't appear.
http://media.ubuntuusers.de/wiki/attachments/42/28/grub_start.png
http://www.myfrag.com.au/img/contents/11%20grub.jpg

#after login by opening the file menu.lst
sudo gedit /boot/grub/menu.lst
#backup before edit is recommended

#enter recovery mode and choose 'root shell'
http://media.ubuntuusers.de/wiki/attachments/40/28/recoverymodus.png

Correct permissions for .dmrc and /home:
e.g. in recovery mode
##replace 'user' with your username
chmod -R 755 /home/user
chmod 644 /home/user/.dmrc
exit

Revision history for this message
VP Gautham (vpgautham) said :
#11

Sir,
 I created root account to configure internet. And I copied some files also to root. I thought the root files are also available to user . But my files lost . What will i do.

Pls help me

Revision history for this message
Tom (tom6) said :
#12

I doubt the files are really lost, they are probably just mis-filed and they might have wrong permission set now - this is the kind of reason we avoid using root but don't worry, most of us have done stuff like this too it's all part of learning to use linux.

When you say you copied "some files" were these your data or were they system files? I think you can find the files again by going up to the "Places" menu and then open something like "Documents" or something and then click on the "Up" button a few times until you see folders such as

/bin /boot ... /home ... /root

Your files might be in this folder too, if so you can hopefully drag them back into "Documents". If they arent there then try opening the "/root" folder and hunt around in the sub-folders inside there

Good luck and regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#13

Dohh, i just tried this myself and got "permission denied" when i tried opening the "/root" folder so instead drop to a command-line and type in

sudo nautilus

and then type in your normal user password, not the SuperUser one. Use the window/console that this opens up to find the files and then open a separate console fom "Places" to drag&drop the files into. Once you have moved the files then right-click on them, go right down to the bottom of the menu and choose "Properties", in that pop-up box click on the "Permissions" tab and just change the drop-down menu's in there to make sure that everyone has "Read & write" accesses/privileges.

I hope this helps! Please let us know :)
Good luck and regards from
Tom :)

Revision history for this message
VP Gautham (vpgautham) said :
#14

Thank you sir

Revision history for this message
Vihar (vmankov) said :
#15

@arochester
Excuse me I just now saw your
@Vihar

If I input to a Terminal: su
It asks for a password
and then says "su: Authentication failure"

If I input to a Terminal: sudo su
it says " root@alan-desktop:/home/alan# "

I have enabled the "root" user and have a different pass for it so when I type "su" in terminal and fill the proper pass I became root. Here's the output:
*-desktop:~$ su
Password:
root@*-desktop:/home/*#

Revision history for this message
Tom (tom6) said :
#16

Vp Gautham have you really fixed this already? Can you now easily read and use files and it's all back in the right place? If so then congratulations because i thought there might be a bit of tidying up required or slight problems doing some of that.

Nicely fixed, welcome to linux :)))
Regards from
Tom :)