LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2009, 07:11 AM   #1
fadinader
LQ Newbie
 
Registered: Aug 2009
Distribution: debian xfce desktop
Posts: 25

Rep: Reputation: 16
Question 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
 
Old 08-24-2009, 07:12 AM   #2
fadinader
LQ Newbie
 
Registered: Aug 2009
Distribution: debian xfce desktop
Posts: 25

Original Poster
Rep: Reputation: 16
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
 
Old 08-24-2009, 07:19 AM   #3
fadinader
LQ Newbie
 
Registered: Aug 2009
Distribution: debian xfce desktop
Posts: 25

Original Poster
Rep: Reputation: 16
files permission

i used the -R option but it changed all the subfolder not the files included .... can anybody help
 
Old 08-24-2009, 07:21 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please don't hijack threads, please don't drag up dead threads, and please don't post the same question multiple times
 
Old 08-24-2009, 07:22 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please don't hijack threads, please don't drag up dead threads, and please don't post the same question multiple times
 
Old 08-24-2009, 07:40 AM   #6
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
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.
 
Old 08-24-2009, 07:50 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
please post the command you used.
Any error messages?
 
Old 08-24-2009, 07:57 AM   #8
fadinader
LQ Newbie
 
Registered: Aug 2009
Distribution: debian xfce desktop
Posts: 25

Original Poster
Rep: Reputation: 16
i used chown -R fadi /mnt/collection

- no errors

- all subfolders were owned by fadi

- but all files are still owned by root
 
Old 08-24-2009, 08:14 AM   #9
fadinader
LQ Newbie
 
Registered: Aug 2009
Distribution: debian xfce desktop
Posts: 25

Original Poster
Rep: Reputation: 16
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
 
Old 08-24-2009, 08:19 AM   #10
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
If they're owned by root to begin with, use sudo
Code:
sudo chown -R fadi /mnt/collection
 
Old 08-24-2009, 08:19 AM   #11
fadinader
LQ Newbie
 
Registered: Aug 2009
Distribution: debian xfce desktop
Posts: 25

Original Poster
Rep: Reputation: 16
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
 
Old 08-24-2009, 08:23 AM   #12
fadinader
LQ Newbie
 
Registered: Aug 2009
Distribution: debian xfce desktop
Posts: 25

Original Poster
Rep: Reputation: 16
yes i did this as root
 
Old 08-24-2009, 08:24 AM   #13
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
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

Last edited by joeBuffer; 08-24-2009 at 08:27 AM.
 
Old 08-24-2009, 08:29 AM   #14
fadinader
LQ Newbie
 
Registered: Aug 2009
Distribution: debian xfce desktop
Posts: 25

Original Poster
Rep: Reputation: 16
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
 
Old 08-24-2009, 08:32 AM   #15
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try
Code:
chmod -R 775 /mnt/collection
chown -R fadi:fadi /mnt/collection
What is the filesystem?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating directories and permissions ingen Linux From Scratch 1 11-06-2008 12:38 AM
Permissions and directories arubin Slackware 6 09-21-2007 03:56 AM
Group administrator (or changing permissions and ownerships) rikis7 Programming 2 08-15-2007 12:22 AM
restoring default device ownerships/permissions under_r_run Linux - Newbie 5 07-27-2005 01:27 PM
home directories permissions black_man Debian 1 11-20-2004 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration