sharing local software between two accounts

Web hosting discussion, programming, and shared and dedicated servers.
4 posts Page 1 of 1
by chongo » Fri Dec 06, 2013 2:13 pm
Hello,

I need to compile a few tools, install some scripts, install some perl modules, etc. I plan to use this software from two accounts, chongo and paulnoll. Normally I would install this software under /usr/local/{bin,lib,shin} from a common source tree under /usr/local/src. Obviously this won't work as /usr/local is common among other servers.

What I would prefer is to have a single source tree on the server where the software could be built and a single installation tree where the code is installed that could by both users.

I could open up directory permissions on one home directory, but that would at a minimum make the home directory readable by all users in the group user. Not a good solution.

I could, as a hack, use rsync / scp to install into the account of the other user. That would be an ugly hack and would be wasteful of disk space.

How would you suggest that share a common directory between these two accounts?

chongo (Landon Curt Noll) /\oo/\
by Guest » Fri Dec 06, 2013 2:27 pm
chongo wrote:Hello,
I could open up directory permissions on one home directory, but that would at a minimum make the home directory readable by all users in the group user. Not a good solution.
Things I've used in the past:
1. Access control lists (if supported)
2. Semi-hack:
mkdir ~/foo/RandomUnguessableDirectoryName
chmod +x ~/foo # People can only access things under foo if they know the file name
chmod 777 ~/foo/Random*
Another user can then run ~/foo/RandomUnguessableDirectoryName/foo.pl only because they know the RandomUnguessableDirectoryName.
by Guest » Fri Dec 06, 2013 2:28 pm
chmod +x ~/foo # People can only access things under foo if they know the file name

I meant: chmod 711 ~/foo
by chongo » Fri Dec 06, 2013 3:22 pm
While I appreciate the suggestion, I DO need a directory that is accessible by the two users only. I don't want to depend on "security via obscurity" as that is rather insecure.

How about if sonic were to create a group to which only chongo and paulnoll belong, and to provide a directory somewhere that is accessible only by the owner and group?
4 posts Page 1 of 1