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 ...
- 06-25-2009 #1Just 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:
But after entering the root password, it returns the following error:Code:#!/bin/bash su -c "./home/user/myprog" exit
Despite the error message, the program (myprog) still executes correctly (at least I don't see anything wrong with it).Code:Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host -based authentication failed
But how can I solve this, and supress the error message?
What am I doing wrong?
Thank you
ADFC
- 06-29-2009 #2Just Joined!
- Join Date
- Jun 2009
- Posts
- 44
Anyone??
- 06-29-2009 #3forum.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.
- 07-02-2009 #4Just 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


