Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-24-2004, 08:41 PM   #1
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Rep: Reputation: 31
file and folder owner ship

been looking on here did not find anything spesfic to what i wanted... I am wondering can anyhow help me out.

In the terminal as root i copied a file from the root directory with root only ownership to the normal user area so i can have access to this file but the problem is that its still locked to been ownership of root how can i change it to have its ownership of normal user and the same thing with folders as well.

anyone care to help pls?
Old 12-24-2004, 08:53 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
chown is the command your looking for.

You need to be the owner of the file ( or root ) to change ownership. Also don't forget the group ( which is usually the same as the owner ).

chown userName:userGroup fileName

Don't forget man pages for more info.
Old 12-24-2004, 09:28 PM   #3
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Original Poster
Rep: Reputation: 31
hey chears for that worked like a charm!!!


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
perl script help required to create users and changing the owner to pericular folder sridhar11 Programming 2 10-25-2005 03:16 PM
folder owner/group weird curos Slackware - Installation 1 07-18-2005 08:13 AM
File owner and File group locked - root deiphage Linux - Hardware 5 02-05-2005 02:30 PM
Getting the owner name of a file in C akin81 Programming 5 04-02-2004 04:36 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 07:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:26 PM.

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