Danger of running EmelFM2 as root: configuration blown away!

Say you have a customized EmelFM2 configuration in /home/user/.config/emelfm2/ running as an ordinary user. Close EmelFM2, open up a root terminal and issue the 'emelfm2' command. Then close EmelFM2 and you'll see that the files within /home/user/.config/emelfm2/ are now owned by root! Run EmelFM2 as an ordinary user after this and these files will be overwritten with the default EmelFM2 configuration files, owned again by user rather than root. Your original customized configuration is lost forever ...
I think I've pinned down where the problem lies in the source: lines 305-307 in 'config/e2_cl_option.c' read:
if (e2_cl_options.config_dir == NULL)
usedir = g_getenv ("XDG_CONFIG_HOME");
If a configuration location isn't specified on the EmelFM2 command line, it defaults the location using $XDG_CONFIG_HOME which will still be set to the user's configuration directory even within a root terminal.
Any ideas about this, or is it really an upstream bug?

knopwob wrote:
how did you open the root terminal? It sounds, like you are using
su
instead of
su -
Ah yes, yes ... you are so right. Using the latter (forcing a login shell?) indeed works as expected, using /root/.config/emelfm2/ by default.
So, if I want to run EmelFM2 as root from (say) a keyboard shortcut, Gmrun or an Openbox menu item, what would be the safe way to do this? (I tried gksudo with the -l option, but it doesn't seem to work.)
Edit: Of course, just 'gksudo emelfm2' should, and seems to, work okay.
Last edited by ninian (2010-12-23 00:35:42)

Similar Messages

  • Oracle 11gR2 RAC: Running the script root.sh problem

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer and according to the tutorial
    http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I have been installing Grid Infrastructure using runInstaller from step 1 to step 9 of 10 in both VM rac1 and rac2.
    Now, I am running the script root.sh in VM rac1 and rac2 as below:
    [root@rac1 /]# /u01/app/grid/root.sh
    Output:
    CRS-4123: ohasd is starting
    FATAL: Module oracleoks not found
    FATAL: Module oracleadvm not found
    FATAL: Module oracleacfs not found
    ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
    ACFS-9310: ADVM/ACFS installation failed.
    ACFS-9311: not all components were detected after installation
    'UpdateNodeList' was successful.
    [root@rac1 /]#
    [root@rac2 /]# /u01/app/grid/root.sh
    Output:
    CRS-4123: ohasd is starting
    FATAL: Module oracleoks not found
    FATAL: Module oracleadvm not found
    FATAL: Module oracleacfs not found
    ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
    ACFS-9310: ADVM/ACFS installation failed.
    ACFS-9311: not all components were detected after installation
    Start of resource "ora.asm_init" failed.
    Failed to start ASM.
    Failed to start Oracle Clusterware Stack.
    [root@rac2 /]#
    As we see the output above, rac1 and rac2 get the same problems. in addition, rac2 fails to start ASM and Clusterware stack. Thus, I have 2 questions:
    First, the common problem for rac1 and rac2 :
    1)Module "oracleoks, oracleadvm, oracleacfs" not found
    2)/dev/asm/.asm_ctl_spec not detected
    3)ADVM/ACFS installation failed
    Do the above 3 factors affect Grid and DataBase Installation later ? If yes, how to solve these problems ?
    Second, how to start ASM and Clusterware stack in rac2 ?
    Thanks.

    you have 2 options:
    1. OEL 5.6 comes with 2 kernels, the original Red Hat, and Oracle UEK, you can choose not to use UEK
    or the one i would recommend:
    2. Upgrade Grid Infrastructure,
    *11.2.0.3.1* (patch 13348650, released about a 1 month ago) supports ACFS on UEK (starting with 2.6.32.200 IIRC)

  • I get error when I run Terminal /bin/bash: Please run this as root.

    Help!
    Every time I open Terminal I get:
    /bin/bash: Please run this as root.
    [Process completed]
    Any suggestions?

    FLYFI5H wrote:
    Help!
    Every time I open Terminal I get:
    /bin/bash: Please run this as root.
    [Process completed]
    Any suggestions?
    I wonder if there's a permissions problem with your /bin/bash. If you go to the /bin directory (presumably with the Finder's Go -> Go to Folder command, as Terminal isn't working for you), then do a "Get Info" on bash, what do you see as the permissions? Mine shows "system: Read & Write", "wheel: Read only", and "everyone: Read only".
    If you can't run Terminal, your diagnostic options may be limited. Do you have a second Mac that you could use to investigate the problem with this Mac in "target disk mode"?

  • I want to run KDE as root?

    It seems that I can't run KDE 3.2 as root.
    Anyone know how I can do this?
    I like being able to run KDE as root, because I like the GUI environment for setting up new users etc.
    I could do this in Gentoo.
    Also I don't run it as root all the time, and yes I know about the security risks involved, but it's on my home PC, and it's what I want to do.
    When I run startx from root it complains it can't find startkde.
    Thanks,
    Snorkel

    Well you can run as root when you log in (KDM)
    It is not a good idea to run as root all the time....but then its your system you can do what you want...
    Have you got
    exec startkde
    In your .xinitrc file ?
    Mr Green

  • MQ running as non-root

    hi,
    Is it possible to run message broker as non-root? If yes, how?
    Thank you.

    Yes - you can run as non-root.
    The default imqbroker data (var) directory is set up only to be readable by root, however you can run as a different instance name and it will then be owned by the new user (and that will be only readable by that user)
    e.g.
    imqbrokerd -name mybroker
    This (on solaris, you path will vary on other platforms) will create a new directory:
    /var/imq/instances/mybroker
    [you can also change owner of the imqbroker directory instead]

  • Su vs sudo : run dolphin as root[SOLVED]

    Hi,
    I am trying to understand the difference in how su and sudo work.
    I tried to run dolphin as root to add a mount point at /media/drivex
    with su :
    I type dolphin at the prompt
    and I get this error
    <unknown program name>(2348)/: KUniqueApplication: Cannot find the D-Bus session server: "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
    <unknown program name>(2347)/: KUniqueApplication: Pipe closed unexpectedly.
    dolphin doesnt work
    however,
    when I use sudo dolphin from a regular user,
    dolphin works even though I get a number of errs
    Error: "/var/tmp/kdecache-myx" is owned by uid 1000 instead of uid 0.
    kdeinit4: preparing to launch /usr/lib/libkdeinit4_kbuildsycoca4.so
    kbuildsycoca4 running...
    this is repeated a few times, as though it keeps retrying.
    1.Anyway why does su not work when sudo does?
    2. So when does one use su vs sudo?
    3. I did this yesterday and was able to add a mnt point for my esata drive. Today, I had to do it again. The mount point had disappeared. what may have happened?
    thanks
    Last edited by myxolam (2009-10-16 11:27:15)

    The only reason I use "su" (as "su -") is to create a new, clean session, just as logging in with that user.
    Using "sudo", or "su" without the dash creates a new environment inheriting the session variables from the current user, thus GUI apps can work fine (as they have inherited the $DISPLAY, $DBUS_SESSION_BUS_ADDRESS and other variables used by X applications).
    Anyway, as an alternative to "su", you could use "sudo -i".
    Another difference which is applicable to Ubuntu and maybe Arch, is that "su"ing to root you are asked for the root password, while using "sudo" you are asked for your password, not the "root" one.

  • Must run opatch as root user to apply patch #13348650 GI PSU (11.2.0.3.1)?

    Must patch #13348650 GI PSU (11.2.0.3.1) literally be executed as the root user?
    Or can opatch be executed:
    * With an individual sudo entry for opatch by the "oracle" or "grid" user?
    * By membership in /etc/sudoers (perhaps temporary for the duration of the patching)
    I see that at 11.2.0.3 the grid home gets locked for security purposes. And evidently running opatch "with root privileges" unlocks/relocks the grid home during the patching process.
    Thanks.
    Dana

    Thanks for your suggestion, I thought I have gone through the documents and prepared my self to start installing, if you can kindly help me to pin point the missing link that CRS do not recognize first node during root.sh execution in second node it will be great

  • [SOLVED]Home directory confusion when running Emacs as root

    Hi, just set up my first Arch system.  I've installed emacs-nox, and it insists on using the .emacs file of the one normal user I have set up, even when I'm not logged in as that user.  Bits in that .emacs file which use a tilde to signify $HOME do point to /root when I'm logged in as root, causing various weirdnesses.
    Here's what --debug-init says when I run emacs as root; if there's anything apart from the complaint about the "missing" (not in /root) haskell-mode files, I'm afraid it means nothing to me
    edit: nope, all of that junk really was about the haskell-mode stuff, so I'm deleting it since that's "fixed" by copying that stuff to /root/.emacs.d.  Now --debug-init tells me nothing and I still have no idea why emacs insists on using the dotfile in /home/j
    Last edited by cuns (2011-12-25 23:21:06)

    I have this issue, too if starting emacs after doing a "su" - when logging in as root it works as expecte. Googling brought the emacs changelog:
    1987-05-12  Richard M. Stallman  (rms at prep)
        * startup.el (command-line): If running under `su',
        use user's original login name to get init file.
        Otherwise use $HOME.
    A workaround would be to define an alias like
    alias emacs='emacs -u root'
    in your root's ".bashrc" (/root/.bashrc).
    Hope that helps,
    greetings
    matse

  • [SOLVED] [sudo] allow user to run commands as root

    Hello,
    I want to run programs like netctl and vpnc as normal user without typing in my password. This is what I've come up with for /etc/sudoers:
    myusername ALL = (root) NOPASSWD: /usr/bin/netctl, /usr/bin/vpnc, /usr/bin/vpnc-disconnect
    But running e.g. "netctl start someprofile" fails because access to the file `someprofile' is denied -- the file is owned by root and only root may read it.
    Doesn't running programs as root also mean that these programs can read files owned by root? Or is this a misconception and I should change permissions to the corresponding files?
    Thanks & Regards
    Edit:
    I just realized, that, with the setup above, "sudo netctl start someprofile" does work without demanding a password. This is nice. But can it be tuned further so that I don't have to prepend "sudo"?
    Last edited by ball (2013-05-23 19:22:17)

    @qinohe:
    I am in group wheel and I already have
    %wheel ALL=(ALL) ALL
    myusername ALL=NOPASSWD: /usr/bin/netctl, /usr/bin/vpnc, /usr/bin/vpnc-disconnect
    So this would be same, wouldn't it?
    I just realized, that "sudo netctl start someprofile" does work without demanding a password. This is nice. But can it be tuned further so that I don't have to prepend "sudo"?
    Last edited by ball (2013-05-23 18:50:46)

  • My iPhone is FULL, no memory left for photos. If I move all my photos off my iPhone, will the 'ALBUMS' and their content (pics) be blown away ? Also, what is the BEST way to clear/save photos off my iPhone ? PC, ITunes, some other app ?

    My iPhone is FULL, no memory left for photos. If I move all my photos off my iPhone, will the 'ALBUMS' and their content (pics) be blown away ? Also, what is the BEST way to clear/save photos off my iPhone ? PC, ITunes, some other app ?

    I use an app called FileApp to transfer photos to my PC - I can then selectively delete photos from my iPhone and still have them on my PC - just download the app to your iPhone and follow the instructions for the accompanying program for your PC - then use your iPhone cable to connect - iTunes will also start up so just close it and you will see the iPhone storage as a drive - go the DCIM folder and open the device folder and you will see your photos.

  • RAID Array being blown away when CamCorder inserted or removed

    This is a strange problem at best.
    I have six external drives on my G5 in an unequal mix of FW-400 and USB. The issue is with two of the former when combined in a RAID-0 or RAID-1 array.
    Both of the disks in this array (Western Digital 320GB FW-400) are of the same make and model. There are never any issues unless and until such time as I insert or remove a Sony CamCorder: the array is blown away. Gone. It does not matter if the Camera is on or off when inserted or removed. Albeit part of the chain, the Camera is attached to another device altogether via FW.
    This will happen without exception each and every time.
    Anyone have any ideas what's going on here?
    Thanks,
    Lyman

    Hi Lyman;
    This doesn't sound like the best designed implementation of RAID. Generally it is recommended that everything try to be kept as same as possible for the various part of the RAID array. Since the overall performance of a RAID array is determined by the slowest link which in your case would be the USB, I seriously doubt that it will have stellar performance.
    What is probably happening is that the camcorder is changing the Firewire bus enough to disrupt the RAID array. I doubt that there is any way to fix this short of putting the RAID array on it's own buss using a card in one of the expansion slots. That would leave the computer's Firewire for the camcorder.
    What ever you do stop using USB for RAID. USB is never going to be able to give you good enough performance to be worthwhile.
    Allan

  • Infinity, what is it like, will I be blown away?

    I am expecting our cab to go live in the next week or two after waiting over two years.
    We will be going from the 1.75 / 0.3 mbit adsl slow lane, to the 62 / 20 mbit vdsl fastlane.
    Will I feel blown away, will life never be the same again?
    How will I feel once it is installed and how long does the good feeling last?

    rabbit wrote:
    Will I feel blown away, will life never be the same again?
    How will I feel once it is installed and how long does the good feeling last?
    From the speeds you were on, yes I think it will be a surge of interest... however as the others have said, it's does not last long... it's called human nature
    What you WILL find is that many (I daresay the majority) of hosts where you will download the big files from, are actually painfully slow anyway.. so you won't get the benefit.
    What you will also find is you can do new things enjoyably that were a pain before, streaming music, catchup TV and Youtube without the jitters. And uploads to Facebook and sending email are more fun... you will drink less tea and coffee that you would have had waiting for stuff to upload
    Enjoy it while it lasts... I suspect 3 weeks and then you'll be wanting faster!
    Be a first rate version of yourself, not a second rate version of someone else

  • Music Control - I'm blown away!!

    I am blown away...been looking for a good set of headphones or earbuds to use
    with my Torch and Playbook. 100% of the ones out there that have a remote in the
    cord to advance songs, pause, play, volume, and switch to microphone for calls
    are ALL for Iphone. Not 1 works with a Blackberry. I understand their are more
    iphones out there, but leaving us with zero to choose from except the crappy one
    that comes with the unit? Geez!!! I have bluetooth, but they just don't have the sound quality.....

    Hi darin3000,
    Check the below headset that can control music and voice calls.
    BlackBerry Premium Stereo Headset
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • Applications blown away

    This is the most frustrating experience yet with my 3G iPhone.
    I've installed a dozen applications or so over the last few weeks, many of which get customized (zip codes, stocks, Facebook, etc.) plus some games which save the player's level in the game.
    This morning, during a routine iTunes sync. I notice that all my applications are being removed and reinstalled. The reinstall failed with the "not authorized" error others have reported and the "authorize computer" fix seemed to work, except that it informed me that my computer was already authorized. Nevertheless, the sync then worked and put all my apps back on the device.
    However, EVERYTHING custom about the apps is gone! Completely blown away. For me, the worst is the games, which I can't just go in and reconfigure.
    Is there any way to get my configs back? I now live in fear that any day the next sync will blow everything away again.

    I know this will come off as cracking wise, but it's my legit answer:
    Rent a studio, build a set, hire a model, set up the shot, and throw the switch on a really big fan.
    The best images start with a good photo.

  • Blown Away Guy

    My client has asked me to produce a marketing image similar to the "blown away guy":
    Use link below for clarification:
    http://images.google.com/imgres?imgurl=http://kmandla.files.wordpress.com/2007/05/wp-blown -away-ubuntu-1732x737.jpg&imgrefurl=http://kmandla.wordpress.com/2007/05/08/blown-away-guy -meet-ubuntu/&usg=__3T4EshR3QtW9Fj8LMMVN_R9yTBo=&h=737&w=1732&sz=568&hl=en&start=1&um=1&it bs=1&tbnid=hXXWuHeq0pD39M:&tbnh=64&tbnw=150&prev=/images%3Fq%3Dblown%2Baway%2Bguy%26um%3D1 %26hl%3Den%26safe%3Dstrict%26sa%3DN%26rlz%3D1B3GGIC_enUS311US362%26tbs%3Disch:1)
    Any and all help to recreate a similar piece in Photoshop would be most appreciated.

    I know this will come off as cracking wise, but it's my legit answer:
    Rent a studio, build a set, hire a model, set up the shot, and throw the switch on a really big fan.
    The best images start with a good photo.

Maybe you are looking for