Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-06-03, 15:31:50

Author Topic: File & Directory Permission  (Read 6115 times)

0 Members and 1 Guest are viewing this topic.

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
File & Directory Permission
« on: 2015-04-25, 21:17:29 »
I need to change directory and file permission through Kolxo-MR panel.
Because I am using Drupal. And in settings file (where all database username & password written), I want to edit that file.
Currently the setting files has 444 permission. I want to set it 644, and after editing again I will turn it to 444. This file ownership is the current user.

But the problem is, when I am trying to change the permission, it does not changing.

How I can change file permission through Kloxo-MR?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: File & Directory Permission
« Reply #1 on: 2015-04-26, 04:15:49 »
Run 'sh /script/fix-chownchmod' or 'fix chown chmod' in 'webserver configure'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: File & Directory Permission
« Reply #2 on: 2015-04-26, 19:28:23 »
I have tried both way you have said but the problem does not fixed. Also I have try to Change Permissions Recursively. But the permission does not change.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: File & Directory Permission
« Reply #3 on: 2015-04-26, 19:51:05 »
I have tried both way you have said but the problem does not fixed. Also I have try to Change Permissions Recursively. But the permission does not change.
Inform here your ssh command.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: File & Directory Permission
« Reply #4 on: 2015-04-26, 20:00:23 »
Kindly see the result of SSH command below -

login as: root
root@195.154.97.223's password:
Last login: Sun Apr 26 19:23:02 2015 from 116.203.197.17
[root@sd-26746 ~]# sh /script/fix-chownchmod

- For help, type '/script/fix-chownchmod --help'
- No argument supplied. Defaulting to all

Fixing Chown and Chmod
- chown ultraso:apache FOR /home/ultraso/
- chmod 751 FOR /home/ultraso/
- chown ultraso:ultraso FOR INSIDE /home/ultraso/kloxoscript/
- chown ultraso:apache FOR /home/ultraso/kloxoscript/
- chmod 644 FOR *.php* INSIDE /home/ultraso/kloxoscript/
- chmod 755 FOR /home/ultraso/kloxoscript/ AND INSIDE
- chown ultraso:ultraso FOR INSIDE /home/ultraso/bedbreakfast/
- chmod 644 FOR *.php* INSIDE /home/ultraso/bedbreakfast/
- chmod 755 FOR *.pl/cgi/py/rb INSIDE /home/ultraso/bedbreakfast/
- chmod 755 FOR /home/ultraso/bedbreakfast/ AND INSIDE
- chmod 777 FOR /home/httpd/bedbreakfast.tk/stats AND INSIDE
- chown ultraso:ultraso FOR /home/ultraso/bedbreakfast/
- chmod 755 FOR /home/ultraso/bedbreakfast/cgi-bin AND FILES
- chown ultraso:ultraso FOR INSIDE /home/ultraso/ultraso/
- chmod 644 FOR *.php* INSIDE /home/ultraso/ultraso/
- chmod 755 FOR *.pl/cgi/py/rb INSIDE /home/ultraso/ultraso/
- chmod 755 FOR /home/ultraso/ultraso/ AND INSIDE
- chmod 777 FOR /home/httpd/ultraso.com/stats AND INSIDE
- chown ultraso:ultraso FOR /home/ultraso/ultraso/
- chmod 755 FOR /home/ultraso/ultraso/cgi-bin AND FILES
- chown ultraso:ultraso FOR /home/lxadmin/mail/domains/bedbreakfast.tk/
- chown ultraso:ultraso FOR INSIDE /home/lxadmin/mail/domains/bedbreakfast.tk/
- chmod 600 FOR * INSIDE /home/lxadmin/mail/domains/bedbreakfast.tk/
- chmod 700 FOR /home/lxadmin/mail/domains/bedbreakfast.tk/ AND INSIDE
- chown ultraso:ultraso FOR /home/lxadmin/mail/domains/ultraso.com/
- chown ultraso:ultraso FOR INSIDE /home/lxadmin/mail/domains/ultraso.com/
- chmod 600 FOR * INSIDE /home/lxadmin/mail/domains/ultraso.com/
- chmod 700 FOR /home/lxadmin/mail/domains/ultraso.com/ AND INSIDE
- chown admin:apache FOR /home/admin/
- chmod 751 FOR /home/admin/
- chown admin:admin FOR INSIDE /home/admin/kloxoscript/
- chown admin:apache FOR /home/admin/kloxoscript/
- chmod 644 FOR *.php* INSIDE /home/admin/kloxoscript/
- chmod 755 FOR /home/admin/kloxoscript/ AND INSIDE
[root@sd-26746 ~]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: File & Directory Permission
« Reply #5 on: 2015-04-26, 20:02:25 »
I mean your files that want change from 444 to 644.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: File & Directory Permission
« Reply #6 on: 2015-04-26, 20:09:55 »
Yes, that settings file (where all drupal database username & password written) has been change to 644 from 444. But after editing that file I should be able to revert back to 444. And now I can't revert back to 444. It is not changing through control panel.

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: File & Directory Permission
« Reply #7 on: 2015-04-27, 11:56:27 »
Any idea, how to change file & directory permission in Kloxo-MR control panel?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: File & Directory Permission
« Reply #8 on: 2015-04-27, 12:44:14 »
Try via 'admin > server > localhost > file manager'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: File & Directory Permission
« Reply #9 on: 2015-04-27, 13:04:31 »
Yes I have gone to admin > Server > Servers > localhost > home > ultraso (customer) > ultraso (website folder) > tmp (folder). And I have tried to change the folder 755 to 775. But still it does not changed.

Is there any other way?


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: File & Directory Permission
« Reply #10 on: 2015-04-27, 13:19:04 »
From ssh or 'command center' try 'chmod 775 /home/ultraso/ultraso/tmp'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: File & Directory Permission
« Reply #11 on: 2015-04-27, 13:32:56 »
It's a bug for change permissions and ownership. Will be fixed in next update.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: File & Directory Permission
« Reply #12 on: 2015-04-27, 13:33:44 »
Yes, now it is done.

Offline sandipcd

  • Senior Member
  • *
  • Posts: 167
  • Karma: +0/-0
    • View Profile
Re: File & Directory Permission
« Reply #13 on: 2015-04-27, 14:20:17 »
Generally what permission should have in files and directories?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: File & Directory Permission
« Reply #14 on: 2015-04-27, 14:26:27 »
775 for directory and 644 for file. Fix-chownchmod (fix ownership and permissions) script will do this job.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.03 seconds with 22 queries.

web stats analysis