Re: set-uid on shell scripts in Solaris
Posted in 1994
On other UNIX boxes I have worked on, setting the user id bit only works on executable programs, not shell scripts. So your program would have to be written in C or something. -------------------------------------------------------------------------------- Paul Watje SPAMIS Data Center paulw@spamis.jcdc.eta.gov Largest Informix Shop Voice: (800) 598-5008 in San Marcos, TX FAX: (512) 396-6600 On 19 Jul 1994, Yogen Sanghani wrote: } Hi, } } Is there any difference in the way set-uid bit works in Solaris from SunOS? } } I need a shell script with set-uid, owned by root and to be executed by } operators. I could not run that script, so I tried following simple script. } } ############################################################# } cat /etc/shadow } } ############################################################ } } this script is owned by root, group other and the permissions are } "rws r-s r-x". I could not cat /etc/shadow file through script, logged } in as ordinay user. } } Any idea, suggestions welcome. Thanks. } } ---------- } Yogen Sanghani } yogen@iconnet.com } (212)972-4266 } }