LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chown command (https://www.linuxquestions.org/questions/linux-newbie-8/chown-command-795935/)

tommytomato 03-17-2010 12:06 AM

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 )

kbp 03-17-2010 12:46 AM

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

tommytomato 03-17-2010 12:55 AM

Quote:

Originally Posted by kbp (Post 3901315)
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 )

kbp 03-17-2010 08:08 AM

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


All times are GMT -5. The time now is 03:39 PM.