Portal Home > Knowledgebase > Articles Database > permissions


permissions




Posted by shakybaky, 06-26-2008, 04:24 AM
I have a vps running centos5 WHM/cpanel I recently uploaded files from one vps to another untared them and moved them around where i need them. One of those files was a domain. I went into cpanel and created a domain and made an appropriate folder. I then ssh in and mv the folders into the domain name. Well everything appears to be fine and great. But i cannot change files(permissions,names) from cpanel or ftp. I can ssh in and change them but that isnt going to work if im creating things with ftp. I checked all the permissions. Nothing unusual. So i restarted whm just in case and now have permission issues accross that whole account. Nothing works in cpanel or ftp only ssh. Errors from ftp Rename/move failure: No such file or directory (553) Errors from cpanel fileop failure Any suggestions on fixing this. I dont want to have to delete and recreate the whole count if possible

Posted by Lsupport, 06-26-2008, 04:37 AM
We cannot suggest an exact fix with these detail. Do you have issue with files inside any users home directory.If so have you changed the files permission to "user.user"

Posted by david510, 06-26-2008, 06:06 AM
Are you able to list the files/folders using ftp?

Posted by shakybaky, 06-26-2008, 11:40 AM
yes i am able to see all the files in ftp and cpanel. Changing permissions or moving, editing, or deleting doesnt work.

Posted by cPanelDavidG, 06-26-2008, 11:43 AM
Have you ensured the files have proper ownership as recommended by a previous poster?

Posted by shakybaky, 06-26-2008, 11:52 AM
they are wrong root@server [/home/ksk/public_html]# ls -ld drwxr-xr-x 36 ksk nobody 4096 Jun 26 03:56 ./ how do i correct this a simple ssh command of chmod doesnt fix this.

Posted by shakybaky, 06-26-2008, 12:14 PM
I found a tutorial on the subject I just cant figure out how to change the permissions. I tried chmod 777 but no avail It wont let me change permissions from cpanel or ftp. I changed the via ssh but it isnt helping.

Posted by cPanelDavidG, 06-26-2008, 12:16 PM
You should be doing this as the root user via SSH.

Posted by shakybaky, 06-26-2008, 12:21 PM
i did try from root. I went into ssh via root I then found the users directory and chmoded it to 755 but no luck then i chmoded the entire folder and subfolders 777 still nothing working. I have root access but it doesnt seem to keep the change.

Posted by cPanelDavidG, 06-26-2008, 01:12 PM
but did you ever change the ownership? Ownership is typically the issue in these situations, not permissions.

