LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-12-2007, 05:32 AM   #1
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
move stuff owned by one user by another user


Hi, my fingers are starting to hurt because of extraneous command lining. I'll probably be asking many similar questions over the next few days...

When I try to move files in the home dir of another user (non-root) to a directory for my current user it gives me permission denied. To solve this I've been su - "ing" to become root and do the work.

Thanks for any replies.
 
Old 07-12-2007, 05:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
replies about what? that's correct... nothing wrong there at all. i could suggest sudo, but that will probably leave you with more keypresses, not less.
 
Old 07-12-2007, 05:52 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Makes sense; you will really love it if somebody else moves your files

Owner has to set write permission (for users in the same grooup and/or for others).
 
Old 07-12-2007, 06:02 AM   #4
briealeida
Member
 
Registered: Jun 2007
Location: PA
Distribution: FreeBSD, Ubuntu, Knoppix,
Posts: 41

Rep: Reputation: 16
Don't see a question but the only thing that I can think of is . . . try moving folders instead of individual files, if that's what you need.
 
Old 07-12-2007, 10:35 AM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
You can try to "pipe tar" the files over...as root:

Code:
# cd /some/directory
# tar -cf - . | (cd /destination/directory ; tar -xf -)
You have to remember that the "/destination/directory/" must exist before you preform the command, or the command won't work.
 
  


Reply



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
user access to files owned by root jonfa Linux - General 2 07-09-2007 11:58 AM
.dmrc file being ignored, should be owned by user and certain permissions.. how do i? mitchell7man Ubuntu 8 04-25-2007 10:31 AM
List files owned by user/group guideweb Linux - General 1 09-18-2004 08:18 PM
/tmp/mcop-xxxxx is accessible owned by user illtbagu Linux - Software 1 05-22-2004 10:59 AM
Make a file owned by root owned by a user sharpie Linux - Newbie 2 02-26-2004 01:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration