Koozali.org: home of the SME Server

how to add several users to a single ftp folder/ibay

Offline cirkit

  • ****
  • 73
  • +0/-0
how to add several users to a single ftp folder/ibay
« on: July 15, 2008, 05:05:42 AM »
I have created two users viz user1 & user2. I want both of them to access the same ftp folder. Hence i installed "user remote access" in server manager and changed the chroot of user2 to the path of user1. Now user2 is able to login inside the ftp folder with his username and pass, user2 can view all files, download all files, but can't upload (write to the folder). User1 can do all, what do i do so user2 can also write to this folder using a simple ftp client.
In other words how can several users be given access to a single ftp folder while changing their read/write permissions
i have already created a group viz group1 and added user1 & user2 to it and have set permission in ibay1 to write=group and read=everyone, what else do i need to do to acomplish my task

Offline gippsweb

  • *****
  • 232
  • +0/-0
    • Wots I.T.?
Re: how to add several users to a single ftp folder/ibay
« Reply #1 on: July 15, 2008, 10:09:51 AM »
Would you not just need to create a user group, add the two users to the group and give the group access to the ibay?

Offline cirkit

  • ****
  • 73
  • +0/-0
Re: how to add several users to a single ftp folder/ibay
« Reply #2 on: July 15, 2008, 10:23:33 AM »
I have done so as mentioned above. But in SME server the moment you create a new user under any group and log in using ftp, then you land in the new users home directory, by user remote access you can change the login directory of the new user but you cannot write to the new directory hence i believe that some permissions need to be cahnged after which the new user will be able to write in the new landed directory

Offline gippsweb

  • *****
  • 232
  • +0/-0
    • Wots I.T.?
Re: how to add several users to a single ftp folder/ibay
« Reply #3 on: July 15, 2008, 10:40:55 AM »
that would then depaend on the permissions given to the ibay. If you need group 'A' to have write permissions then that is what you'd need to show in the ibays permissions.
ie User access via file sharing or user ftp ::  Write = Group, Read = Everyone and group to to group 'A' would only allow Group 'A' to write to the ibay, but everyone to read it.

I can't remember where I read it but we always setup the following groups as standard;
Domain Admins
Domain Users
Domain Guests
that seems to match up with std windows user groups and makes domain config a lot easier.

EDIT:
Went to check how I'd been setting permissions and noticed since the last update my ibay folder has dropped to the bottom under "unknown". Guess I'll have to look into that when I get some spare time.
« Last Edit: July 15, 2008, 10:44:56 AM by gippsweb »

Offline cirkit

  • ****
  • 73
  • +0/-0
Re: how to add several users to a single ftp folder/ibay
« Reply #4 on: July 15, 2008, 11:16:00 AM »
I am trying something different
say i have a group = stars
user1= jack
user2-smith
user3=bill
user4=henry

all three users belong to same group
now i create an ibay=galaxy
so by default only admin is able to access /home/e-smith/files/ibays/galaxy
then by using contrib "user remote access" i chage the chroot of jack from
/home/e-smith/files/users/jack to /home/e-smith/files/ibays/galaxy and jack is able to raed write to the ibay
similarly changes if done on smth and bill also can write to the ibay... that works fine


the problem ... or you may call it requirement
i want smith's default folder to be /home/e-smith/files/users/smith..... that's o.k. as this his his home folder

now i want bill's login path to chage to /home/e-smith/files/users/smith in place of  /home/e-smith/files/users/bill i.e. bill is now bill is logging in smith's folder ( as i have changes his chroot).
but bill is not able to write to smith's folder. he is only able to see the contents. what do i do to allow bill to write to smith's folder?

i also want heny to access smith's folder but he should not have permissions to write he can only read and download.

its like having a common public folder "smith"
and then granting other users= bill & henry different permissions.
please help


Offline gippsweb

  • *****
  • 232
  • +0/-0
    • Wots I.T.?
Re: how to add several users to a single ftp folder/ibay
« Reply #5 on: July 15, 2008, 11:38:04 AM »
I haven't done anything like that.
I would have changed the login.bat script to accomodate changes in that way.

Offline cirkit

  • ****
  • 73
  • +0/-0
Re: how to add several users to a single ftp folder/ibay
« Reply #6 on: July 15, 2008, 12:14:03 PM »
can you help me to create/edit the login script

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: how to add several users to a single ftp folder/ibay
« Reply #7 on: July 15, 2008, 02:36:57 PM »
Quote
Went to check how I'd been setting permissions and noticed since the last update my ibay folder has dropped to the bottom under "unknown". Guess I'll have to look into that when I get some spare time.

Here are the places to "Look into it"

http://forums.contribs.org/index.php?topic=40789.0

http://forums.contribs.org/index.php?topic=41428.msg193142#msg193142