Operating System - Linux
1830241 Members
4215 Online
109999 Solutions
New Discussion

seteuid :operations not permitted

 
george_114
Advisor

seteuid :operations not permitted

When I run crontab command, it return message error "seteuid : operation not permitted".Why does this happen??
5 REPLIES 5
Mark Grant
Honored Contributor

Re: seteuid :operations not permitted

Normally this will be because you are running a setuid application on a file system that doesn't allow it or from trying to run a setuid script.

Never preceed any demonstration with anything more predictive than "watch this"
Elmar P. Kolkman
Honored Contributor

Re: seteuid :operations not permitted

Or the command is located on a filesystem that is mounted with the nosuid option.

Can you run it, with the suid, from the command line as the specific user ?

Also, is the command you try to run suid, or is it a part of the command. In the first case, try to run it from cron as the requested user directly instead of using the suid bit. In the latter case, try running the script as root and use 'su - -c ""'.
Every problem has at least one solution. Only some solutions are harder to find.
george_114
Advisor

Re: seteuid :operations not permitted

If i run crontab using root, it return no error, but if i run using ordinary user i return error.
Mark Grant
Honored Contributor

Re: seteuid :operations not permitted

George,

presumably if you run it as root, it doesn't actually need to be setuid so that's probably why that works.

Could you respond to Elmar's questions above, they might be usefull

btw, Congrats on the new hat Elmar :)
Never preceed any demonstration with anything more predictive than "watch this"
U.SivaKumar_2
Honored Contributor

Re: seteuid :operations not permitted

Hi,

Add that username to /etc/cron.allow.

regards,

U.SivaKumar.
Innovations are made when conventions are broken