LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 01-09-2009, 04:24 PM   #1
kapilbajpai88
Member
 
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,
Kapil.
 
Old 01-09-2009, 04:28 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,572
Blog Entries: 1

Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
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 04:42 PM.
 
Old 01-09-2009, 04:30 PM   #3
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

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


Reply

Tags
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 01:37 PM
LXer: Inter-tel bolsters Linux-based IP PBX LXer Syndicated Linux News 0 06-24-2006 03:03 AM
how to use Inter Net bilalrouf Linux - Software 1 12-31-2005 12:55 AM
Can Linux Application Modify I/O and Inter-CPU connections? xyzxyz Linux - Hardware 0 11-02-2005 09:43 AM
Inter Motherboard D915GAVL - Linux Compatible? cibalo Linux - Hardware 6 05-09-2005 09:13 PM


All times are GMT -5. The time now is 09:47 AM.

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