stason.org logo lotus


previous page: 026.  Why can't I ftp as root?page up: Brief Linux FAQnext page: 028.  Why should I create ordinary user accounts. I'm the only user on this machine. Why not just work as root?

027. I've tried to create a shell script and made it setuid root so the users can execute it. But no matter what I do, it doesn't execute with root privilege. Why?

 Books
 TULARC
















Description

This article is from the the Brief Linux FAQ (BLFAQ) Maintained by Neil Zanella nzanella@ganymede.cs.mun.ca

027. I've tried to create a shell script and made it setuid root so the users can execute it. But no matter what I do, it doesn't execute with root privilege. Why?

Shell scripts are a notorious security hole. To protect you, the kernel purposely ignores setuid and setgid in scripts. Create a C or Pearl program to do the task.

 

Continue to:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

linux, os, faq







TOP
previous page: 026.  Why can't I ftp as root?page up: Brief Linux FAQnext page: 028.  Why should I create ordinary user accounts. I'm the only user on this machine. Why not just work as root?