change owner problem

Asked by bleuzolex

I tried to change the owner of an avi file by using the following command " sudo chown <newowner>:<newgroup> <filename>" but nothing changed. The command didn't match the error message but the previous owner (root) still remained.
Thks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Wyatt Smith
Solved:
Last query:
Last reply:
Revision history for this message
Wyatt Smith (wyatt-smith) said :
#1

Please tell... exactly what error message your are getting.

Also files on non-linux partitions such as FAT or NTFS do not have the same file attributes such as ownership/permission and cannot be modified with chown/chmod. Since these attributes do not exist, they are set for all files when the volume is mounted.

Revision history for this message
bleuzolex (jo-zoran) said :
#2

thks for your help,
actually it concerns an ntfs file
after entering the chown commande there is not an error message but the
ownership is not modified
is there any possibility to modify it
thks

2008/12/4, Wyatt Smith <email address hidden>:
>
> Your question #53365 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/53365
>
> Status: Open => Answered
>
> Wyatt Smith proposed the following answer:
> Please tell... exactly what error message your are getting.
>
> Also files on non-linux partitions such as FAT or NTFS do not have the
> same file attributes such as ownership/permission and cannot be modified
> with chown/chmod. Since these attributes do not exist, they are set for
> all files when the volume is mounted.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/53365/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/53365
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Best Wyatt Smith (wyatt-smith) said :
#3

Ownership and permission for NTFS files are set when the drive is mounted. Ownership should not really be a problem because typicall NTFS drive are mounted as read/write for everyone by default. If you wish to change the ownership of group permission of your mounted drive you will have to edit your /etc/fstab file

Please read the section regarding mounting NTFS partition with fstab
https://help.ubuntu.com/community/Fstab

To find out more about mounting options please, from the terminal please type
man ntfs-3g
man mount

Here are some common mount options. Typically owner and group is set on with the following mount options uid and gid. For example setting uid=1000 will set ownership of all files to user 1000 which is the primary user of the machine. Using gid=100 will set permission to the group user. Using umask=000 will set 777 permission.

Hope this helps

Revision history for this message
bleuzolex (jo-zoran) said :
#4

Thank you very much for your explanations,
I'll try to learn more abt this topic

Best rgds

2008/12/6 Wyatt Smith <email address hidden>

> Your question #53365 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/53365
>
> Status: Open => Answered
>
> Wyatt Smith proposed the following answer:
> Ownership and permission for NTFS files are set when the drive is
> mounted. Ownership should not really be a problem because typicall NTFS
> drive are mounted as read/write for everyone by default. If you wish to
> change the ownership of group permission of your mounted drive you will
> have to edit your /etc/fstab file
>
> Please read the section regarding mounting NTFS partition with fstab
> https://help.ubuntu.com/community/Fstab
>
> To find out more about mounting options please, from the terminal please
> type
> man ntfs-3g
> man mount
>
> Here are some common mount options. Typically owner and group is set on
> with the following mount options uid and gid. For example setting
> uid=1000 will set ownership of all files to user 1000 which is the
> primary user of the machine. Using gid=100 will set permission to the
> group user. Using umask=000 will set 777 permission.
>
> Hope this helps
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/53365/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/53365
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
bleuzolex (jo-zoran) said :
#5

Thanks Wyatt Smith, that solved my question.