LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-07-2009, 05:55 AM   #1
Andy_m
LQ Newbie
 
Registered: Aug 2009
Location: England
Distribution: CentOS 5.3
Posts: 2

Rep: Reputation: 0
simple chown advice needed - pureftpd


Hi All

Well I managed to get the virtual users working for pureftpd. However this has now nocked my main ftp user out (that I created via web control panel), so I recreated this user via command line (not web control panel).

gave it the directory of where my website files relay and used this command.

Code:
pure-pw useradd Andy -u ftpuser -D /home/default/site.co.uk/user/htdocs
I did this chown after and restarted pure-ftpd
Code:
chown UID:UID /home/default/site.co.uk/user/htdocs
But I cannot see any file in their but can via ls -al via ssh root and can see the website via standard http.

I am thinking its a very simple chown permissions not letting me see files by other users. so just wondering how to set this right.

other users are restricted but Andy user should have same as root permissions.

would this code be right
Code:
chown -R Andy /home/default/site.co.uk/user/htdocs
?

Last edited by Andy_m; 08-07-2009 at 05:58 AM.
 
Old 08-08-2009, 03:32 PM   #2
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 36
"chown -R Andy /home/default/site.co.uk/user/htdocs" would change the ownership of the directory "htdocs" and all files and subdirectories within it to the user Andy. If you're logged in as Andy, however, and you do not own the files beforehand, you will not be able to change the ownership, so you will need to login as the user who owns the files or as root/sudo.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help advice needed scooby79 Linux - Networking 1 06-21-2008 06:46 AM
simple question - how to chown ALL files in a dir? flipwhy Linux - Newbie 5 08-29-2006 05:54 PM
advice needed crimsonmuon Linux - Software 1 12-19-2005 04:57 AM
advice needed bshearer *BSD 2 04-18-2005 12:19 PM
Pureftpd + xinetd: Writes pureftpd commandline to client when connecting bomix Linux - Software 2 03-29-2005 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:12 AM.

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