HOWTO : permit a user to execute a shell (root is owner) and restric the read

2003-01-07 Thread cana rich
Hello, I am using RedHat 7.2. I have a shell (root is the owner) and i would like it to be execatable by others user but not readable by the other users. ls -l give : -rwx--x-- 1 root mygroup 5030 jan 06 10:00:01 program1.bsh I have tried : chmod 710 program1.bsh but when i log in other

Re: HOWTO : permit a user to execute a shell (root is owner) and restric the read

2003-01-07 Thread Adam H. Pendleton
I hate to be the bearer of bad news, but you cannot execute a file without being able to read it. You have to be able to open the file in order to read the code inside to execute. You might be able to achieve this result by using ACL systems such as www.grsecurity.net, but I doubt it. ahp On

Re: HOWTO : permit a user to execute a shell (root is owner) and restric the read

2003-01-07 Thread Tibbetts, Ric
Partly true. You need to be able to read the file, but, you can hide it. I've used this trick before. Make a directory (for example: /usr/local/secure/bin ) Set the permissions of it to 711. Put the script in there, with permissions set to 755. Then, put a wrapper script in /usr/local/bin,

RE: HOWTO : permit a user to execute a shell (root is owner) and restric the read

2003-01-07 Thread Tan, Julien
hi, parhap you can try to add a sticky bit chmod o+s and chmod g+s Mr.Julien Tan Unix Sysadmin Intel Technology Sdn Bhd Bayan Lepas FIZ Phase 3 Halaman Kg. Jawa 11900 Penang MalaysiaTel: (604) 642-Direct Tel:(604) 253-6398Fax : (604)