LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-25-2009, 11:23 PM   #1
sh0em0nkey
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Unhappy Permission issues after cPanel transfer.


First off, I'm not a complete newb, but I'm not a Linux guru either. I'm familiar to Linux I suppose.

I just did a server switch from a shared host to a VPS, and I used WHM/cPanel automatic transfer feature. It totally ruined the permissions on the site.

The process set everything (files and directories) to 755, and the owner and group to the username associated with the hosting account.

Scripts could no longer write, because Apache runs under the owner and group "nobody".

So I use the chown command to set the owner and group to nobody.

>cd home
>cd username
>chown -R nobody:nobody public_html

Great, everything works on the site. But now I can't use FTP anymore, the account no longer has permission to write to any of the files.

I need to be able to write, I use FTP for a number of operations to update and modify the site.

To get around it for now, I have set owner to username, group to nobody, and directory permissions to 775 and file permissions to 644.

But I still have write errors here and there, and different owners and groups for different files (because they are created on the web site, and assigned to the owner and group nobody).

What can I do to set it up so that I can set the owner and group to "nobody", but still be able to write via FTP as a different user?

I desperately need consistency... 755 for all directories, 644 for files, nobody:nobody, work on the site from FTP (Dreamweaver, FTP client).

Advice?
 
Old 12-27-2009, 04:16 PM   #2
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Rep: Reputation: 49
You will have to change the user used by the FTP server. What Ftp server are you using?
 
Old 12-28-2009, 04:05 AM   #3
sh0em0nkey
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
I am using pure-ftpd.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BIND 9 Zone Transfer Issues lomax0990 Linux - Server 8 12-03-2009 07:40 AM
Cpanel/WHM Died at /usr/local/cpanel/Cpanel/Hulk.pm line 92. liang3391 Linux - Software 1 06-22-2009 02:02 PM
hsphere to whm/cpanel transfer tv1 Linux - Server 1 09-15-2007 10:45 PM
cPanel Account transfer problem hamidrkh Linux - Newbie 0 02-12-2007 10:33 AM
cpanel redirection and permission problem ddaas Linux - Software 0 03-21-2006 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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