LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   inter-user in linux (https://www.linuxquestions.org/questions/linux-newbie-8/inter-user-in-linux-696177/)

kapilbajpai88 01-09-2009 04:24 PM

inter-user in linux
 
Hi All,

I have two users in my RHEL5 machine, say user1 and user2. can i move files directly from one user to other user, and vice-versa, using mv or cp commands, or any other similar utility in linux?
If Yes, then could anybody suggest me how to do this. And, if not, then what is the alternate way of doing this ?

Thank You all in advance,
Kapil.

sycamorex 01-09-2009 04:28 PM

You'd have to set appropriate user or group permissions for each user because normally user1 doesn't have access to user2's home directory.

Once you've set up permissions you can use cp or mv with appropriate paths.

pljvaldez 01-09-2009 04:30 PM

In this instance, I typically create a new group that both belong to. And then create a common directory (like /home/shared) that has the setgid bit set so all files saved there get the proper group ownership. Then both users can access files in that directory, but you still preserve their ability to also keep their own documents.


All times are GMT -5. The time now is 02:18 AM.