LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-05-2002, 11:45 PM   #1
joetec
LQ Newbie
 
Registered: Apr 2002
Location: ky
Posts: 5

Rep: Reputation: 0
chown?


I am very new to linux so i am going to look very stupid.

I just bought a dedicated server with redhat linux on it and I have no idea what i am doing.
I was talking to my host and they said I need to chown a directory. How do I do that?

any help is helpful to me :P
 
Old 04-06-2002, 12:43 AM   #2
X11
Member
 
Registered: Dec 2001
Location: Brisie, Australia
Distribution: Slackware 8.1
Posts: 324

Rep: Reputation: 30
Chown = Change ownership

This is used to change the group or user ownership of a file or directory.

chown <username> <filename or directory name>

eg.

chown user1 XXX.jpg
 
Old 04-06-2002, 12:47 AM   #3
X11
Member
 
Registered: Dec 2001
Location: Brisie, Australia
Distribution: Slackware 8.1
Posts: 324

Rep: Reputation: 30
Post By the Way

You can type man (with a space between them) in front of the command and press enter and that will bring up a manual of the command does and how-to use it.
 
Old 04-06-2002, 12:48 AM   #4
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Chown may work better if you use it such as for the /home/user directory like this:

chown username.users directory

That way you, the user and the group users can use that folder depending on what permissions you set using chmod. Use chown -R (recursive) if you want to chown the directory and everything in it. I can't think of any folder at the moment that only has or can have only one owner.??.
 
Old 04-06-2002, 02:09 AM   #5
joetec
LQ Newbie
 
Registered: Apr 2002
Location: ky
Posts: 5

Original Poster
Rep: Reputation: 0
ok im in with telnet and type:
chown admin /var/www/html

and it tells me this:
Operation not permitted


what am i doing wrong?
 
Old 04-06-2002, 05:57 AM   #6
lnxconvrt
Member
 
Registered: Mar 2002
Location: Houston
Distribution: FC3, Manrake 10.x, various others at times
Posts: 113

Rep: Reputation: 18
Post possible causes

1. Were you doing this as root? You usually have to be root to chown.
2. Is admin a valid user? I don't think a group can be the owner, I believe that it must be a user.
 
Old 04-07-2002, 05:46 AM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171

Try to use
su
before you try chown. Su will ask you for root password. Then you may use whoami and see you're root. Now use chmod.
 
  


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
chown loopoo Linux - Newbie 5 08-09-2005 10:38 AM
Chown -R Jakeh2k1 Linux - General 3 10-31-2004 05:23 PM
chown issues tsayles21 Linux - Newbie 1 03-30-2004 09:10 AM
chown -R ujotne Programming 3 02-25-2004 01:02 PM
chown Sathe Linux - General 13 10-14-2002 12:25 PM


All times are GMT -5. The time now is 01:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration