PDA

View Full Version : [ubuntu] What Version Am I Running?



randell6564
March 26th, 2010, 10:59 PM
OMG..it's been a long time since I've been around the Ubuntu forums. Glad to be back.
I have two questions;

(1) What is the syntax for the command to see what version of Ubuntu is running on this box?
It's been so long I've forgotten how to use the command line.

(2) Nobody knows the root password so we cant install anything or run updates. Cant I run as temporary root to accomplish these tasks; ie"sudo"?

Thanks!

new_tolinux
March 26th, 2010, 11:01 PM
For what the version-question: no idea.

About sudo/root: there is no root-password, since Ubuntu has no working root account. Everything you want to do as root will need sudo from an account that has the privileges to run sudo.
When you want to do "a lot" as "root" try "sudo bash", type your user-password and then you will be root@localmachine. An "exit" will bring you back to user@localmachine status.
Edit: this is only for that terminal shell, not for the gui. Although you can use the terminal to start programs that are using the gui with root-privileges that way. So "nautilus" from a root-terminal will give you a root-privileged nautilus window for example.

sisco311
March 26th, 2010, 11:07 PM
(1) What is the syntax for the command to see what version of Ubuntu is running on this box?

It's been so long I've forgotten how to use the command line.



lsb_release -a



(2) Nobody knows the root password so we cant install anything or run updates. Cant I run as temporary root to accomplish these tasks; ie"sudo"?


By default, the root account password is locked. You can to use sudo to run an application as root (it will prompt for your user password):
community/RootSudo

macogw
March 26th, 2010, 11:07 PM
1: lsb_release -a
2: Yes, sudo is how things work around here. Your user password is the password to enter when it asks. And contrary to what the person above said, you should *not* use "sudo" with graphical apps. For those, use gksudo or kdesu.

new_tolinux
March 26th, 2010, 11:16 PM
2: Yes, sudo is how things work around here. Your user password is the password to enter when it asks. And contrary to what the person above said, you should *not* use "sudo" with graphical apps. For those, use gksudo or kdesu.

What's the difference? Never gave me any problem, at least not any I found.
To me gksudo is just 2 more characters to type.

Edit: this is a serious question.

coffeecat
March 26th, 2010, 11:50 PM
What's the difference? Never gave me any problem, at least not any I found.
To me gksudo is just 2 more characters to type.

Edit: this is a serious question.

And here's the serious answer.

Short answer:

https://help.ubuntu.com/community/RootSudo#Graphical%20sudo

More detailed answer:

http://www.psychocats.net/ubuntu/graphicalsudo

new_tolinux
March 27th, 2010, 12:32 AM
Ok thanks for the information, now I understand why I never had any problems:

Why is it an issue?
Well, to be perfectly honest, most of the time it isn't. For a lot of applications, you can run them the improper way—using sudo for graphical applications and see no adverse side effects.

I'll skip the rest, because that's far away from the OP's question.

randell6564
March 27th, 2010, 12:44 AM
lsb_release -a



By default, the root account password is locked. You can to use sudo to run an application as root (it will prompt for your user password):
community/RootSudo
Thank you sisco, and everyone but, what if you dont know the user password? As I said, the person who installed ubuntu on this box is not here and we cant run "sudo install-updates" or run updates from the package manager, OR install anything because I keep getting asked for a password.

wojox
March 27th, 2010, 12:48 AM
Try and reset it: http://www.psychocats.net/ubuntu/resetpassword

2hot6ft2
March 27th, 2010, 12:59 AM
What's the difference? Never gave me any problem, at least not any I found.
To me gksudo is just 2 more characters to type.

Edit: this is a serious question.
Then try gksu, there same number of letters...;)

sisco311
March 27th, 2010, 01:05 AM
Then try gksu, there same number of letters...;)

gk<tab> = 3

sud<tab> = 4

:evil:

randell6564
March 27th, 2010, 03:51 AM
Try and reset it: http://www.psychocats.net/ubuntu/resetpassword
Yeehaw...thank you wojox that worked! thanks to everyone.