LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-24-2004, 07:41 PM   #1
wisdom
Member
 
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, 07:53 PM   #2
leonscape
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, 08:28 PM   #3
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

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


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 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 02:16 PM
folder owner/group weird curos Slackware - Installation 1 07-18-2005 07:13 AM
File owner and File group locked - root deiphage Linux - Hardware 5 02-05-2005 01:30 PM
Getting the owner name of a file in C akin81 Programming 5 04-02-2004 03:36 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 06:03 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration