permission denied

Discussion in 'General' started by crypted, Jan 15, 2007.

  1. crypted

    crypted Member

    When trying to access a specific folder, my FTP user is getting permission denied. I've tried using chown to fix it, but it won't work. The FTP user is web4_phigam. However, the files/folders are owned by "derek" and in the group "web4." The phigam user is a user in /etc/passwd and it is administrator according to ISPCONFIG's web interface. When using "chown -R web_phigam web/" the option doesn't stick to the files. How can I get the directories to be owned by the correct user?
     
  2. martinfst

    martinfst Member Moderator

    did you set the FTP tick box for this user in ISPConfig ?
     
  3. crypted

    crypted Member

    there is no tick box for FTP, however, there is one for "administrator" and i did select that one. so it should have permissions to do all that it needs to do for accessing and so forth, but it doesnt/wont work. i'm using the perfect install from centos 4.4
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you enable the FTP checkbox in the website?
     
  5. martinfst

    martinfst Member Moderator

    See attached image
     

    Attached Files:

  6. crypted

    crypted Member

    oh, yes certainly... that's enabled. and i can login just fine, however, things become permission denied and inaccessible. when i login as root, the owner:group is a bit wacky. i was able to get the group to web4 like it should be, but i cant get the owner to any of the web4 clients.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Please uncheck the "administrator" checkbox of the admin user, wait 2-3 minutes, check the administrator checkbox again. ISPConfig will set the permissions again then.
     
  8. crypted

    crypted Member

    After doing what you said, there was still no go. Once I removed the administrator from the user, Apache did reset the owner, however, after re-adding the user, the original scheme returned. It is as follows:
    dingle@its:/var/www/web4# ls -lah
    total 40K
    drwxr-xr-x 9 apache web4 4.0K Jan 15 06:47 .
    drwxr-xr-x 35 root root 4.0K Jan 11 00:30 ..
    drwxrwxr-x 2 apache web4 4.0K Jan 2 16:36 cgi-bin
    -rw-rw-r-- 1 root web4 55 Jan 15 04:01 .htpasswd
    drwxr-xr-x 3 apache web4 4.0K Jan 4 00:30 log
    drwxrwxrwx 2 apache web4 4.0K Jan 2 16:36 phptmp
    drwxr-xr-x 2 apache web4 4.0K Jan 2 16:36 ssl
    drwxr-xr-x 4 apache web4 4.0K Jan 2 16:37 user
    drwxrwxr-x 24 apache web4 4.0K Jan 14 22:51 web
    dingle@its:/var/www/web4# ls -lah
    total 48K
    drwxr-xr-x 9 dingle web4 4.0K Jan 15 06:48 .
    drwxr-xr-x 35 root root 4.0K Jan 11 00:30 ..
    drwxrwxr-x 2 dingle web4 4.0K Jan 2 16:36 cgi-bin
    -rw------- 1 dingle web4 24 Jan 15 06:48 .forward
    -rw-rw-r-- 1 root web4 55 Jan 15 04:01 .htpasswd
    drwxr-xr-x 3 dingle web4 4.0K Jan 4 00:30 log
    drwxrwxrwx 2 dingle web4 4.0K Jan 2 16:36 phptmp
    -rw-r--r-- 1 root root 497 Jan 15 06:48 .procmailrc
    drwxr-xr-x 2 dingle web4 4.0K Jan 2 16:36 ssl
    drwxr-xr-x 4 dingle web4 4.0K Jan 2 16:37 user
    lrwxrwxrwx 1 root root 48 Jan 15 06:48 .vacation.cache -> /var/www/web4/user/web4_phialpha/.vacation.cache
    drwxrwxr-x 24 dingle web4 4.0K Jan 14 22:51 web
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Please post your /etc/passwd here.
     
  10. crypted

    crypted Member

    web3_derek:x:10002:10003:Derek Gordon:/var/www/web3:/bin/false
    web3_webmaster:x:10003:10003:webmaster:/var/www/web3/user/web3_webmaster:/bin/false
    web3_bsregisters:x:10004:10003:Bullshit Registry:/var/www/web3/user/web3_bsregisters:/bin/false
    web1_buydomain:x:10001:10001:Buy Domain:/var/www/web1/user/web1_buydomain:/bin/false
    shawn:x:507:507::/home/shawn:/bin/sh
    web10_matt:x:10030:10010:matt:/var/www/web10:/bin/false
    web5_boxdata:x:10007:10005:Box Data:/var/www/web5/user/web5_boxdata:/bin/false
    web5_canel:x:10008:10005:Canels:/var/www/web5/user/web5_canel:/bin/false
    web5_postmaster:x:10010:10005:postmaster:/var/www/web5:/bin/false
    web5_sales:x:10011:10005:sales:/var/www/web5/user/web5_sales:/bin/false
    web5_webmaster:x:10012:10005:Webmaster:/var/www/web5/user/web5_webmaster:/bin/false
    web5_partnerships:x:10013:10005:partnerships:/var/www/web5/user/web5_partnerships:/bin/false
    web16_derek:x:10034:10016:derek:/var/www/web16/user/web16_derek:/bin/false
    web16_shiz:x:10020:10016:shiz:/var/www/web16:/bin/false
    web16_junk:x:10032:10016:JUnk:/var/www/web16/user/web16_junk:/bin/false
    web16_spamthis:x:10033:10016:spam me:/var/www/web16/user/web16_spamthis:/bin/false
    web28_metro_net:x:10023:10028:metro_net:/var/www/web28:/bin/false
    web11_matt:x:10021:10011:matt:/var/www/web11:/bin/false
    web6_comments:x:10014:10006:comments:/var/www/web6/user/web6_comments:/bin/false
    web6_gawd:x:10015:10006:gawd:/var/www/web6:/bin/false
    web6_webmaster:x:10016:10006:webmaster:/var/www/web6/user/web6_webmaster:/bin/false
    web4_phialpha:x:10005:10004:phialpha:/var/www/web4/user/web4_phialpha:/bin/false
    web4_website:x:10006:10004:website:/var/www/web4/user/web4_website:/bin/false
    web4_webmaster:x:10035:10004:Webmaster:/var/www/web4/user/web4_webmaster:/bin/false

    i created a different user, set it to the administrator, and it works as that user and it now has the directory ownership. i dont get why the original user wouldnt work though...


    also, another account wont let me set the group ownership. when ftping, i can't delete, create, or anything with the user although i can login. here's that one's info:
    drwxr-xr-x 5 web6_gawd bling0r 4.0K Jan 2 16:48 user
    lrwxrwxrwx 1 root root 44 Jan 13 15:46 .vacation.cache -> /var/www/web6/user/web6_gawd/.vacation.cache
    drwxrwxr-x 16 web6_gawd bling0r 4.0K Jan 7 19:26 web
    dingle@its:/var/www/web6# chown -R web6_gawd:web6 web/
    dingle@its:/var/www/web6# ls -lah
    total 76K
    drwxr-xr-x 10 web6_gawd bling0r 4.0K Jan 13 15:46 .
    drwxr-xr-x 35 root root 4.0K Jan 11 00:30 ..
    drwxrwxr-x 2 web6_gawd bling0r 4.0K Jan 2 16:47 cgi-bin
    -rw------- 1 web6_gawd bling0r 22K Jan 16 11:54 dead.letter
    -rw------- 1 web6_gawd bling0r 24 Jan 13 15:46 .forward
    -rw-rw-r-- 1 root bling0r 81 Jan 16 04:02 .htpasswd
    drwxr-xr-x 3 web6_gawd bling0r 4.0K Jan 4 00:30 log
    drwx------ 3 web6_gawd bling0r 4.0K Jan 3 17:16 mail
    drwxrwxrwx 2 web6_gawd bling0r 4.0K Jan 3 23:59 phptmp
    -rw-r--r-- 1 root root 463 Jan 13 15:46 .procmailrc
    drwx------ 2 web6_gawd bling0r 4.0K Jan 16 11:54 .spamassassin
    drwxr-xr-x 2 web6_gawd bling0r 4.0K Jan 2 16:47 ssl
    drwxr-xr-x 5 web6_gawd bling0r 4.0K Jan 2 16:48 user
    lrwxrwxrwx 1 root root 44 Jan 13 15:46 .vacation.cache -> /var/www/web6/user/web6_gawd/.vacation.cache
    drwxrwxr-x 16 web6_gawd bling0r 4.0K Jan 7 19:26 web
    dingle@its:/var/www/web6#


    here's /etc/group:
    users:x:100:web3_webmaster,web3_bsregisters,web1_buydomain,web5_boxdata,web5_canel,web5_sales,web5_webmaster,web5_partnerships,web16_derek,web16_junk,web16_spamthis,web6_comments,web6_webmaster,web4_phialpha,web4_website,web4_webmaster
    scpuser:x:502:
    voiceserver:x:503:
    derek:x:504:
    admispconfig:x:505:admispconfig
    web1:x:10001:admispconfig
    fork:x:10002:
    web3:x:10003:admispconfig,web3_derek
    dingle:x:10005:
    bling0r:x:10006:
    web4:x:10004:admispconfig,web4_access
    web5:x:10005:admispconfig,web5_postmaster
    web6:x:10006:admispconfig,web6_gawd
    web9:x:10009:admispconfig
    web10:x:10010:admispconfig,web10_matt
    web11:x:10011:admispconfig,web11_matt
    web12:x:10012:admispconfig
    web13:x:10013:admispconfig
    web15:x:10015:admispconfig
    web16:x:10016:admispconfig,web16_shiz
    web17:x:10017:admispconfig
    web18:x:10018:admispconfig
    web19:x:10019:admispconfig
    web20:x:10020:admispconfig
    web21:x:10021:admispconfig
    web22:x:10022:admispconfig
    web23:x:10023:admispconfig
    web24:x:10024:admispconfig
    web25:x:10025:admispconfig
    web26:x:10026:admispconfig
    evo:x:506:
    web28:x:10028:admispconfig,web28_metro_net
     
    Last edited: Jan 16, 2007
  11. falko

    falko Super Moderator Howtoforge Staff

    You use the group ID 10006 twice! I guess the problem was the same with the user dingle in /etc/passwd (that's why I wanted to see the whole file ;) ).
     

Share This Page