Koozali.org: home of the SME Server

chmod problem, cannot change attributes of remote files!

Offline karel

  • 5
  • +0/-0
chmod problem, cannot change attributes of remote files!
« on: August 10, 2008, 06:33:35 PM »
I've searched the forum but not found something similar.

I cannot change attributes of remote files through FTP on my local network!
When I set up a local FTP connection to my SME server using admin rights (cannot log on as root) I cannot change (chmod) the attributes of these files. /ibays/Primary/html/
I really would like to do so using my Windows machine and FTP
How?

I succeeded in changing attributes when I log on as root and use the chmod command. But this is very time consuming and complicated.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: chmod problem, cannot change attributes of remote files!
« Reply #1 on: August 11, 2008, 03:15:19 AM »
When I set up a local FTP connection to my SME server using admin rights (cannot log on as root) I cannot change (chmod) the attributes of these files. /ibays/Primary/html/

Permissions for i-bays are set through the i-bays panel of the server manager.

The ftp server is configured to reject chmod requests from ftp clients.

Offline karel

  • 5
  • +0/-0
Re: chmod problem, cannot change attributes of remote files!
« Reply #2 on: August 11, 2008, 09:59:40 AM »
Quote
Permissions for i-bays are set through the i-bays panel of the server manager

Yes but I didn't make additional i-bays and cannot change permissions for the primary i-bay in the server-manager.

How can I configure the the ftp server to accept chmod requests from (local) ftp clients?

