How a user can execute a file from anothe user

2013-09-26 Thread Mahmood Naderan
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

Re: How a user can execute a file from anothe user

2013-09-26 Thread Mark Whidby
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

Re: How a user can execute a file from anothe user

2013-09-26 Thread Mahmood Naderan
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

Re: How a user can execute a file from anothe user

2013-09-26 Thread Mahmood Naderan
So I have created a groups and add myself and another user to this group [mahmood@tiger ~]$ groups mahmood sim [anotherone@tiger ~]$ groups anotherone sim [mahmood@tiger ~]$ ls -l drwxrws---. 14 mahmood sim   4096 May 17 14:10 sim-3.0.31 I didn't use      chmod -R 2770

Re: How a user can execute a file from anothe user

2013-09-26 Thread Earl Ramirez
On Thu, 2013-09-26 at 12:35 -0700, Mahmood Naderan wrote: So I have created a groups and add myself and another user to this group [mahmood@tiger ~]$ groups mahmood sim [anotherone@tiger ~]$ groups anotherone sim [mahmood@tiger ~]$ ls -l drwxrws---. 14 mahmood sim 4096 May 17

Re: How a user can execute a file from anothe user

2013-09-26 Thread John Lauro
One minor note, Read isn't needed on the directories if the user/script/etc knows the path. If the filename is known (no requirement to do a ls on the directory), then execute is sufficient. If you give read, then all the filenames in your directory are revealed (but not necessarily the