Find the answer to your Linux question:
Results 1 to 4 of 4
Hello. I have a Debian based distro (with gnome) in which I'm trying to run a Bash shell script. The script has to execute a program (with root permissions), like ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    44

    [SOLVED] Session management error: Authentication Rejected

    Hello.

    I have a Debian based distro (with gnome) in which I'm trying to run a Bash shell script.

    The script has to execute a program (with root permissions), like this:

    Code:
    #!/bin/bash
    su -c "./home/user/myprog"
    exit
    But after entering the root password, it returns the following error:

    Code:
    Session management error: Authentication Rejected, reason : None of the 
    authentication protocols specified are supported and host -based 
    authentication failed
    Despite the error message, the program (myprog) still executes correctly (at least I don't see anything wrong with it).
    But how can I solve this, and supress the error message?

    What am I doing wrong?

    Thank you
    ADFC

  2. #2
    Just Joined!
    Join Date
    Jun 2009
    Posts
    44
    Anyone??

  3. #3
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    Moving this to the scripting forum because you might get more help with it there.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  4. #4
    Just Joined!
    Join Date
    Jun 2009
    Posts
    44
    Hello!

    OK, I think I have it.

    I don't know exactly why, but giving permissions to the user in the sudoers file, and then running the program with the sudo command, fixes the error.

    The error message is gone, the program works great, so... PERFECT!

    I consider this thread SOLVED.

    Thank you all.
    ADFC

    SOLVED

Posting Permissions

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