View previous topic :: View next topic |
Author |
Message |
eightimmortals n00b
Joined: 29 Nov 2005 Posts: 14
|
Posted: Thu Jan 26, 2006 7:59 am Post subject: launching a program as root. |
|
|
Hi,
I've been trying to use xfce launch shortcut buttons to launch a particular application that requires root privileges. Now i know of 'su' and 'sudo' command but the problem with those is that they both require a terminal. i need a command to be lanched at a click of the button, the command will elevate privileges after asking me for the root password and continue the command excuting the program with wine due to the program being a win32 application. Does anyone of how to structure such a command? |
|
Back to top |
|
|
gwolf Guru
Joined: 05 May 2005 Posts: 374 Location: Estonia
|
Posted: Thu Jan 26, 2006 8:04 am Post subject: |
|
|
You may try gksu (or gnomesu or kdesu). Don't know how many prerequisites they need. _________________ War is peace. Freedom is slavery. Ketchup is a vegetable. |
|
Back to top |
|
|
MadEgg l33t
Joined: 06 Jun 2002 Posts: 678 Location: Netherlands
|
Posted: Thu Jan 26, 2006 8:23 am Post subject: Re: launching a program as root. |
|
|
eightimmortals wrote: | Hi,
I've been trying to use xfce launch shortcut buttons to launch a particular application that requires root privileges. Now i know of 'su' and 'sudo' command but the problem with those is that they both require a terminal. i need a command to be lanched at a click of the button, the command will elevate privileges after asking me for the root password and continue the command excuting the program with wine due to the program being a win32 application. Does anyone of how to structure such a command? |
Why would an win32 application run using wine need root privileges anyway? It's an emulator, so as far as the win32 application concerns, it has administrator privileges, and wine itself doesn't need root privileges... _________________ Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755 |
|
Back to top |
|
|
sirtalon42 Tux's lil' helper
Joined: 09 Aug 2005 Posts: 79
|
Posted: Thu Jan 26, 2006 6:30 pm Post subject: |
|
|
You should never run WINE as root (or a user in the disks group), there have been bugs in wine in the past that would wipe out your MBR (like if you tried to change the volume label of a non-fat32 drive) |
|
Back to top |
|
|
eightimmortals n00b
Joined: 29 Nov 2005 Posts: 14
|
Posted: Thu Jan 26, 2006 9:48 pm Post subject: |
|
|
well that doesnt sound good. I needed to run wine as root due to the application. im trying to run a win32 dissasembler and with a regular user it cant open any file to dissasemble? kinda weird, so i ran wine as root and it worked fine. Now i couldnt find much information about why i cant open files under a regular user, no logs, and not much info on the web. so i couldnt just change permissions in something when i dont what exactly. Thanks anyways though to everyone who helped! |
|
Back to top |
|
|
drwook Veteran
Joined: 30 Mar 2005 Posts: 1324 Location: London
|
Posted: Thu Jan 26, 2006 9:52 pm Post subject: |
|
|
ummm... You really shouldn't ever need to run wine as root. Are you certain the user wine was running under had permissions to the file you tried to open under your windows doohickey? |
|
Back to top |
|
|
eightimmortals n00b
Joined: 29 Nov 2005 Posts: 14
|
Posted: Fri Jan 27, 2006 12:59 am Post subject: |
|
|
well i set everything to be owned by the user and it has all the appropiate rwx permissions for the files dependancies. since it does work under root but not regular user im guessing not all permissions are correct so i will just have to investigate a little further and eventually get everything working. |
|
Back to top |
|
|
|