image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old June 20th, 2002, 04:06 PM
Member
 
Join Date: Oct 2001
Location: Sweden
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Essage is on a distinguished road
FTP remote administration of Webcontent on OS X Server

I'd like to upload files to my website on a server running Mac OS X Server 10.1.5.

I want to use FTP. And the website root-directory is "/library/webserver/documents".

Is it possible to set up a user that has the webserver-directory as it's home-directory, and has only access to that, using the built-in ftp-server in os x? The ftpuser should not be able to connect to the server in any other way than ftp.

//Essage
Reply With Quote
  #2  
Old June 21st, 2002, 10:53 AM
buc99's Avatar
Don't Tread on Me!
 
Join Date: Aug 2001
Location: The US of A!
Posts: 386
Thanks: 0
Thanked 0 Times in 0 Posts
buc99 is on a distinguished road
Lightbulb i do not believe so, however ...

I don't think you can set up a User this way.

You could set up a User and then delete all of the directories except the web directory, Desktop, and Library.

I think the easiest solution may be to set up a User for web serving only. Put all of your web pages in that User's Sites folder. Then set up the folder access to whoever you want only for file sharing.
This should keep people out, and it would be seperate from the root folders. Also tunnel ftp through ssh to upload your web pages. (This just makes the upload more secure). You may also be able to do some things from a firewall standpoint and set up Apache to use a port other than 80 for web serving. The documentation for all of this is located in OSX.

Anyone else? I'm sur there are some folks here with more secure web serving ideas than this.

Thanks.
SA
__________________
I can do everyhting on my Mac I used to do on my PC, plus alot more.

--Me
Reply With Quote
  #3  
Old June 21st, 2002, 11:14 AM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
i believe testuser has written some nice scripts to create ftp-only users using the OSX built-in ftp server. look for his thread on ftp users, it should be what you need. if you need to modify it to suit your needs, i m sure he will be able to help.
Reply With Quote
  #4  
Old June 21st, 2002, 11:23 AM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
here is the thread with testusers script. the only problem with this setup as i see it, is you want an unprivileged user to edit these files, and by default that directory, and its files are all owned by root. i don t think it would be too bad to just change the permissions.

testuser will probably be here soon to lay it all out for you
Reply With Quote
  #5  
Old June 23rd, 2002, 12:13 PM
buc99's Avatar
Don't Tread on Me!
 
Join Date: Aug 2001
Location: The US of A!
Posts: 386
Thanks: 0
Thanked 0 Times in 0 Posts
buc99 is on a distinguished road
Question Will this work for webhosting?

Lethe-
Will this work for webhosting? This is actually what he wants. A user account that just has webhosting capabilities>

Umm i just noticed something. /Library/webserver/documents is the root webserver folder, however, you do not want to serve your pages from here. You need to serve your pages from you Users' Sites folder. This is secure because it is not on your root directory and when you access it from ftp you will be using your User password and not your Root password. So make a user for webserving only. This way it is not an Administrative account. and serve your pages from here. You can then set up your ftp permissions to only allow access to this area of the system.

Good Luck.
SA
__________________
I can do everyhting on my Mac I used to do on my PC, plus alot more.

--Me
Reply With Quote
  #6  
Old June 24th, 2002, 05:41 AM
Member
 
Join Date: Oct 2001
Location: Sweden
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Essage is on a distinguished road
One thing that doesn't work:
When I log in via ftp, I only get the directories "Public" and "Users". I'm not in "/Library/WebServer/Documents" where I want to be.

If I log in at the computer with the ftptoweb-user, the "home-button" takes me to "/Library/WebServer/Documents", but via ftp I'm not in my home-directory when logging in.

Everything else seems to work just fine.

/Essage
Reply With Quote
  #7  
Old June 24th, 2002, 12:49 PM
Member
 
Join Date: Oct 2001
Location: Sweden
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Essage is on a distinguished road
It seems like I, for some reason, created a new Document-folder with the user admin. So the owner was root and group was admin.
I re-created the documents folder with root, so root is now the owner and admin is the group.

[localhost:~] admin% l -d /Library/WebServer/Documents:
drwxr-xr-x 15 root admin 466 Jun 24 18:44 /Library/WebServer/Documents

shouldn't it be drwxrwxr-x ?

Or has it not have anything to do with the permissions?

/Essage
Reply With Quote
  #8  
Old June 24th, 2002, 02:54 PM
Member
 
Join Date: Oct 2001
Location: Sweden
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Essage is on a distinguished road
That didn't help

I've never used NetInfo before. I don't know what I should be looking for. But I think the set up is correct. The homedirectory is the right one (/Library/WebServer/Documents).

While browsing around in NetInfo I notised the similarity with:"/ config SharePoints" and the directory I start up in when connecting via ftp. It seems like it is that directory I'm landing in when connecting via.

Documents, is a directory, and it resides on the startup disk.

Probably would a reinstall do it for me, but IŽd rather not, after all configuration and installed software.

/Essage
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
slow ftp server BobWestfield Unix & X11 5 October 30th, 2008 06:56 AM
my ftp server disconnects when trying to do an ls -R Fahrvergnuugen Unix & X11 3 September 16th, 2002 05:45 AM
mounting an ftp server as a local hd under osx lightwarrior Mac OS X System & Mac Software 1 May 1st, 2002 07:06 AM
need howto ftp server in os x server vic Mac OS X System & Mac Software 3 April 6th, 2002 01:36 PM
best FTP client? HyperLiteG4 Mac OS X System & Mac Software 16 June 26th, 2001 08:00 PM


All times are GMT -5. The time now is 06:04 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.