How to start a window as root in X

Hi everybody,
I managed to install Arch on my old laptop.
Besides some other problems (i might come back here) I'd like to start soem applications/windows (terminal or any other app.) in my DE (icewm) as root when I'm logged in as normal user.
How can I do this?
McQuack

Well now,
This 'never-do-anything-as-root' ideology is a bit paranoid if you ask me. There are many cases where it's very convenient to be logged in as root.
Windows users aren't getting in trouble because they run programs with Administrator priveleges, they get in trouble because they download obscure binaries from doubtful websites, and then decide to run them with Administrator priveleges. Windows users also use programs that have secret document formats that may contain hidden executable code. Then they use e.g mail programs that may seemlessly run those executables for you, without your knowledge (MS is always service-minded), if they should happen to turn up as an attatchment to some spam.
If you're not administring a big server park for some huge company, root could be a good thing. There are few (not none) security concerns. The biggest concern is that as root, you can mess up your system really badly. Using kdesu, gnomesu, sudo or sudoedit, whatever, will not protect you from your own messing around.
By the way, I actually thougt your question was about starting an X program as root.
You have probably started the X server as your normal user, and in Arch, that means only your normal user will be allowed to open windows, not even root will be allowed. To give root and all other users logged on to your computer (usually only yourself) permission to open windows, type this into a terminal (as your normal user):
$xhost +localhost
And if you have a network at home, you can let all the users on any machine open windows on your machine, like this:
$xhost +
It will probably let anyone on the internet open windows as well, but the programs will be running on their computers.
If your machine has the ip address 192.168.1.2 and the other has 192.168.1.3, then the other can open windows on your machine like this:
DISPLAY=192.168.1.2:0 qiv nice_picture.jpg
I remember a long time ago, in 1993, when the internet was mostly on university unix machines, and no one had to be concerned with security unless they had secrets to hide, I sat and read my mail, and suddenly a picture of Cindy Crawford popped up on my screen. Well, nowdays such things happen all the time if you don't have popup protection.
But what had happened was that some friends of mine studying in another town, had read from the totally open user list on my school's server, and found out exactly which machine I was logged into, and then they started a program on their machine, but let the display be on my machine hundreds of miles away.
Oh, I'm sorry, I'm a bit off topic here, but at least I think I gave an answer to the question asked

