Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-09-2009, 05:24 PM   #1
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Question 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,
Old 01-09-2009, 05:28 PM   #2
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,825
Blog Entries: 1

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
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.

Last edited by sycamorex; 01-09-2009 at 05:42 PM.
Old 01-09-2009, 05:30 PM   #3
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
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.


data, linux, transfer, users

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
inter process communication aral Programming 5 08-03-2006 02:37 PM
LXer: Inter-tel bolsters Linux-based IP PBX LXer Syndicated Linux News 0 06-24-2006 04:03 AM
how to use Inter Net bilalrouf Linux - Software 1 12-31-2005 01:55 AM
Can Linux Application Modify I/O and Inter-CPU connections? xyzxyz Linux - Hardware 0 11-02-2005 10:43 AM
Inter Motherboard D915GAVL - Linux Compatible? cibalo Linux - Hardware 6 05-09-2005 10:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration