LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 12:06 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

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, 12:46 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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, 12:55 AM   #3
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

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, 08:08 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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 10:10 AM
Help with chown command brokenpromises Linux - Newbie 2 09-05-2007 03:24 AM
help req in chown command vishnu Solaris / OpenSolaris 1 07-21-2006 07:05 AM
So... I used Chown command and screwed my pc... Nosram Linux - Newbie 3 01-20-2004 06:09 AM
chown command help ksgill Linux - Newbie 9 04-28-2003 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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