Similar Messages

  • How to start x-windows through hummingbird

    Can anyone tell how to start X-windows through hummingbird?
    Thanks
    Prudhvi

    Hi
    Make sure that you set the DISPLAY env varible properly, i.e. it should point where the exceed is started.
    Make sure by running xclock command.
    And then follow as per Dinesh told in the previous reply.
    HTH
    Regards
    Nikhil

  • Compiz: How to start all windows maximized?

    Hi all,
    I'd like to start all windows maximized on my netbook running compiz. There is a an option in "Window Management/Window Rules/Matches". Putting a value of "class=" in the box will set all windows maximized but cannot be un-maximized.
    Is there an option somewhere to start all applications maximized but allow to un-maximized them later on?
    Thanks!

    Not aware of a plugin but try this - https://aur.archlinux.org/packages.php?ID=22071

  • How to start a window minimized?

    Is there anyway that I could use to start a program with its window minimized, or even if possible, to start the GUI program runing at the background without showing up its tail?

    Look at the frame.setState(int )
    setState
    public void setState(int�state) Sets the state of this frame. Parameters:state - Frame.ICONIFIED if this frame is in iconic state; Frame.NORMAL if this frame is in normal state.See Also:

  • How to start CPS in windows

    After the server reboot I can't bring CPS back up in Windows server.  Can anyone tell me how to start CPS?  i have tried start from JRun but didn't work.  Below are the error i got.
    10/28 09:22:42 error Deployer Service failed to deploy C:\Program Files\Macromedia\Contribute Publishing Server\jrun4\servers\contribute-wps\contribute
    [3]java.net.MalformedURLException: no protocol: Files/Macromedia/Contribute
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at sun.rmi.server.LoaderHandler.pathToURLs(Unknown Source)
        at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source)
        at java.rmi.server.RMIClassLoader$2.loadProxyClass(Unknown Source)
        at java.rmi.server.RMIClassLoader.loadProxyClass(Unknown Source)
        at sun.rmi.server.MarshalInputStream.resolveProxyClass(Unknown Source)
        at java.io.ObjectInputStream.readProxyDesc(Unknown Source)
        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.rmi.MarshalledObject.get(Unknown Source)
        at jrun.naming.JRunNamingContext.connectToNameServer(JRunNamingContext.java:1412)
        at jrun.naming.JRunNamingContext.getRemoteContextProxy(JRunNamingContext.java:1319)
        at jrun.naming.JRunNamingContext.getContextProxy(JRunNamingContext.java:1135)
        at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:517)
        at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:495)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at jrunx.util.EncContextUtil.initializeENC(EncContextUtil.java:78)
        at jrunx.util.EncContextUtil.initializeServerENC(EncContextUtil.java:52)
        at jrun.servlet.WebApplicationService.initializeENC(WebApplicationService.java:1524)
        at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:254)
        at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
        at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
        at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
        at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
        at jrun.deployment.DeployerService.run(DeployerService.java:891)
        at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [2]javax.naming.CommunicationException: no protocol: Files/Macromedia/Contribute [Root exception is java.net.MalformedURLException: no protocol: Files/Macromedia/Contribute]
        at jrun.naming.JRunNamingContext.connectToNameServer(JRunNamingContext.java:1417)
        at jrun.naming.JRunNamingContext.getRemoteContextProxy(JRunNamingContext.java:1319)
        at jrun.naming.JRunNamingContext.getContextProxy(JRunNamingContext.java:1135)
        at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:517)
        at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:495)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at jrunx.util.EncContextUtil.initializeENC(EncContextUtil.java:78)
        at jrunx.util.EncContextUtil.initializeServerENC(EncContextUtil.java:52)
        at jrun.servlet.WebApplicationService.initializeENC(WebApplicationService.java:1524)
        at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:254)
        at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
        at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
        at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
        at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
        at jrun.deployment.DeployerService.run(DeployerService.java:891)
        at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Caused by: java.net.MalformedURLException: no protocol: Files/Macromedia/Contribute
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)

    9iR2: http://download-west.oracle.com/docs/cd/B10501_01/win.920/a96111/toc.htm
    10gR2: http://download-east.oracle.com/docs/cd/B19306_01/win.102/b14321/toc.htm

  • How to start a application with a login window?

    hi there
    does anyone have any idea on how to start an application with a login window? a login window is the first frame or window to be displayed when an application starts running. and only correct login id and password have been entered the real application will start. any sample out there? thank you.

    You can start a new thread by making a thread object and passing it an implementation of a runnable object. Runnable has just one method, public void run(), this is was gets executed in a second thread. perhaps the code you would use would look something like this.
    <code>
    // set up thread for login window
    new Thread(new Runnable() {
    public void run() {
    // construct your login window here
    // when you are done processing the
    // password....
    if(goodPassword) {
    authorized = true; // a global variable
    notifyAll(); // don't forget this
    else {
    System.exit(42);
    }).start();
    // control does not stop this code gets executed while
    // the above thread is running.
    // Set up main program here. This is done in the
    // backround.
    while(!authorized) {
    synchronized(this)
    { wait(50); }
    // now when the user logs in this frame pops
    // up real quick.
    myFrame.setVisible(true);
    </code>
    Hope you can figure it out.. good luck :)

  • How can I run a java-application on starting of Windows 2000

    How can I run a java-application without any user on starting of Windows 2000?
    For example, if the computer is restarted and nobody enter into it yet, my java-application should run anyway.
    How can I do that?

    Hi, you have to put it in a Windows service.
    To do this you have a program, Srvany.exe that allow to insert a .exe or .bat program in a Windows service.
    For example, i develop a program, TomcatGuardian and i put it in a service because i need to run it in a server without Administrator logged in.
    Regards,
    Ivan.

  • My 6th generation nano isn't recognized by my computer. When I plug it in an error message pops up, which says "USB Device Not Recognized". Does anyone know how to start trouble shooting this. I updated both windows and iTunes.

    My 6th generation nano isn't recognized by my computer. When I plug it in an error message pops up, which says "USB Device Not Recognized". Does anyone know how to start trouble shooting this? I updated both windows and iTunes.

    Work through all the suggestions in this Apple support document first.
    iPod: Does not appear in Windows or iTunes and Device Manager is empty
    B-rock

  • If you've changed your startup options on mac to start in windows, how do you fix and go back to mac on startup?

    if you've changed your startup options on mac to start in windows, how do you fix and go back to mac. I can't get my mac to switch back to mac, it is like stuck in widows mode, I have tried holding down the options key upon start up and that did not fix it either.
    Please help! Thank you so much!

    The Apple drivers you install in Windows also puts a Startup Drive icon in the Task Bar. Choose that to change the startup disk back OS X.

  • How to start OS X instead of Windows

    Hello,
    I installed OS Snow Leopard (latest version) and decided to install Win 7 Pro
    After succeeding, i used the original DVD Snow Leopard to install Boot Camp
    When all files where installed, i was asked to restart OK
    Restarted, but !... don't restart ! stay as a dead computer.
    Retried several times, no way !
    My question (forgot !) HOW to start from nothing to the OS X system ?
    Can someone tell me what kind of keys to push during restarting and opening  OS X ?
    So i can reformat Windows partition and restart a new installation (hope it will work !).
    Thanks for your comment,
    Regards,
    Jean

    Hold option key while booting and then choose the OS X partition.

  • Help! How to start windows in boot camp?

    I have read several posts on this but I still cannot seem to get it started. I recently bought a macbook with bootcamp set up with windows xp. I had vmware fusion on my computer to use windows but I uninstalled it because I cannot use it for the purpose of windows that I need. Now, I do not know how to start windows on my computer. I cannot use a virtual machine because my exam software that I use for school will not start up when using a virtual machine.
    I restart my computer and hold down the option key and the only hard drive that shows up is the Mac HD. The boot camp drive does not show up. So, if I cannot start windows that way...is there any other way???
    THANKS!

    I cannot use a virtual machine because my exam software that I use for school will not start up when using a virtual machine.
    It requires DirectX 9? Huh?
    I restart my computer and hold down the option key and the only hard drive that shows up is the Mac HD.
    That sounds like your computer came with VM Fusion, and was not set up with boot camp. Please prove me wrong.
    First, how many disk icons are on your Mac OS desktop? Is there just the Macintosh HD icon, or is there another disk icon labelled, say, "Untitled" or "Boot Camp".
    Second, open /Applications/Disk Utility. Select your hard drive (not the Macintosh HD volume, but the actual hard drive, just above the Macintosh HD volume). Then click the "partition tab". How many partitions do you have. Does it show one HFS+ Journaled volume, or more than one partition and of what types.
    Third, if you did see a second disk icon in step one, select it and hit CMD-I. What is its used and free space? Open it in Finder: is there a boot.ini file? A Windows folder?
    Fourth--I should have thought of this first, sorry--some MacBooks have a bug that Option doesn't let you select an OS. So open Apple > System Preferences > Startup Disk and see if there is a Windows there for you to select. If so, select it and "reboot now" to boot into Windows. To boot back into Mac OS, you can either use the option key, or use the boot camp system tray icon to select Mac OS as your startup disk.
    Finally, did your computer come with a Windows XP CD?

  • How to start or shut down database using sql developer in windows

    Dear Sir/Madam,
    how we start or shut down database using sql developer in windows
    we are using oracle 11g release2, unix, java & oracle oracle weblogic administration
    Thanks & Regards
    Manish Kumar
    Datbase Team
    TCS Ltd.

    HI, Welcome to OTN form,
    SHUTDOWN is not a SQL statement but a SQL*Plus command . You cannot use SHUTDOWN in PL/SQL.
    Check following link:
    http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve042.htm#i2699551
    More Information please check OTN discussion: https://forums.oracle.com/thread/2349159
    Thank you

  • How to start OracleServiceORCL in oracle7.3.4 for windows NT ??

    Hello everybody,
    Can anybody tell me,
    How to start OracleServiceORCL in oracle7.3.4 for windows NT ??
    when I am trying to start it it shows an error :
    Could not start the OracleServiceORCL service on \\NT4
    Error 0126: the specified module could not be found.
    -thanx

    Hello Manoj,
    There are two ways to start oracle service on WindowsNT.
    a) Open command prompt
    net start OracleServiceORCL
    (or)
    net stop OracleSerciceORCL
    b) Launch Services Window.
    Start -> Run -> Services.msc
    Navigate to OracleServiceORCL and try to start the service.
    Hope this helps.
    Sri

  • How to start ProC in windows xp

    Hi,
    i have Oracle10g client and database server installed on my windows xp.
    i am not sure how to start ProC.
    and is there a GUI ProC that i can start.
    Can someone guide me please.
    Thanks,
    Philip.

    9iR2: http://download-west.oracle.com/docs/cd/B10501_01/win.920/a96111/toc.htm
    10gR2: http://download-east.oracle.com/docs/cd/B19306_01/win.102/b14321/toc.htm

  • How to start Windows in Bootcamp?

    Hi,
    I have installed Windows succesfully with bootcamp and I do know how to start Windows on start up. But when I restart with the option key held down, select the Windows system and push the button with the straight arrow, Mac Os X starts and not Windows.
    Does anyone have the same problem? And how can I fix this?
    I know that I can also open the Startup Disk pane of System Preferences and then select the Windows system, and restart the computer. But Why doesnt it work on start up?
    Thanks in advance.

    https://www.youtube.com/watch?v=rMDjZQqz-i8
    Steps:
    1-Open command prompt with admin mode
    Or Boot from DVD in command prompt mode.(This is what i experienced, able to show the safe mode menu)
    2- Write this command "bcdedit /set {default} bootmenupolicy legacy" and click enter
    3- You can now press F8 while Windows 8 starts in order to access Safe Mode and other Advanced Boot options.

Maybe you are looking for

  • Wi-Fi Proxy settings work in Safari, but not recognised by other apps?

    Hi all, At home, my iPod Touch (gen two, Firmware 2.2.1) connects fine to our wireless router and all applications (e.g. Safari, Tap Tap Revenge 2 etc) can access the internet. We have no proxy setting at home.. Then, at uni we use special "manual ht

  • Can we do  a interface With out  assigning the TS and BS to the SWC

    Hi,      With  out assigning  the  Technical system and Business system to the particular  software component..    can we do the Scenario.. my Scenario is the  File to  RFC... for this...  the Receiver system ( SAP- R/3 ) is  need to maintain entry i

  • Why are i messages not delivered?

    Why are some I messages not delivered?

  • Import songs onto CD

    I updated my itunes last night, and tried to burn a playlist to a cd today. The burn to CD button isn't there, nor is there any option in the file menu even though itunes recognizes there is a cd in the drive and prompts me to click on the burn butto

  • Draging images from photoshop to illustrator

    Hello, I am attempting drag images made in photoshop cs5 in illustrator cs5 on a mac. However when I do this any transparent portions of the photoshop image fill with white. Is there any way to keep that from happening?