>chmod o+x /home/mahmood Does that imply they can see all my folders?
> And don't call a script "test"! It could lead to confusion with the > system command "test". Thanks Regards, Mahmood ________________________________ From: Mark Whidby <mark.whi...@manchester.ac.uk> To: Mahmood Naderan <nt_mahm...@yahoo.com> Cc: "scientific-linux-users@fnal.gov" <scientific-linux-users@fnal.gov> Sent: Thursday, September 26, 2013 9:48 PM Subject: Re: How a user can execute a file from anothe user On Thu, 2013-09-26 at 11:06 -0700, Mahmood Naderan wrote: > Hi > I want to grant users to access (read/execute) some files and folders > inside my home directory. Using chmod seems to be insufficient. For > example I have made an executable file public for all > > > [mahmood@tiger ~]$ chmod 777 test > [mahmood@tiger ~]$ ls -l test > -rwxrwxrwx. 1 mahmood mahmood 8026 SepĀ 2 12:18 test > > > > > > However when another user tries to run, it receives permission error > > > [anotherone@tiger ~]$ /home/mahmood/test > -bash: /home/mahmood/test: Permission denied You also need to give them permission to access/use your home directory: chmod o+x /home/mahmood And you have given everybody write access to the script. You only need to give read and execute permission: chmod 755 test And don't call a script "test"! It could lead to confusion with the system command "test".