I am working with Ubuntu and I have a jar file in this folder /export/home/david
And I am logged in machineB as david user.
Some other user is also logged in that same machine. And I want other user to copy the above jar file from my location.
But somehow they are not able to do that as they are getting permission denied. Is there any way I can add some permission on that jar file or on my folder so that anybody can copy the files from that folder?
Update:-
Below is the result I got -
david@machineB:~$ groups david david : uucp otheruser@machineB:~$ groups otheruser otheruser : app david@machineB:~$ ls -l foo.jar -rw-r--r-- 1 david uucp 6543346 2014-03-07 18:27 foo.jar david@machineB:~$ ls -ld $(echo "/home/david/foo.jar" | sed -r ':a; s#(.*)/[^/]*$#\1#;p;ta') drwxr-xr-x 22 root root 4096 2014-05-04 08:04 /home drwx------ 4 david uucp 4096 2014-03-07 18:36 /home/david
groups david,groups otheruserand the permissions for the file (ls -l foo.jar) and its parent directories. If your file is at/home/david/foo/bar.jar, you can get them easily with:ls -ld $(echo "/home/david/foo/bar.js" | sed -r ':a; s#(.*)/[^/]*$#\1#;p;ta').