Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: app works for root anywhere, for users only on xfce????

  1. #1
    Join Date
    Sep 2008
    Location
    Porto Alegre, RS, Brazil
    Posts
    72

    Question app works for root anywhere, for users only on xfce????

    Hi all.

    I'm having a hard time here with an application we use in the lab: MGLTools, which includes AutoDock Tools.

    Downloads — MGLTools

    I've installed it available for all users, made a fast test as root, and it was running. Then, users called my attention for the fact that it didn't worked.

    Then I tested as user, not working. Retested it as root, perfection.

    Since I had to travel, I asked the users of this program to do some testing or try to find info in the web in the meantime. I was even thinking that there was something within the scripts which resulted in just one user being able to run it.

    I came back from travel today, to now that the users made an astonishing discovery: It doesn't work for them on either KDE not gnome. But when they tried fwm, it worked almost flawless! Then I suggested trying XFCE, and tehn it work as perfect as one can ask for!

    Does anybody has any idea on this? Why would any program in the world, with 755 permissions for everything in it, work on KDE and Gnome only for root? And more strange, for anyone in XFCE??

    Thanks in advance for any clue on this one.

    Edit: One extra piece of information: if an user tries to run it on either KDE or Gnome, he is imediatelly loged out of the interface. Something breaks down kdm, kdeinit, and it alikes from gnome.

  2. #2
    palladium NNTP User

    Default Re: app works for root anywhere, for users only on xfce????

    this MGLTools appears to be a GUI program...you say after you
    installed it you fast tested it as root...how did you do that, and why?

    what i'm asking is did you log into Gnome/KDE etc as root to install
    MGLTools...or did you do that as a regular user and then used a
    terminal to launch it as root..

    tell you what i _think_ you installed it while logged into the
    server's GUI as root, right?

    --
    palladium

  3. #3
    Join Date
    Sep 2008
    Location
    Porto Alegre, RS, Brazil
    Posts
    72

    Default Re: app works for root anywhere, for users only on xfce????

    Hi palladium (nice nick... ).

    0 - Yes, it's a gui program.

    1 - Yes, I installed it on the interface as root. I usually do that when I install programs that have to much "interface" in the installation procedures (installations that are not console only).

    2 - I just ran the program as the user I was logged in, i.e., root. I usually do that in order to make sure that everything has gone fine. Tried both the "shotcut" it created in the pannel, as well as the directly path on the terminal. Both ran ok for root, none for other users if on kde or gnome.

    I find it *really* strange that root can run it anywhere anytime anyhow. And "common" users *must* be on fwm or xfce. It doesn't make any sense to me. Any ideas?

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,985
    Blog Entries
    14

    Default Re: app works for root anywhere, for users only on xfce????

    NEVER EVER LOGIN AS ROOT ON A DESKTOP, rather do not login as root anyway (I know there are exceptions). Use
    Code:
    su -c 'program parameters'
    to run things with root permissions.

    Acting against the above, causes trouble like you're meeting right now. Was this in the installation instructions?
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5
    Join Date
    Sep 2008
    Location
    Porto Alegre, RS, Brazil
    Posts
    72

    Default Re: app works for root anywhere, for users only on xfce????

    I really don't remember if that was in the instructions. Anyway, I usually have an open session as root on server/firewalls. Easier to do everything that has to be done on these systems, plus an extra visible eye looking over the system

    I've didn't, and never did, anything too stupid. Specially leaving a session unattended. Logins as root are used to simplify the very few installations that are needed, and for supervision of any issues, as well as a fast response to any trouble. Mainly, it all means that: we only use root login to install programs of known procedence that also has a GUI interface for the installation/configuration procedures (I think this is at the most the third program with gui installation among the douzains that). Ok, also gdmsetup , when ran, once in a lifetime, also on gui as root.

    Finally, this problem seems to be *too* specific to be dependent on whether I made the installation logged on the GUI as root or not. But, ok, this is my opinion.

    Considering that I messed up thing behaving like this this time. What should I do?

  6. #6
    palladium NNTP User

    Default Re: app works for root anywhere, for users only on xfce????

    johannesrs wrote:
    > Considering that I messed up thing behaving like this this time. What
    > should I do?


    i don't know how to fix it...but the fact (in my mind) that it is a
    permissions problem pointed me to the probability that it was
    installed incorrectly...

    you do you want, but i say never ever ever log into kde/gnome/etc as
    root...because no matter how much time you think you are saving,
    eventually you WILL run into very strange situations like this one...

    always log into kde/etc as a normal user and 'become root' as needed,
    via YaST, or a terminal session where you are logged in as root...do i
    need to repeat this? let me try a different way: there are no, zero,
    nada administration duties which REQUIRE you to log into kde/etc as
    root....since never required and ALWAYS dangerous--just don't do it.

    read more on all that here:

    http://en.opensuse.org/SDB:Login_as_root
    http://docs.kde.org/stable/en/kdebas...uide/root.html
    http://tinyurl.com/6ry6yd
    http://tinyurl.com/ydbwssh

    oh, i think i *may* know how to fix your current problem..

    uninstall the program, completely as root (NOT logged into KDE/etc as
    root) but using the command line to run rpm, or YaST (which, when
    launched by a regular user automatically ASKS for the root pass), or
    how ever you installed it, undo it...completely...and, on each lab
    machine find the hidden directory associated with that program, like
    ~/.[programName]

    then, install the program again, correctly...and, maybe it will work,
    correctly..

    and, i have a question for you: how does your school, university, or
    whatever give back to and further the cause of this openSUSE community
    specificially, or Linux generally?

    --
    palladium

  7. #7
    Join Date
    Sep 2008
    Location
    Porto Alegre, RS, Brazil
    Posts
    72

    Wink Re: app works for root anywhere, for users only on xfce????

    I agree with you that it has an inherent unsafety on this behaviour. I just consider that, for very rare and special cases, and for really short periods of time, it can be an option.

    And anything I can do with yast I do logged as normal user, then give the root password. Anything that can be done in the terminal, also, su or sudo. But installations that require gui and cannot be performed as a "common" user are simply boring. Not even unix-like for me, and in these cases I open an exception.

    About the problem, I'm tracking it down, and seems that I narrowing it to two extra options (other than faulty installations): or it's an issue with the 32bits version of the program, or it's an issue with the memory requirements of both kde or gnome and any of the mgltools. I'm trying to look into these options right now to be certain before a full uninstallation.

    About the last question, sorry for my english, but could you rephrase it please? I could not properly understand it, and I don't want to give a wrong answer on something in behalf of the group/institute/university.

  8. #8
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: app works for root anywhere, for users only on xfce????

    johannesrs wrote:

    > And anything I can do with yast I do logged as normal user, then give
    > the root password. Anything that can be done in the terminal, also, su
    > or sudo. But installations that require gui and cannot be performed as a
    > "common" user are simply boring. Not even unix-like for me, and in these
    > cases I open an exception.
    >

    In any case if there is an exception it is better to run a graphical
    installer which requires root priviliges with gnomesu or kdesu (depending on
    your environment) than to login to a desktop as root.
    That is what these commands are for and it minimizes a little bit the risk
    to screw something by accident. And afterwards I would never, really never
    start the application as root to test if it works.

    At least this is my opinion (I am NOT a specialist in system administration
    but only a developer who often needs to perform some limited amount of
    administrative tasks to get the work done).


  9. #9
    Join Date
    Jun 2008
    Location
    Berlin
    Posts
    2,061

    Default Re: app works for root anywhere, for users only on xfce????

    I have little to no idea why it does work within a fwm- / XFCE-session, but anyway, I was curious and downloaded the program myself, guessing that an application like this could also be installed as a regular user, similar to for example Google Earth.

    And yes, that worked ootb (on KDE4 by the way), the program runs fine here. So I suppose instead of installing it systemwide via root, you should install it separately for every user. As I said, it works pretty much like Google Earth, which, when installed as root, would only be available for root (since the binaries are installed in the respective ~ and not in $PATH).

    While I also recommend never to log into a GUI-session as root, I am sure it has nothing to do with the effects you are experiencing.

  10. #10
    palladium NNTP User

    Default Re: app works for root anywhere, for users only on xfce????

    johannesrs wrote:
    > About the last question, sorry for my english, but could you rephrase
    > it please? I could not properly understand it, and I don't want to give
    > a wrong answer on something in behalf of the group/institute/university.


    sure, but first i hear people say "for very rare and special cases,
    and for really short periods of time, it can be an option." but no one
    can list for me the rare and special occasion in which the *only* way
    to do the task that must be done is to log into KDE/Gnome/etc as root..

    so please tell my your list of approved rare and special cases.

    now, i know that there is a system made in Washington State that folks
    all over the world log into as the administrator so they don't have to
    be bothered with a peon user that can't do everything on there own
    machine--GREAT for them, and look how insecure they are...you can make
    Linux insecure, all you have to do is ignore all the little security
    things that keeps the bad guys away..

    and, be advised you do NOT have to be logged on as root more then 30
    seconds to make it impossible to subsequently log in with your user
    level password!

    now, to my last para in the previous:

    you have a room full of computers running Linux, for which neither
    you, nor the university nor students were required to purchase a
    single license...that software, and the help you get here is free of
    cost because volunteers _give_ their time and effort to you...

    sure, there is some corporate sponsorship but by and large the biggest
    part of the Linux work done does not take place on a company
    payroll...we are a community...how can, and will you, your students,
    and university help the open source community?

    i'm not asking for money, i'm completely unpaid here, as we all
    are...what i am trying to do is plant a seed:

    Give back to the community in whatever ways you can, please..

    there are plenty of jobs for plenty of people, see:
    http://en.opensuse.org/How_to_Participate

    tell me, have the menus, pop-ups, warnings, help files, the wiki, and
    etc been translated into your native language? do the non-english
    users in your country have the chance to use openSUSE, or any Linux...

    just something to think about....and, act on when you can..

    --
    palladium

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •