On a backup drive /mnt/home/tom , I want to change all directories and files in tom to owner:tom .
The drive is mounted but from /home the command chown -R tom tom is not changing the directories and files to owner, tom .
Command chown -R tom:tom tom won't change the ownership in the directories and files in directory tom .
On Wed, Jun 29, 2011 at 1:25 PM, james tate binarynut@comcast.net wrote:
On a backup drive /mnt/home/tom , I want to change all directories and files in tom to owner:tom .
The drive is mounted but from /home the command chown -R tom tom is not changing the directories and files to owner, tom .
Command chown -R tom:tom tom won't change the ownership in the directories and files in directory tom .
Who is the current owner? Are you running chown as root?
If you move stuff around from different machines or even do an clean install + separate (existing) home volume and the uid's and gid's don't match, strange things can happen.
Richard
Am 29.06.2011 20:25, schrieb james tate:
On a backup drive /mnt/home/tom , I want to change all directories and files in tom to owner:tom .
The drive is mounted but from /home the command chown -R tom tom is not changing the directories and files to owner, tom .
Command chown -R tom:tom tom won't change the ownership in the directories and files in directory tom .
please provide some infomrations, nobody can help you if nobody knows anything!
* which user does execute "chown"? * outputs of "ls -lha" * use "chown --preserve-root --changes --no-dereference -R"
james tate kirjoitti viestissään (lähetysaika keskiviikko, 29. kesäkuuta 2011):
On a backup drive /mnt/home/tom , I want to change all directories and files in tom to owner:tom .
What filesystem is used on the backup drive? If it's FAT or NTFS then you can't use chown or chmod because Windows filesystems don't support Linux file permissions or ownership.
james tate wrote:
On a backup drive /mnt/home/tom , I want to change all directories and files in tom to owner:tom .
The drive is mounted but from /home the command chown -R tom tom is not changing the directories and files to owner, tom .
Command chown -R tom:tom tom won't change the ownership in the directories and files in directory tom .
I kind of ran into that myself. /mnt is owned by root, so mounting user stuff to that is always problematic.
My solution:
mount user stuff to /home/you/mountpoint.
Eg. I mount my Documents partition and my Backup partition to /home/me/Documents and /home/me/Backup. This way, I am the owner and I don't have to ???? with changing the ownership of /mnt/stuff.
Petrus de Calguarium wrote:
My solution:
mount user stuff to /home/you/mountpoint.
Eg. I mount my Documents partition and my Backup partition to /home/me/Documents and /home/me/Backup. This way, I am the owner and I don't have to ???? with changing the ownership of /mnt/stuff.
I should add that I do not back up the system. Since it can be easily reinstalled from the disks or the net, that would be redundant. What concerns me is backing up Documents, since that is my stuff.
On Wed, 2011-06-29 at 17:23 -0600, Petrus de Calguarium wrote:
I should add that I do not back up the system. Since it can be easily reinstalled from the disks or the net, that would be redundant. What concerns me is backing up Documents, since that is my stuff.
Backing up configuration files can be handy, too, if you modify anything away from defaults. Some people don't, so that's something else that can be ignored from backups.
Tim wrote:
Backing up configuration files can be handy, too
You bet. I keep a number of config files in my backup, since I spent a lot of time configuring them and like to restore that configuration in future editions of Fedora. Of course, I always compare to make sure that the new system still uses the old file format.
On 29Jun2011 14:25, james tate binarynut@comcast.net wrote: | On a backup drive /mnt/home/tom , I want to change all directories and | files in tom to owner:tom . | | The drive is mounted but from /home the command chown -R tom tom is not | changing the directories and files to owner, tom . | | Command chown -R tom:tom tom won't change the ownership in the | directories and files in | directory tom .
I notice that /mnt/home/tom isn't in /home. If /home/tom is a symlink then you'll get what you describe.
cd /home ls -ld tom
Is it a symlink?
If so, you need to go:
cd /home/tom chown -R tom:tom .
or
cd /home chown -R tom:tom tom/.
or some variantion of that form.
Note the "/." in the second example: that _enters_ the tom directory for the chown.
Cheers,