LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2009, 03:16 PM   #1
lelieng
LQ Newbie
 
Registered: Mar 2009
Posts: 19

Rep: Reputation: 0
log in as root


I have Ubuntu 8.10 and try to log in as root with su and password, but get the message "Autentiseringsfeil" (norwegian). What is wrong?
 
Old 03-03-2009, 03:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

Ubuntu by default doesn't have a root account enabled; did you change
that in the first place? If you want to become root on ubuntu normally
you'd go "sudo -i" and type your own password.



Cheers,
Tink
 
Old 03-03-2009, 06:50 PM   #3
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
To login as root when root user is disabled use:

Code:
sudo -s
 
Old 03-04-2009, 04:59 PM   #4
minaesm
Member
 
Registered: Oct 2008
Posts: 38
Blog Entries: 3

Rep: Reputation: 15
Question

i have also an ubuntu8.10 paltform , i want to install a package from the source called hdf5 which is needed to run another program but when i unzipp it and i want to change a file in the folder it says that i do not have the access to change it , i tried sudo -s but again the same problem happend
what can i do to become root to change the file
 
Old 03-04-2009, 05:49 PM   #5
kyle_p
LQ Newbie
 
Registered: Mar 2009
Location: Canada
Distribution: CentOS, RHEL*, SuSE*, *
Posts: 12

Rep: Reputation: 0
as lame as i find this you can actually get into root with this whacky command:

Code:
 sudo su
At which point you can set your root password with

Code:
 passwd
 
Old 03-05-2009, 01:45 AM   #6
minaesm
Member
 
Registered: Oct 2008
Posts: 38
Blog Entries: 3

Rep: Reputation: 15
there are folders which i want to delete from my desktop but i cant
 
Old 03-05-2009, 02:40 AM   #7
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Hi There,
In case you want to delete something but it is not allowing you to delete files, then either check permissions on the files, or use the switch -rf for remove command, i.e,
rm -rf <file name>


Quote:
Originally Posted by minaesm View Post
there are folders which i want to delete from my desktop but i cant
 
Old 03-05-2009, 02:50 AM   #8
minaesm
Member
 
Registered: Oct 2008
Posts: 38
Blog Entries: 3

Rep: Reputation: 15
the permission is root and i also tried that rm -rf but again the same message appeared .
 
Old 03-05-2009, 09:51 PM   #9
kyle_p
LQ Newbie
 
Registered: Mar 2009
Location: Canada
Distribution: CentOS, RHEL*, SuSE*, *
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by minaesm View Post
the permission is root and i also tried that rm -rf but again the same message appeared .
This is one of the major reasons I dislike Ubuntu. Is it really too hard to use su -c 'cmd' ??? Or set a root passwd and still make the 1st user a full sudoer by default???

Thats just my two cents; sorry for the rant. Back to your issue...

sudo su -

Will get you into root. Then you may use rm -rf on that directory as the previous poster suggested. And I will warn you in case you don't know; root and rm -rf although needed can be very harmful to the integrity of your system so think before you type.
 
Old 03-06-2009, 01:50 AM   #10
mcsaky
LQ Newbie
 
Registered: Feb 2009
Location: Lancaster, CA
Distribution: RH, SUSE, Ubuntu
Posts: 13

Rep: Reputation: 0
Hey try this.

Code:
sudo passwd
This should allow you to set the password for root. Then if you still have problems removing the file in X try opening a terminal head to hrm, /home/username/Desktop ? and

Code:
sudo rmdir directoryname/
It should ask you for the same password as you entered in the sudo passwd command above.

I did this and it worked fine for me. Hope it works for you.
 
Old 03-06-2009, 06:47 AM   #11
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Traditionally, the 'rmdir' command does not work if the directory is not empty. You have to do 'rm -rf' instead. With Ubuntu, which was designed for families with exploratory children, you may be allowed to do it with sudo, (sudo rm -rf directory), if the administrator allows you to do so.

If you don't like the extra typing involved with sudo, install Debian....if the administrator will allow you to do so.

If you're stuck with Ubuntu because your a child under a parent's control, type 'sudo' once and a while and hit enter, you'll get an error or nothing, but at least you don't have to type it at every command, all you have to do is hit the up arrow key to go through the bash_history of past commands till it shows up, then add the root command you're allowed to use, and you'll save having to type those extra four letters...since you're lazy enough to complain about it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NFS Root setup - can't log in as root after CHMOD ? gallwapa Linux - General 1 04-02-2007 05:31 AM
Cannot log into root! Nox_hand Linux - Security 3 09-21-2005 02:01 AM
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 05:18 PM
Log Out root Then Log In As Other User xtremcoder Linux - General 4 10-05-2004 12:01 AM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 01:07 PM


All times are GMT -5. The time now is 05:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration