LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-27-2005, 10:23 PM   #1
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Rep: Reputation: 31
changing permissions and ownership on many files and folders


I'm using Simply Mepis 3.3.1 right now. Very nice OS, by the way. I foolishly copied files from my backup CD into the user account directory as home, and now all of my files have root user ownership to them. I tried going through root and changing the permissions and ownership to all the files. Changing the permissions worked, but for some reason I can't get the new ownership settings to go to all my files and folders. Can someone please help me? What am I doing wrong?

Last edited by Cinematography; 07-27-2005 at 10:26 PM.
 
Old 07-27-2005, 11:05 PM   #2
65_289
Member
 
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163

Rep: Reputation: 30
I would do it like this:

root@box# cd /dir/containing/stuff to change
root@box# chown -R <username> *
 
Old 07-28-2005, 01:58 AM   #3
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by 65_289
I would do it like this:

root@box# cd /dir/containing/stuff to change
root@box# chown -R <username> *
Very impressive command. Thank you.
 
Old 07-28-2005, 11:27 PM   #4
65_289
Member
 
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163

Rep: Reputation: 30
Quote:
Originally posted by Cinematography
Very impressive command. Thank you.
Glad I could help!
 
Old 08-01-2005, 03:20 AM   #5
kahn
Member
 
Registered: Feb 2004
Location: Seattle
Distribution: FC5
Posts: 109

Rep: Reputation: 15
I will point something out -

the -r/-R is for recursive, effecting all files and all sub directories. it took me a while to figure it out...

but, you can use it with mv and cp as well, if you want ot move an entire directy and contents

mv -r

and

with rm

you can use rm -rf (f is for force) to remove everything and all directories without asking about write protected stuff.

sorry if this is redundant, but, im fairly new to linux, but now im starting to figure everything out, i hate to be in windows because i need to use the cmmand line. im finding it frar more effecient.


martin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing ownership and group of multiple files.. utanja Debian 3 02-21-2005 06:10 PM
Changing file permissions within multiple folders cloudxiii Linux - Newbie 1 02-21-2005 12:20 AM
File permissions for web site files/folders mackayr Linux - Networking 1 12-01-2004 11:49 AM
Changing ownership of folders Nurfen Linux - Newbie 1 08-01-2004 12:00 PM
NTFS- cannot alter permissions of files, only folders tomranson Linux - General 2 10-19-2003 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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