Subj : Re: chmod 2711 not excutable under linux To : comp.unix.solaris,comp.os.linux From : Wiseguy Date : Tue Dec 21 2004 01:08 am Michael Vilain wrote in news:vilain- 8E08BB.17243020122004@news.giganews.com: > In article <1103587465.056929.15590@z14g2000cwz.googlegroups.com>, > susana73@hotmail.com wrote: > >> I have a script that is chmod 2711 (-rwx--s--x) so that it's excutable >> for group and user but NOT readable by them. It works perfectly on >> Solaris 8 for years. However, now I run the same file on Linux it does >> not work. It returns with permission denied. Can anyone please help? >> >> % ./script.sh >> ./script.sh: Permission denied. >> It's just a simple shell script. The OS is SuSE Linux 9.1. > > It may be the way Linux has implemented the Execute permission. Try > setting the read permission as well. > I think you are right. I believe that the shell needs to be able to read the script before it can be executed. I don't think native code has this restriction though so if it was a pure binary he could probably get away with 2711. -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==---------- http://www.newsfeed.com The #1 Newsgroup Service in the World! -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =----- .