Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.unix.aix Frequently Asked Questions (Part 2 of 5)
Section - 1.412: Why can't I write a setuid shell script?

( Part1 - Part2 - Part3 - Part4 - Part5 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Business Photos and Profiles ]


Top Document: comp.unix.aix Frequently Asked Questions (Part 2 of 5)
Previous Document: 1.411: Why do I get the "Unable to connect socket: 3" starting Info-Explorer?
Next Document: 1.500 Which release of X11 do I have?
See reader questions & answers on this topic! - Help others by sharing your knowledge

AIX, as of about the first release of 3.2.5* does not allow SUID scripts.
(It ignores the SUID and SGID bits on scripts.)  They're a huge security
hole.

If you really want to run a script SUID, you can create a small C program
that does a setuid(0) and then system()'s your script.  (Actually, the
setuid() call isn't necessary on all Unixes; IIRC, it's not on AIX 3.2.5,
but YYMV.)  Make the program SUID.  Be very careful.

There are other similar solutions.  You might also want to look into
sudo, which handles this sort of thing in a somewhat more controlled
manner

* Julianne Frances Haugh (jfh@tab.com) writes:

I raised an objection to set-ID shell scripts before AIX 3.1 was
golden.  ... it was finally done in the 3009 PTF for AIX 3.1.

User Contributions:

Kwangsu
Report this comment as inappropriate
Jul 7, 2014 @ 3:03 am
Hello,Actually,I'm seeking how to psibluh my E.book (football) through Indonesian market.The contain is writing in bahasa Malayu and I need first to translate it Indonesian language. Can you help me for proceed in this project ?Per advance thank you,looking forward,Regards,Patrick

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




Top Document: comp.unix.aix Frequently Asked Questions (Part 2 of 5)
Previous Document: 1.411: Why do I get the "Unable to connect socket: 3" starting Info-Explorer?
Next Document: 1.500 Which release of X11 do I have?

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
bofh@mail.teleweb.pt (Jose Pina Coelho)





Last Update March 27 2014 @ 02:11 PM