Posted by shakybaky, 06-26-2008, 01:34 PM
root@server [/home/ksk]# ls -ls public_html total 8088 4 drwxr-xr-x 36 ksk nobody 4096 Jun 26 11:48 ./ 4 drwx--x--x 11 ksk ksk 4096 Jun 26 00:52 ../ 4 -rw-r--r-- 1 ksk ksk 16 Jun 24 03:21 .ftpquota 4 -rw-r--r-- 1 ksk ksk 529 Jun 24 03:22 .htaccess 4 drwxr-xr-x 2 ksk ksk 4096 Jun 24 02:37 .smileys/ 40 -rw-r--r-- 1 ksk ksk 39107 Jun 24 03:22 PHProxy.class.php 4 d--------- 5 cpanelroundcube cpanelroundcube 4096 May 19 14:07 SEND/ 4260 -rw-r--r-- 1 cpanelroundcube cpanelroundcube 4349774 May 15 14:08 SendStudio.rar 4 drwxr-xr-x 3 cpanelroundcube cpanelroundcube 4096 Apr 2 17:40 WysiwygPro/ 4 drwxr-xr-x 2 ksk ksk 4096 Jun 24 02:35 _private/ 4 drwxr-xr-x 4 ksk ksk 4096 Jun 26 02:32 _vti_bin/ 4 drwxr-xr-x 2 ksk ksk 4096 Jun 24 02:35 _vti_cnf/ 4 -rw-r--r-- 1 ksk ksk 1754 Jun 24 02:35 _vti_inf.html 4 drwxr-xr-x 2 ksk ksk 4096 Jun 24 02:35 _vti_log/ 4 drwxr-x--- 2 ksk nobody 4096 Jun 24 02:35 _vti_pvt/ 4 drwxr-xr-x 2 ksk ksk 4096 Jun 24 02:35 _vti_txt/ 360 -rw-r--r-- 1 cpanelroundcube cpanelroundcube 361086 Apr 5 01:46 allkeywords.txt 32 -rw-r--r-- 1 cpanelroundcube cpanelroundcube 29495 Apr 2 19:28 backgoundtest.jpg 8 -rw-r--r-- 1 cpanelroundcube cpanelroundcube 7406 Apr 2 19:28 bannertest.jpg 4 drwxr-xr-x 2 cpanelroundcube cpanelroundcube 4096 Apr 2 17:32 biodiesel/ 4 drwxr-xr-x 2 ksk ksk 4096 Jun 24 02:35 cgi-bin/ 8 -rw-r--r-- 1 ksk ksk 5699 Jun 24 03:21 config.php 4 drwxr-xr-x 3 cpanelroundcube cpanelroundcube 4096 May 19 04:29 ebay-su/ 4 drwxr-xr-x 3 cpanelroundcube cpanelroundcube 4096 May 19 00:26 ebaysu/ 1852 -rw-r--r-- 1 ksk ksk 1892224 Jun 24 03:22 error_log 4 d--------- 5 cpanelroundcube cpanelroundcube 4096 May 29 19:15 evilp/ 4 drwxr-xr-x 3 ksk ksk 4096 Jun 24 22:28 evilpr/ 4 -rwxr-xr-x 1 cpanelroundcube cpanelroundcube 3638 Apr 2 19:28 favicon.ico* 4 drwxr-xr-x 2 cpanelroundcube cpanelroundcube 4096 Apr 3 02:25 fileupload/ 4 drwxr-xr-x 7 cpanelroundcube cpanelroundcube 4096 Apr 3 02:25 filmy/ 12 -rw-r--r-- 1 cpanelroundcube cpanelroundcube 9476 Apr 2 19:28 fucoff.jpg 4 -rw-r--r-- 1 ksk ksk 2158 Jun 24 03:21 google510ad4d.html 16 -rw-r--r-- 1 ksk ksk 12773 Jun 24 03:21 hotlinked.htm 4 drwxr-xr-x 2 ksk ksk 4096 Jun 24 03:22 images/ 16 -rw-r--r-- 1 ksk ksk 13656 Jun 24 03:22 index.inc.php 44 -rw-r--r-- 1 ksk ksk 44053 Jun 24 04:08 index.php 4 -rw-r--r-- 1 ksk ksk 3055 Jun 24 03:22 javascript.js 4 drwxr-xr-x 7 ksk ksk 4096 Jun 25 02:30 kali/ 4 drwxr-xr-x 2 ksk ksk 4096 Jun 24 03:41 kski.net/ 4 drwxr-xr-x 3 ksk ksk 4096 Jun 24 22:28 kski.org/ 84 -rw-r--r-- 1 cpanelroundcube cpanelroundcube 78146 Apr 2 19:30 logo.jpg 4 drwxr-xr-x 3 ksk ksk 4096 Jun 24 22:28 mendo/ 4 drwxrwxrwx 4 ksk ksk 4096 May 20 13:32 mendopic/ 4 drwxr-xr-x 2 cpanelroundcube cpanelroundcube 4096 Apr 3 02:25 photogallery/ 4 -rw-r--r-- 1 cpanelroundcube cpanelroundcube 169 Apr 2 19:30 phpinfo.php 4 drwxr-xr-x 13 cpanelroundcube cpanelroundcube 4096 Jun 22 16:01 glass.com/ 4 drwxr-xr-x 3 ksk ksk 4096 Jun 24 03:22 proxy/ 460 -rw-r--r-- 1 ksk ksk 464228 Jun 24 03:22 raw9.psd 4 drwxr-xr-x 25 cpanelroundcube cpanelroundcube 4096 Apr 3 15:14 roadtrip/ 4 -rw-r--r-- 1 ksk ksk 62 Jun 24 03:22 robot.txt 4 drwxrwxrwx 16 cpanelroundcube cpanelroundcube 4096 Jun 26 11:49 romeace.com/ 68 -rw-r--r-- 1 ksk ksk 65095 Jun 24 03:22 smops.jpg 4 drwxr-xr-x 2 cpanelroundcube cpanelroundcube 4096 Apr 2 17:40 stpattys/ 8 -rw-r--r-- 1 ksk ksk 5590 Jun 24 03:22 style.css 4 drwxrwxrwx 5 cpanelroundcube cpanelroundcube 4096 Jun 6 04:29 tempgen/ 4 drwxr-xr-x 2 cpanelroundcube cpanelroundcube 4096 Apr 2 19:01 thumbnails/ 4 -rw-r--r-- 1 ksk ksk 324 Jun 24 03:22 topsites.php 4 drwxr-xr-x 3 ksk ksk 4096 Jun 24 22:28 uafter.com/ 4 -rw-r--r-- 1 ksk ksk 1188 Jun 24 03:22 url_form.inc 4 drwxr-xr-x 34 cpanelroundcube cpanelroundcube 4096 Jun 25 01:55 uslea.com/ 8 -rw-r--r-- 1 cpanelroundcube cpanelroundcube 4813 Apr 2 19:28 weblinklist.html 4 drwxr-xr-x 8 cpanelroundcube cpanelroundcube 4096 Apr 17 14:07 yacgmi/ 628 -rw-r--r-- 1 cpanelroundcube cpanelroundcube 635660 Apr 17 14:05 yacgmi.zip so how do i fix the ownerships. i see there are some major problems. I just am lost, im a newb. I dont know why cpanelroundcube is owner of most of my domains. what coomands do i need to change the entire /home/user folder back to the right owners. I searched for it but cannot find the correct commands to use. Any help would be greatly appreciated.

Posted by david510, 06-26-2008, 01:47 PM
Use the following command from SSH as root. chown -R ksk.ksk /home/ksk/public_html/

Posted by shakybaky, 06-26-2008, 01:53 PM
thanks david I was actually looking for chown and chgrp but you made it alot easier. Thank you everything seems to be running smoothly now.

Posted by david510, 06-26-2008, 02:04 PM
Good. If you encounter any issue with the FP extension for this domain, re-install it from the WHM.

Posted by shakybaky, 06-26-2008, 02:08 PM
Ftp and cpanel seem to be working correctly now. Thank you for the wonderful support.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
php to read XML (Views: 685)


Language: