I want to SSH a CentOS server as user X, say (not root). I then want to transfer files to the server. That is easy enough. But then I want to move the files to a “pool” where all users can access them, i.e. outside user X’s directory.
Can I do this? I don’t want to login as root for various reasons, including security issues. I basically want my script, which moves the file from user X’s directory to an outside directory, to have root privelages temporarily.
Your question has essentially nothing to do with SSH. You are just asking “can set up a group of files on a Unix system so that all users can access them”, and the answer is of course.
You don’t explain much about what you’re trying to do, but the chmod, mv and mkdir man pages should help you figure out what you need here.