Digital Paint Discussion Board

Paintball 2: The Game => Help and Support => Topic started by: steevegl on February 01, 2008, 04:00:14 PM

Title: How to run paintball with root
Post by: steevegl on February 01, 2008, 04:00:14 PM
small question, where is the option for run paintball with root:

root@awaw:~/tmp/paintball2# ./paintball2
Error: Paintball 2 does not run as root for security reasons.
Title: Re: How to run paintball with root
Post by: Cameron on February 01, 2008, 04:13:59 PM
Why would you need to?  Create another account and play paintball on that.  Root is used for installing applications and using configuration editors, not for playing games.
Title: Re: How to run paintball with root
Post by: KnacK on February 01, 2008, 04:26:10 PM
Agreed.

NEVER run paintball as root.

NEVER log in as root - always sudo when you need root privileges.
Title: Re: How to run paintball with root
Post by: Cameron on February 01, 2008, 04:31:01 PM
NEVER log in as root - always sudo when you need root privileges.
On most of the linux distribustions these days you cant login as root.
Title: Re: How to run paintball with root
Post by: y00tz on February 01, 2008, 04:39:02 PM
On most of the linux distribustions these days you cant login as root.

Interesting, not in my experience.
Title: Re: How to run paintball with root
Post by: Cameron on February 01, 2008, 05:01:54 PM
You have ubuntu y00tz?
If you do try logging is as root.
Title: Re: How to run paintball with root
Post by: KnacK on February 01, 2008, 05:09:10 PM
On some distributions you can still log in locally as root, but no telnet or ssh.
Title: Re: How to run paintball with root
Post by: Zorchenhimer on February 01, 2008, 05:37:59 PM
Its an option that off by default.
Title: Re: How to run paintball with root
Post by: XtremeBain on February 01, 2008, 05:53:56 PM
You can login as root on any distribution, it's just a matter of how much effort they put into stopping you from logging on as root.
Title: Re: How to run paintball with root
Post by: Cameron on February 01, 2008, 08:58:38 PM
You can login as root on any distribution, it's just a matter of how much effort they put into stopping you from logging on as root.
Teach me.  I would love 2 know.
Title: Re: How to run paintball with root
Post by: sk89q on February 01, 2008, 09:19:31 PM
You can login to root easily on Ubuntu.

Code: [Select]
sudo passwd rootAnd set a password for the root account.
Title: Re: How to run paintball with root
Post by: Cameron on February 02, 2008, 01:21:09 AM
umm...... Thats kinda easy 2 do.

I'm talking about logging in from the login screen.  Lemme get my virtual machine up and i'll post an image.

EDIT: Crap.  Because I had a power outage the other night the external drive its on is kinda screwed.  Might take some time.
Title: Re: How to run paintball with root
Post by: sk89q on February 02, 2008, 02:06:29 AM
You cannot login from the login screen until you do that command regardless. Ubuntu locks the root account by default.
Title: Re: How to run paintball with root
Post by: Zorchenhimer on February 02, 2008, 02:14:23 AM
You cannot login from the login screen until you do that command regardless. Ubuntu locks the root account by default.

Actaully, I believe you can get into the desktop with root privileges and without a password.  Boot up into the recovery console and type "startx".
I remember I was able to login that way, and I don't think I ever entered a password for that.
Title: Re: How to run paintball with root
Post by: Cameron on February 02, 2008, 05:14:52 AM
lol, startx.

do that in ubuntu and it becomes grey and crap, doesnt look nice.  darn VMWare screwed itself with the images as well, need 2 reinstall and OMG it takes ages.
Title: Re: How to run paintball with root
Post by: Cameron on February 02, 2008, 05:45:04 AM
Ok, this is what i get when i try login as root

(http://i260.photobucket.com/albums/ii24/camachino/root.jpg)

Kinda annoys me but i get over it.  I'll try get an image of the startx thing.
Title: Re: How to run paintball with root
Post by: Zorchenhimer on February 02, 2008, 01:36:34 PM
Ok, this is what i get when i try login as root

Kinda annoys me but i get over it.  I'll try get an image of the startx thing.

At your GRUB screeen select the "Recovery Console"

This is an example of a GRUB menu:

(http://www.idevelopment.info/data/Oracle/DBA_tips/VMware_Workstation_60/images/create_vm_solaris_10_x86_ISOLARIS10X86_1.gif)

Naturally yours will say "Ubuntu" instead of "Soalaris", etc.

Note: You may have to press "Esc" during boot in order to get to it.
Title: Re: How to run paintball with root
Post by: Cameron on February 02, 2008, 03:45:55 PM
I know that. I need to configure the cfg or whatever it is file to actually show the list, not just show it for like 0.0000001 of a second.  Then i'll get a screen of what it looks like with startx.
Title: Re: How to run paintball with root
Post by: Eiii on February 02, 2008, 04:53:07 PM
Why do you even want to log in as root?
Title: Re: How to run paintball with root
Post by: Cameron on February 02, 2008, 06:02:29 PM
Because i do :)
Title: Re: How to run paintball with root
Post by: Eiii on February 02, 2008, 09:20:57 PM
It's a pretty terrible idea. >_>
Title: Re: How to run paintball with root
Post by: Zorchenhimer on February 02, 2008, 10:52:45 PM
Yea, its not the brightest thing to do.  You can easily screw over your computer (like with "rm -r /" instead of "rm -r ./").
Title: Re: How to run paintball with root
Post by: jitspoe on February 02, 2008, 11:27:54 PM
rm -rf /bin/laden
Title: Re: How to run paintball with root
Post by: KiLo on February 02, 2008, 11:46:12 PM
bin laden?

jitspoe=terrorist? ;D
Title: Re: How to run paintball with root
Post by: y00tz on February 03, 2008, 02:21:53 AM
rm -rf /*

Heh, I just made infinite jokes.
Title: Re: How to run paintball with root
Post by: Eiii on February 03, 2008, 02:41:43 AM
I caught 'rm -rf /y00tz/isnt/funny'. That one was my favorite. ;)
Title: Re: How to run paintball with root
Post by: KnacK on February 03, 2008, 09:02:06 AM
I caught 'rm -rf /y00tz/isnt/funny'. That one was my favorite. ;)
> /bad/joke/bin
Title: Re: How to run paintball with root
Post by: Zorchenhimer on February 03, 2008, 12:52:29 PM
Hehe.  Look what I started.  ^_^
Title: Re: How to run paintball with root
Post by: Eiii on February 03, 2008, 02:07:00 PM
> /bad/joke/bin
I'd prefer > /dev/null
Title: Re: How to run paintball with root
Post by: yossarianuk on February 05, 2008, 01:07:46 PM
Often in Linux distros root is denied X access (for security reasons) by default.

I believe it is in ubuntu (you have sudo..) I can access X games in opensuse / mandriva as root though.

I it really never a good idea............

To login as root in Ubuntu:-

- login as normal user
- create root password with

sudo passwd root 
(type your password - then your new root one..)

Now you can su -

(so although you enter KDE (or if your sick gnome..) as normal user you will have full root access in a console)

- Please note that by default Ubuntu wan't allow root to access X apps, you can always use sudo as normal user though.

However as mentioned loads of times - - it is not a good idea to run games in Linux as root!!