FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running Fedora Core 3 on several Dell SX280s. They are single use machines, running a software suite that receives and prints documents.
That part works fine.
On similar RHEL 3 machines, I've edited sudoers to allow non-privileged accounts to restart this software using a simple 3 line script (essentially stop the software, then start 2 separate daemons, all by pointing to executables that are specifically written for these tasks in the /usr/bin directory.) This works fine on RHEL 3.
In Fedora, I get the following error:
sesh: Error execing /usr/scripts/urestart: Exec format error
where /usr/scripts/urestart is the name of my 3 line script.
I've checked sudoers and can't find any errors. I've checked the script and can't find any errors. I can run the script as root with no problems.
I've checked permissions on the script and directory, and they're fine.
I can't find any information on the web on what that sesh: error means.
Just browsing the "0 reply" threads and saw yours. Since it has been there a while, let me give you a (off-the-wall) suggestion:
I suspect that sesh is the SELinux version of bash, and that you've got SELinux enabled. root is probably in the seusers (see the command) as (perhaps) the only user permitted to change sedoers.
All that being said, I'm really just guessing, and I've never seen the sesh: Error message.
Last edited by PTrenholme; 09-04-2005 at 04:04 PM.
(I got sidetracked on other issues, and just came back to this problem)
Your post was more helpful than you may have thought, PTrenholme. The ultimate problem was sloppy script writing on my part.
I didn't have a shell declaration at the beginning of my script. The script was being called by /usr/bin/sesh, and it apparently doesn't understand the simple bash commands I had entered. Adding the shell declaration (#!/bin/bash) solved the problem.
One more error identified and documented in my own little world, several hundred thousand to go...
Distribution: Red Hat, Fedora, SuSe, HPUX, Solaris
Posts: 12
Rep:
Quote:
Originally Posted by fiservguy
(I got sidetracked on other issues, and just came back to this problem)
Your post was more helpful than you may have thought, PTrenholme. The ultimate problem was sloppy script writing on my part.
I didn't have a shell declaration at the beginning of my script. The script was being called by /usr/bin/sesh, and it apparently doesn't understand the simple bash commands I had entered. Adding the shell declaration (#!/bin/bash) solved the problem.
One more error identified and documented in my own little world, several hundred thousand to go...
Thanks for the feedback,
fiservguy
Same problem here and this tip really helped me! Thank you very much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.