UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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!
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
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??
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!
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.