ownerships/permissions in sub-directories?
hello,
i wanna change the ownership of a folder so i typed: chown -R fadi:fadi /mnt/collection this changed all the subfolders in collection, but it didn't change the files permission !! can anybody help me plz :) |
files permission
hello,
i wanna change the ownership of a folder so i typed: chown -R fadi:fadi /mnt/collection this changed all the subfolders in collection, but it didn't change the files permission !! can anybody help me plz :) |
files permission
i used the -R option but it changed all the subfolder not the files included .... can anybody help :)
|
Please don't hijack threads, please don't drag up dead threads, and please don't post the same question multiple times
|
Please don't hijack threads, please don't drag up dead threads, and please don't post the same question multiple times
|
fadinader,
If ownership was changed by that command you can change permissions by doing this: user@host--$: chmod -R 775 /mnt/collection --------------- Next time if you need help you may start your own new post. Some people here do not welcome hitch-riding or thread-hijacking for often times this will increase confusion. Here I am not confused so I offer you a side-help. I hope this will help. Good luck. |
please post the command you used.
Any error messages? |
i used chown -R fadi /mnt/collection
- no errors - all subfolders were owned by fadi - but all files are still owned by root |
Files permission
i want to change the ownership of a folder and all things in it,
i typed "chown -R fadi /mnt/collection" - all the subfolders was owned by "fadi" - but all files are still owned by root user note that the permission of the folder is "drwxrwx---" all i want is to change all the files ownership to user "fadi" thanks |
If they're owned by root to begin with, use sudo
Code:
sudo chown -R fadi /mnt/collection |
i'm sry i did'nt know :)
an thank u for helping but i did this anywayz i started a new treat as u told me thanks |
yes i did this as root
|
Do you mean that the group owner is root, like:
fadi:root? If so, what is your group? How are your files displayed in the file listing, if you use ls -l? fadi:your_group? Whatever your group is, just use Code:
sudo chown -R fadi:your_group /mnt/collection |
root@debian:/mnt/collection/fadi# ls -l
total 836 drwxrwx--- 1 fadi fadi 4096 2009-08-22 16:44 4 linux -rw------- 1 root root 44277 2009-05-07 16:45 CI-2-hearing-aid.pdf -rw------- 1 root root 23629 2009-08-01 22:47 config.xml drwxrwx--- 1 fadi fadi 0 2009-08-20 13:53 Dave’s Tech Blog » Blog Archive » From The Linux Terminal To Shell Scripts_files -rw------- 1 root root 39146 2009-08-20 13:53 Dave’s Tech Blog » Blog Archive » From The Linux Terminal To Shell Scripts.html -rw------- 2 root root 299008 2009-05-25 19:27 Introduction to.doc -rw------- 1 root root 245760 2009-05-25 12:20 machines.tar -rw------- 1 root root 49152 2009-08-23 04:12 mej.doc drwxrwx--- 1 fadi fadi 0 2009-07-17 13:41 Music -rw------- 1 root root 66048 2009-05-08 22:22 Output with switch closed.doc drwxrwx--- 1 fadi fadi 8192 2009-04-25 15:25 Pictures drwxrwx--- 1 fadi fadi 40960 2009-08-07 20:18 Sources -rw------- 1 root root 23552 2008-06-18 13:07 Thumbs.db all folders have been changed all files does not changed |
Try
Code:
chmod -R 775 /mnt/collection |
All times are GMT -5. The time now is 03:44 AM. |