LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-03-2008, 09:23 PM   #1
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Rep: Reputation: 30
Ubuntu 8.04 SU to Root?


Hello,

I have installed ubuntu 8.04 i386 to a spare machine and I'm having trouble with my sound card.

I was going to run alsaconf and to my surprise I cannot SU to root because I dont know the password.During installation I dont think I was ever asked to supply a root password?

If anyone can give me the default root password for this distro I would greatly appreciate it.

Thanks alot
 
Old 06-03-2008, 09:53 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Smile

Hi there PipeDreams,

at terminal, type

$ su -s

and give your own password, that is the password you setup for the first user when you installed. In Ubuntu, you have to specifically assign a password to root. It is assumed that the person who installed the OS should be on the 'sudoer' list. Hope you can follow that!
 
Old 06-03-2008, 10:18 PM   #3
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
Quote:
jeff@ollie:~$ su -s
su: option requires an argument -- s
Usage: su [options] [LOGIN]

Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login make the shell a login shell
-m, -p,
--preserve-environment do not reset environment variables, and keep
the same shell
-s, --shell SHELL use SHELL instead of the default in passwd
Thats what I get in return.

Thanks for the help.Its been awhile for Ubuntu.
 
Old 06-04-2008, 01:06 PM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Sorry pipedreams, i shoulda been clearer! the '$' is meant to mean your prompt as a non-root user. '#' generally denotes that you are root. so, at terminal, try

su -s

su means the same as every other linux distro, and the -s flag/option means you want to become supervisor. try again, and see how it goes for you??
 
Old 06-04-2008, 07:51 PM   #5
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
Pipedreams --

Ubuntu is set up to use the sudo command on the command line. Just enter:
Code:
sudo (whatevercommandyouwanttoexecute)
It will then prompt you for your normal user password. You can then enter some more sudo (command) entries for about the next 5 minutes without the need to re-enter your password during that time.

The sudo configuration in the *buntu distros allows you to do almost any system level command that is normally allowed for a "root" user.

Last edited by jglen490; 06-04-2008 at 07:51 PM. Reason: Oops!
 
Old 06-04-2008, 07:57 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
sudo -i will do it.
 
Old 06-04-2008, 09:56 PM   #7
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
Thanks for the replies.

I found that
Code:
sudo gedit /blah/blah/blah
allowed me to do what I needed to do after my user password.

However I still have a soundcard issue(no sound) and
Code:
sudo alsaconf
did not run the utility.

Does ubuntu have a soundcard config utility out of the box?

Thanks alot for the help.
 
Old 06-05-2008, 12:27 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
There is no alsaconf in Ubuntu (they've joined the distros that remove useful tools and replace them with their own).
 
Old 06-05-2008, 06:36 AM   #9
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by PipeDreams View Post
Thanks for the replies.

I found that
Code:
sudo gedit /blah/blah/blah
allowed me to do what I needed to do after my user password.

However I still have a soundcard issue(no sound) and
Code:
sudo alsaconf
did not run the utility.

Does ubuntu have a soundcard config utility out of the box?

Thanks alot for the help.
So run lspci in a terminal, and see how it identifies your sound device. Post it here and we can try to help.

IGF
 
Old 06-05-2008, 10:11 AM   #10
hex1a4
Member
 
Registered: Dec 2007
Location: ON CA
Distribution: Xubuntu 8.04; Xubuntu 6.06.2
Posts: 64

Rep: Reputation: 15
Quote:
Originally Posted by irishbitte View Post
$ su -s
This should be sudo -s. su's -s option is to specify the shell. Also, unless the root account is enabled, using su will not work. su which stands for 'switch user' and it will not switch to a disabled or nonexistant account. To be able to use su as root the root account must first be enabled.
 
Old 06-11-2008, 09:52 PM   #11
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
Sorry for the huge delay in responding.

I must admit I was trying to help a friend with his ubuntu machine with no sound.Out of curiosity I loaded the latest Ubuntu on a spare box I had and was surprised and a little dismayed.

Ubuntu picked up every piece of hardware I had including the usb wireless dongle and even had drivers for them all!Big change from a couple of years ago when I tried it.Way to go Ubuntu team.

What I dont understand is why I cant simply log in as root and have full control of MY machine and its os (That old MS leash scar around my neck is starting to throb)and yes alsaconf was a great utility.It ALWAYS worked with ANY hardware I used.Maybe I just got lucky.Anyway as soon as I can catch up with my friend I'll get The lspci statement and post it.

Thanks again for all the help.
 
Old 06-11-2008, 10:09 PM   #12
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by PipeDreams View Post
Sorry for the huge delay in responding.

I must admit I was trying to help a friend with his ubuntu machine with no sound.Out of curiosity I loaded the latest Ubuntu on a spare box I had and was surprised and a little dismayed.

Ubuntu picked up every piece of hardware I had including the usb wireless dongle and even had drivers for them all!Big change from a couple of years ago when I tried it.Way to go Ubuntu team.

What I dont understand is why I cant simply log in as root and have full control of MY machine and its os (That old MS leash scar around my neck is starting to throb)and yes alsaconf was a great utility.It ALWAYS worked with ANY hardware I used.Maybe I just got lucky.Anyway as soon as I can catch up with my friend I'll get The lspci statement and post it.

Thanks again for all the help.
Running the OS as root, is a security issue, and is not recommended on any distro. This is one reason why its so easy to get molested on Windows. If you want to do something as root, just use sudo.
 
Old 06-12-2008, 03:22 PM   #13
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
If you must have a root password it's as easy as:

sudo passwd

Then you can su to your heart's content. I stopped setting one a long time ago, though, I can't think of any practical reasons not to use sudo or gksu instead.
 
Old 06-18-2008, 11:38 AM   #14
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
On systems that use sudo,

$ sudo -s
will switch you to root after you successfully enter your password. You can also try

sudo bash,

which will start a bash shell running with root permissions. Don't forget to "exit" when your done with commands that need root!
 
Old 06-19-2008, 08:04 PM   #15
Doctorzongo
Member
 
Registered: Mar 2008
Distribution: Fedora 11
Posts: 72

Rep: Reputation: 16
Quote:
Originally Posted by PipeDreams View Post
Hello,

I have installed ubuntu 8.04 i386 to a spare machine and I'm having trouble with my sound card.

I was going to run alsaconf and to my surprise I cannot SU to root because I dont know the password.During installation I dont think I was ever asked to supply a root password?

If anyone can give me the default root password for this distro I would greatly appreciate it.

Thanks alot
Ubuntu does not by default use a root password. You use SUDO, which uses your own password to perform root tasks.

If you really want to use root, (assuming you are using GNOME) go to System > Administration > Users and Groups.

Then set root password.

To log in via login window, go to System > Administration > Login Window > Security and check the box for allowing root login.

Good luck!
 
  


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
ubuntu, I can no longer become root or have root rights TroelsSmit Linux - Newbie 7 03-24-2007 07:17 PM
Ubuntu root craigissexy Linux - Newbie 2 01-09-2006 11:45 PM
does Ubuntu have a root mystic_durle12 Ubuntu 9 11-05-2005 05:28 PM

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

All times are GMT -5. The time now is 08:09 PM.

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