Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Gnuite applet with run command

    Reply
    Page 2 of 2 | Prev |   1   2 |
    pc4ever1 | # 11 | 2006-08-07, 16:24 | Report

    BanditRider Thanks for the tips, I truley appreciate the time you have spent on this! I'll give this a try when I get off work and report back as to it's results.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    gnuite | # 12 | 2006-08-08, 02:30 | Report

    Also, if you haven't already, try using an absolute pathname. I don't think sh uses /etc/profile (and the load-plugin is basically using sh), so it might not be setting a PATH. I know I've had trouble trying to get it to recognize my ~/bin/ directory.

    And make sure you (not just root) have execute permissions on the file.

    Also, the "sudo su -" part might be screwing you up - that will start a new (interactive) shell, which will not get any input since the load-applet is running it.

    I personally would add your command to the /etc/sudoers file and use sudo to run the command, instead of using "sudo su -".

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pc4ever1 | # 13 | 2006-08-08, 05:43 | Report

    BanditRider, I tried your suggestions and it didn't work. Tried some other things and still no good.

    Gnuite, I'm a noob so when you say "try using an absolute pathname" I'm not sure what this means

    As for permissions I set chmod 755 on the command and then chmod +x , won't this work?

    I also added the command to /etc/sudoers and this didn't work.

    Any other suggestions?
    Thanks

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by pc4ever1; 2006-08-08 at 06:00.

     
    BanditRider | # 14 | 2006-08-08, 11:11 | Report

    What error are you getting now?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pc4ever1 | # 15 | 2006-08-08, 16:08 | Report

    BanditRider: Without having the 770 in front of me, I recall when using your last suggestions verbatim that the script didn't work via Load/Run. I then tried it within xTerm and it ran to a point where it prompted me for a password. I typed in rootme and this didn't work , so I tried with some other passwords and nothing seemed to work.

    Thanks again for checking this out.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    CrapBot | # 16 | 2006-08-08, 17:53 | Report

    Absolute path means type in the full path. So if your script is in your home folder, type /home/user/script.sh or whatever it's called.

    I've noticed that anything that gets run from the menu system, Desktop links etc, need to have the full path.

    Gav

    Edit | Forward | Quote | Quick Reply | Thanks

     
    BanditRider | # 17 | 2006-08-08, 18:10 | Report

    I don't get prompted for a password because I've disabled root login as part of installing Openssh.

    passwd -l root

    that's -ell

    This prevents someone logging in as root over ssh (a good thing). But still allows you to use sudo gainroot or sudo su -

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pc4ever1 | # 18 | 2006-08-09, 15:10 | Report

    BanditRider: Thanks again for the help. I'm still at it, and haven't found a solution...yet, but I'll keep trying.

    As for the password -l root
    When issue that command I would expect that I wouldn't be able to connect to the 770 via putty/ssh. But the thing that keeps bothering me is I still can SSH into the 770 using user and rootme. Am I doing something wrong here when setting the password?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    BanditRider | # 19 | 2006-08-09, 19:52 | Report

    I ssh into the 770 as user.
    I have setup the keys in /home/user/.ssh (authorized_keys2 and known_hosts)
    This allows me to login as user with no password needed.
    Then to do root stuff I just sudo su -
    and I'm root with no password needed.
    For security reasons, you don't want to ssh in as root.
    Set your user password to something secure. (not rootme or password or god ...)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 2 of 2 | Prev |   1   2 |
vBulletin® Version 3.8.8
Normal Logout