Edit. New problem!
As I wrote earlier I am able to changemod files but then I have to be root. I want to install PHP-Fusion (http://php-fusion.co.uk/news.php).

Quote
Welcome to PHP-Fusion setup

Write permissions check failed

Please ensure you have chmodded the required folders.

I have set up this at least a 50 times, but never on SME. I double/tripple checked the permissions and all is ok!

What am I doing wrong?
« Last Edit: August 11, 2008, 03:43:11 PM by karel »

Offline karel

  • 5
  • +0/-0
Re: chmod problem, cannot change attributes of remote files!
« Reply #3 on: August 14, 2008, 04:46:26 PM »
Apparently one fool can ask more questions than a hundred wise men can answer.

Bye bye Contribs, this SME server looked promessing but I can't get it to work. :shock:

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: chmod problem, cannot change attributes of remote files!
« Reply #4 on: August 14, 2008, 05:15:09 PM »
karel

Quote
this SME server looked promessing but I can't get it to work.


Your question was answered by Charlie, but you chose to ignore the answer.
"The ftp server is configured to reject chmod requests from ftp clients."

You seem to not want to learn the correct way to use sme server, which is well documented in these wiki pages.
The simple way to chmod is to login via ssh (Putty) as root (or as a user with root privileges), and make the required changes, but then again depending on the exact issue, there may be a better/more appropriate sme server approach.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline karel

  • 5
  • +0/-0
Re: chmod problem, cannot change attributes of remote files!
« Reply #5 on: August 14, 2008, 06:28:01 PM »
karel
 

Your question was answered by Charlie, but you chose to ignore the answer.
"The ftp server is configured to reject chmod requests from ftp clients."
No I did not, I went in as root and chmodded everything by hand! Read my edit from august 11.

Quote
You seem to not want to learn the correct way to use sme server, which is well documented in these wiki pages.
Tell me where my problem is described in the wiki pages, I couldn't find it.

Quote
The simple way to chmod is to login via ssh (Putty) as root (or as a user with root privileges), and make the required changes, but then again depending on the exact issue, there may be a better/more appropriate sme server approach.
Actually I did, but didn't mentioned it to complicate the story and it is not relevant because I wrote I fixed the problem. So why slam this in my face?



As I mentioned even chmodding as root (because Charly said )(behind my pc containing the SME installation) setting all the write permissions OK gives problems. This has nothing more to do with an ftp server. But still the script doesn't want to install. That was the final question with no answer. So I'm stuck.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: chmod problem, cannot change attributes of remote files!
« Reply #6 on: August 14, 2008, 07:28:21 PM »
karel

Perhaps you read & understand English differently than I, but your original question was:
"I cannot change attributes of remote files through FTP on my local network! "

and the answer given was:
"The ftp server is configured to reject chmod requests from ftp clients."

which to me says you cannot do what you are asking to do via ftp, question answered !


Quote
....still the script doesn't want to install.

You have not provided any detailed information re that problem so how can you expect anyone to answer it !!!
Look in the log files eg /var/log/messages log file and other log files to find more specific errors.

Look at the FAQ and Howto wiki pages for further commands that you may need eg DB variables configuration (PHP)

http://wiki.contribs.org/SME_Server:Documentation:FAQ
and
http://wiki.contribs.org/Category:Howto
and
http://wiki.contribs.org/DB_Variables_Configuration
and
other PHP related commands
http://wiki.contribs.org/Useful_Commands

You also do not say what values you are chmod'ing folders and files to.
It is all relevant as sme has more strict security settings than other flavours of Linux.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline karel

  • 5
  • +0/-0
Re: chmod problem, cannot change attributes of remote files!
« Reply #7 on: August 14, 2008, 08:32:11 PM »
karel

Perhaps you read & understand English differently than I, but your original question was:
"I cannot change attributes of remote files through FTP on my local network! "

and the answer given was:
"The ftp server is configured to reject chmod requests from ftp clients."

which to me says you cannot do what you are asking to do via ftp, question answered !

Indeed, but new questions arise and instead of opening a new thread I continued in this one.

Quote
You have not provided any detailed information re that problem so how can you expect anyone to answer it !!!
Look in the log files eg /var/log/messages log file and other log files to find more specific errors.
What more info do you need when I say I have fixed chmod problem and still have write permission problems. If anyone doubted that I didn't do  that correctly he/she could bring it up.

But the truth is noone bothered. Only when you're hurt in your pride someone react.

Quote
Look at the FAQ and Howto wiki pages for further commands that you may need eg DB variables configuration (PHP)

http://wiki.contribs.org/SME_Server:Documentation:FAQ
and
http://wiki.contribs.org/Category:Howto
and
http://wiki.contribs.org/DB_Variables_Configuration
and
other PHP related commands
http://wiki.contribs.org/Useful_Commands

You also do not say what values you are chmod'ing folders and files to.
It is all relevant as sme has more strict security settings than other flavours of Linux.


Thank you for your time and effort, but I have Xamp working now.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: chmod problem, cannot change attributes of remote files!
« Reply #8 on: August 15, 2008, 01:17:43 AM »
karel

While you say you have resolved the issue otherwise using Xamp, the sme server is LAMP and quite capable of running the software you mentioned.
I reply for completeness.

Quote
What more info do you need when I say I have fixed chmod problem and still have write permission problems.

I stated that quite clearly ie
"Look in the log files eg /var/log/messages log file and other log files to find more specific errors."

Those errors would have told you which folder or file was not being able to be accessed or whatever other problem still existed and therefore indicated what still needed "fixing", perhaps by one of the commands mentioned in the links re PHP.

I think you gave up on sme far too quickly, but that's your loss.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: chmod problem, cannot change attributes of remote files!
« Reply #9 on: August 15, 2008, 03:59:29 AM »
It's a shame all the negativeness you received from your post.  Yes, by default you can not chmod via ftp.  But, we are after all still just using proftpd, and if proftpd has the feature, you can implement it on SME server. 

I searched for proftpd and chmod and guess what, proftpd has the feature and here is a link on how to get it to work.
http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-Umask.html 

In short:

<Limit SITE_CHMOD>
    AllowUser xxxxx
    DenyAll
  </Limit>

I tested this and was able to chmod files via ftp with no issues.  If you do implement this, then you will have to create the appropriate custom-templates and also work to determine what, if any, security issues you may raise by implementing this feature. 

But, your question is can it be done, and from my testing, yes it can.  Whether you really want to enable it or not, is your issue as it's your server. 

Others should rightly point out the security ramifications of doing this, as if the server gets compromised based on something you changed from the base, then you'll be pretty much on our own to to take the appropriate acton.

Good Luck,

John Bennett
......