Koozali.org: home of the SME Server

Strange Permissions in Primary Ibay - Kills FTP

Offline jfarschman

  • *
  • 406
  • +0/-0
Strange Permissions in Primary Ibay - Kills FTP
« on: March 02, 2006, 04:10:21 PM »
Hi,

  Just tried to ftp into the primary ibay as admin and I can READ, but not WRITE.  I checked the permissions and it's looks like this:

Code: [Select]

drwxr-xr-x  2 root root 4096 Jan 26 12:39 cgi-bin
drwxr-xr-x  3 root root 4096 Feb 14 12:19 files
drwxr-xr-x  4 root root 4096 Feb  3 08:33 html


So no writing unless you are root.  I checked my test system and it has correct settings:

Code: [Select]

drwxr-s---  2 admin shared 4096 Jan 10 11:09 cgi-bin
drwxr-s---  2 admin shared 4096 Jan 10 11:09 files
drwxr-s---  2 admin shared 4096 Jan 10 11:09 html


So how do I fix this?  How do I set the s special permission for the group?  I get the first part

cd /home/e-smith/files/ibays/Primary
chown admin:shared -R *

But I don't know how to chmod and get an s to appear?

note: edited to fix formatting.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline jfarschman

  • *
  • 406
  • +0/-0
Strange Permissions in Primary Ibay - Kills FTP
« Reply #1 on: March 02, 2006, 04:23:06 PM »
Sorry,

  I got it on my own.  The complete fix is:

Code: [Select]

cd /home/e-smith/files/ibays/Primary
chown admin:shared -R *
chmod 2750 -R *


  Not sure what happened to cause this though.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Strange Permissions in Primary Ibay - Kills FTP
« Reply #2 on: March 02, 2006, 06:17:03 PM »
Quote from: "jfarschman"

So how do I fix this?


You report it via the Bug Tracker.

Offline kruhm

  • *
  • 680
  • +0/-0
Strange Permissions in Primary Ibay - Kills FTP
« Reply #3 on: March 04, 2006, 02:20:36 PM »
jfarschman -FYI -don't be suprised if it comes back. you should probably move to an sftp connection with winscp (public / private key) rather than just plain ftp. Not only is it more secure but it doesn't seem to suffer from this.

of course, you already know winscp

BTW -nice site.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Strange Permissions in Primary Ibay - Kills FTP
« Reply #4 on: March 04, 2006, 03:57:14 PM »
Quote from: "kruhm"
jfarschman -FYI -don't be suprised if it comes back. you should probably move to an sftp connection with winscp (public / private key) rather than just plain ftp. Not only is it more secure but it doesn't seem to suffer from this.


Why would it come back? And in particular, why would it come back from using ftp?  If logging in via ftp changes permissions then there is a serious problem to be fixed. Since you appear to have information about this issue, please follow up Jay's report in the bug tracker. Thanks.