LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-02-2010, 05:07 AM   #1
zeeypeewee
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Rep: Reputation: 0
hi chmod problem


I have a dedicated server on centos with kloxo installed and an image hosting script, i have to chmod images folder and so i did, to be able to upload photos but the script ain't working, it tells me that i have to chmod images folder to 777. what can i do ? site path /home/admin/sto****

i also chmoded home, admin and sto*** folders to 777 and nothing, the same problem.

i also had the script on a vps and it was working fine.

can you tell me how to solve the problem?
 
Old 03-02-2010, 05:12 AM   #2
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
Perhaps you need to use

chmod -R 777 <picture-folder>

which changes the mode of all subfolders and images in it. Plain chmod 777... will only change permissions of the top folder.
 
Old 03-02-2010, 05:13 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by zeeypeewee View Post
I have a dedicated server on centos with kloxo installed and an image hosting script, i have to chmod images folder and so i did, to be able to upload photos but the script ain't working, it tells me that i have to chmod images folder to 777. what can i do ? site path /home/admin/sto****

i also chmoded home, admin and sto*** folders to 777 and nothing, the same problem.

i also had the script on a vps and it was working fine.

can you tell me how to solve the problem?
Hi zeeypeewee,

welcome to LQ.

Don't rush things espacially when it comes to chmod 777 any folders. Think about what this means for the folder. quick answer is that you allow everyone on the machine to write to this folder.

So I first would reduo the chmod and get the old settings back. A sane default would be 755. This allows only the owner (user) of the directory to write and every one in its group and everyone else to read and execute (aka read) the directory.

Next on the list is the script.
Try to get the exact path of the directory the script wants to write to. It should tell you either after running it or inside your webserver log files.

to further help you out. Provide the exact error message.
 
Old 03-02-2010, 05:19 AM   #4
zeeypeewee
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
problem

i chmoded folders to 755 and images with -R flag to 777 and ain't working. error

Please check site settings in admin panel and set proper value for server local path.

Also please make sure the images folder is chmodded to 0777
 
Old 03-02-2010, 05:25 AM   #5
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
Quote:
Originally Posted by zeeypeewee View Post
Please check site settings in admin panel and set proper value for server local path.
sounds to me your path is not set correctly

Quote:
please make sure the images folder is chmodded to 0777
Thats just not safe, a properly coded script should be able to access the folder with 755. what script are you trying to run?
 
Old 03-02-2010, 05:27 AM   #6
zeeypeewee
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Scripteen_V1.4.3 image hosting
 
Old 03-02-2010, 05:27 AM   #7
zeeypeewee
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
right path was incorect, thanks for helping
 
  


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
Sticky Bit? (ie: chmod 2770 vs chmod 770) JeffC1 Linux - Newbie 7 03-18-2010 07:39 AM
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 01:10 PM
chmod 775 to only the directories and chmod 664 to only the files? apachenew Linux - Security 6 09-27-2007 03:26 PM
chmod, external usb, vfat - can't chmod a directory itsjustme Slackware 2 04-02-2006 04:23 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM

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

All times are GMT -5. The time now is 10:55 AM.

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