Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
launching a program as root.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
eightimmortals
n00b
n00b


Joined: 29 Nov 2005
Posts: 14

PostPosted: Thu Jan 26, 2006 7:59 am    Post subject: launching a program as root. Reply with quote

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
View user's profile Send private message
gwolf
Guru
Guru


Joined: 05 May 2005
Posts: 374
Location: Estonia

PostPosted: Thu Jan 26, 2006 8:04 am    Post subject: Reply with quote

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
View user's profile Send private message
MadEgg
l33t
l33t


Joined: 06 Jun 2002
Posts: 678
Location: Netherlands

PostPosted: Thu Jan 26, 2006 8:23 am    Post subject: Re: launching a program as root. Reply with quote

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
View user's profile Send private message
sirtalon42
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2005
Posts: 79

PostPosted: Thu Jan 26, 2006 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
eightimmortals
n00b
n00b


Joined: 29 Nov 2005
Posts: 14

PostPosted: Thu Jan 26, 2006 9:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
drwook
Veteran
Veteran


Joined: 30 Mar 2005
Posts: 1324
Location: London

PostPosted: Thu Jan 26, 2006 9:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
eightimmortals
n00b
n00b


Joined: 29 Nov 2005
Posts: 14

PostPosted: Fri Jan 27, 2006 12:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum