LinuxQuestions.org
Register a domain and help support LQ
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 03-17-2010, 01:06 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 939

Rep: Reputation: 32
chown command


hi all

I've added a user to my system, FTP now works, whats the sorry with chown a user to the www dir so I can upload files to the server, is this going to change owner ship of apache to current user

I'm reading this page
http://www.cyberciti.biz/faq/how-to-...chown-command/

So would i use

# chown me_user:me_user /www

TT ( karl )
 
Old 03-17-2010, 01:46 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
I'd probably prefer to keep the /www dir owned by the apache user, vsftpd can change uploaded file ownership for you -

chown_uploads=YES
chown_username=apache

hth
 
Old 03-17-2010, 01:55 AM   #3
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 939

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by kbp View Post
I'd probably prefer to keep the /www dir owned by the apache user, vsftpd can change uploaded file ownership for you -

chown_uploads=YES
chown_username=apache

hth
So this going to allow me to upload to the www dir wiht me current user

Quote:
chown_uploads=YES
chown_username=apache
if I'm running apache 2 wouldn't it be apache2, I'm quiet new to this stuff ( chown ) I've all ways used winSCP and uploaded files and didn't worry about it

TT ( karl )
 
Old 03-17-2010, 09:08 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
You can always take note of the current owner (apache?) and change it back if it doesn't work -

chown -R your_id:your_group /www

Use '-R' for recursive

cheers
 
  


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
How to use the chown command cbjhawks Linux - Newbie 2 01-12-2010 11:10 AM
Help with chown command brokenpromises Linux - Newbie 2 09-05-2007 04:24 AM
help req in chown command vishnu Solaris / OpenSolaris 1 07-21-2006 08:05 AM
So... I used Chown command and screwed my pc... Nosram Linux - Newbie 3 01-20-2004 07:09 AM
chown command help ksgill Linux - Newbie 9 04-28-2003 11:52 PM


All times are GMT -5. The time now is 04:31 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