Author Topic: Automated "Fix File Permissions"..?  (Read 9213 times)

0 Members and 1 Guest are viewing this topic.

Munerift

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://munerift.xepher.net/
Automated "Fix File Permissions"..?
« on: June 05, 2006, 12:27:00 am »
Since I'm phase 2, I use a .php document for my index page. Now every time I update, my main page turns into a class 500 mess, and then I have to trek back to the main site to fix my file permissions. I was wondering Xeph if there's anyway you can have an option to automate this at each .php page upload? (as long as the user specifies they want it, because others can set it to their own values I'm taking it?)
I'm Home!
MuneRift - DeviantArt - Etsy

griever

  • Sr. Member
  • ****
  • Posts: 457
    • View Profile
Automated "Fix File Permissions"..?
« Reply #1 on: June 05, 2006, 03:25:11 am »
I set up WinSCP to automatically upload all files with the right permissions for PHP, but it also uses the same permissions for images and css files.  However, the majority of files I upload are PHP files, so it's okay.  I checked the "Use same settings next time" option, down in the lower left, after setting up the permissions for PHP files.
"You can get all A's and still flunk life." (Walker Percy)

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,334
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Automated "Fix File Permissions"..?
« Reply #2 on: June 05, 2006, 12:48:27 pm »
Yeah, as griever hinted, file permissions are completely optional, and able to be set by whatever upload program you use. If you use one smart enough, it'll set the right permissions during the actual upload. I'd highly recommend SCP compared to FTP, as most clients are designed with unix-style file permissions designed. Though, in fairness, there are several FTP clients that can deal with permissions quite well too.

Databits

  • Global Moderator
  • *****
  • Posts: 1,607
  • Programming's not just a science, it's an art.
    • View Profile
Automated "Fix File Permissions"..?
« Reply #3 on: June 05, 2006, 04:48:44 pm »
Gimme a litte time and I'll set up a guide for this too. May as well convert the old SSH guide into something usefull too.
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,334
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Automated "Fix File Permissions"..?
« Reply #4 on: June 06, 2006, 12:03:00 am »
Cool, thanks.