• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 479
  • Last Modified:

How do I move files from /home/user1/*.* (user directory) to any directory under root?

Dear,

I am using ftp to move files from my windows desktop to a linux machine. Since I am not able to log on to ftp as root, I am using my user1 account. In that case all files are moved under user1 account. Now the question comes. How to move those files from user1 account to a root directory and they should appear as root files and not user1 account.

the mv from location to location is only making a movement of the files but still files are under user1 account.



0
nabilhammoud
Asked:
nabilhammoud
  • 2
2 Solutions
 
omarfaridCommented:
you can use chown -R to change ownership

http://linux.die.net/man/1/chown
0
 
omarfaridCommented:
you need to be root to run chown
0
 
wesly_chenCommented:
> I am not able to log on to ftp as root,
> move those files from user1 account to a root directory and they should appear as root files and not user1 account.
Unfortunately, you need to have root previllege to change the ownership of files (chown need to run by root).
As for the sudo permission to perform "root" previllege without root password.
Then
$ sudo chown -R root:root  /path-to-root-directory
0
 
nabilhammoudAuthor Commented:
Ok....
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now