Find the answer to your Linux question:
Page 4 of 4 FirstFirst 1 2 3 4
Results 31 to 33 of 33
Yes, you are right tkb2766. But as I have mentioned before: So, the problem is not to execute a program in another folder... The problem is that I needed to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #31
    Just Joined!
    Join Date
    May 2011
    Posts
    38

    Yes, you are right tkb2766.
    But as I have mentioned before:

    So, the problem is not to execute a program in another folder... The problem is that I needed to use "sudo" to execute the program. I have created the same script inside of the folder where my executable program is. After booting, the command to execute the program is entered but one has to enter the password. I would like to have it automatically entered.
    Any ideas?
    Last edited by freddyglima; 2 Days Ago at 08:30 PM..
    So, I have done that already. I have also changed the program to be owned by "my.username". The problem is that this program has to access the memory and for that a password is needed, even thought the "my.username" is included in the group "wmem".

  2. #32
    Just Joined!
    Join Date
    Mar 2007
    Location
    Melbourne, Australia
    Posts
    29
    Would you mind sharing your script? It would make it easier to test then get back to you!

    I've sent you a private message with my email if you care to share.

    Cheers,
    ak.

  3. #33
    Just Joined!
    Join Date
    May 2011
    Posts
    38
    Thanks again Ak!
    It is no problem to share the script here:

    Code:
    #!/bin/bash
    sudo /home/ebv/levmar-2.5/expfit_spifunc2
    bash
    My autologin is set for user ebv.
    The autostart looks like the following:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Version=0.9.4
    Type=Application
    Name=xterm_expfit
    Comment=expfit_spifunc2
    Exec=xterm -e /home/ebv/levmar-2.5/test.sh
    StartupNotify=false
    Terminal=false
    Hidden=false
    The script has permissions like this:
    Code:
    -rwxr-xr-x 1 ebv ebv 55 1970-01-01 01:26 test.sh
    The permissions for expfit_spifunc2 are the following:
    Code:
    -rwxr-xr-x 1 ebv root 116927 2011-01-07 10:35 expfit_spifunc2
    And in /etc/sudoers, I have added the last line:
    Code:
    # User privilege specification
    root    ALL=(ALL) ALL
    ebv     ALL=NOPASSWD: /home/ebv/levmar-2.5/expfit_spifunc2

Page 4 of 4 FirstFirst 1 2 3 4

Posting Permissions

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