LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ownerships/permissions in sub-directories? (http://www.linuxquestions.org/questions/linux-newbie-8/ownerships-permissions-in-sub-directories-749910/)

fadinader 08-24-2009 07:11 AM

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 :)

fadinader 08-24-2009 07:12 AM

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 :)

fadinader 08-24-2009 07:19 AM

files permission
 
i used the -R option but it changed all the subfolder not the files included .... can anybody help :)

acid_kewpie 08-24-2009 07:21 AM

Please don't hijack threads, please don't drag up dead threads, and please don't post the same question multiple times

acid_kewpie 08-24-2009 07:22 AM

Please don't hijack threads, please don't drag up dead threads, and please don't post the same question multiple times

malekmustaq 08-24-2009 07:40 AM

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.

repo 08-24-2009 07:50 AM

please post the command you used.
Any error messages?

fadinader 08-24-2009 07:57 AM

i used chown -R fadi /mnt/collection

- no errors

- all subfolders were owned by fadi

- but all files are still owned by root

fadinader 08-24-2009 08:14 AM

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

joeBuffer 08-24-2009 08:19 AM

If they're owned by root to begin with, use sudo
Code:

sudo chown -R fadi /mnt/collection

fadinader 08-24-2009 08:19 AM

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

fadinader 08-24-2009 08:23 AM

yes i did this as root

joeBuffer 08-24-2009 08:24 AM

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

fadinader 08-24-2009 08:29 AM

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

repo 08-24-2009 08:32 AM

Try
Code:

chmod -R 775 /mnt/collection
chown -R fadi:fadi /mnt/collection

What is the filesystem?


All times are GMT -5. The time now is 01:28 PM.