Koozali.org: home of the SME Server

Different permissions for ibay subfolders

Offline tanzul

  • *
  • 5
  • +0/-0
Different permissions for ibay subfolders
« on: March 11, 2007, 01:35:06 PM »
Hi!
First i'll have to say "Thank you all!" for SME-Server in general. It was nearly exactly what i was searching for and at the moment i'm trying lots of things but i'm stuck with one situation. As example:
First, i have two users: John and Jane. I have one ibay and in this ibay two foldes. In one of these foldes, both should have read + write privileges (which works as expected) but in the other folder John should be able to r+w and Jane should only be able to read.
I tried to set permissions from the client-pc (win xp) but allways get a message "access denied" if i try to change anything concerning access rights.
I should also add, that i'm a linux newbie.
Thanks in advance for you help!

Offline jonic

  • *
  • 103
  • +1/-0
Different permissions for ibay subfolders
« Reply #1 on: March 11, 2007, 05:26:44 PM »
Use server-manager to add a new group and make John a member of it (but not Jane).
Then change the group of the ibay in question to the new group, that John is a member of.
Then set User access via file sharing or user ftp to:  "Write = Group, Read = Everyone".

That's all there is to it.

Offline tanzul

  • *
  • 5
  • +0/-0
Different permissions for ibay subfolders
« Reply #2 on: March 11, 2007, 06:20:46 PM »
Thanks for your answer but i think I did't described the problem precisly enough.
The problem I have is, that I need different access-rules inside one single ibay.
For example there are users A, B, C and D.
Folder 1 = for all read and write.
Folder 2 = read for A, read+write for D
Folder 3 = read for A,B,C read+write for D
Folder 4 = read for all, writable for C
Any Idea how i could make this possible without creating lot's if ibays?
If under MS Server 2003 I could just right-click and set access-rights. But how can I handle this with SME (or Samba in general)?

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Different permissions for ibay subfolders
« Reply #3 on: March 11, 2007, 08:08:45 PM »
By ssh-ing into the SME box and using the chmod command (http://www.computerhope.com/unix/uchmod.htm).

Is this what you're looking for?
"It should just work" if it doesn't report it. Thanks!

Offline tanzul

  • *
  • 5
  • +0/-0
Different permissions for ibay subfolders
« Reply #4 on: March 11, 2007, 10:07:26 PM »
I googled a lot, tried different things out and it was ACL what I was looking for and it's working great! With these I can do exactly what I want. CHMOD was not "precise" enough because one can't change permissions for single users.
But thanks for your help! I'll be back soon, thats for sure ;-)

Offline daniel

  • ****
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
Different permissions for ibay subfolders
« Reply #5 on: March 13, 2007, 07:55:32 PM »
would you post a bit more detail on what you meant by ACL?  I do something similar but would like to compare notes to see if I'm doing it the best, most efficent way.  Thanks

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Different permissions for ibay subfolders
« Reply #6 on: March 13, 2007, 08:35:44 PM »
Quote from: "bpivk"
By ssh-ing into the SME box and using the chmod command (http://www.computerhope.com/unix/uchmod.htm).

Is this what you're looking for?
That will probably not work as ownerships and security rights will be reset on ibay events such as adding/removing new users/groups if I remember correctly from sniffing the source code.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Different permissions for ibay subfolders
« Reply #7 on: March 14, 2007, 09:40:41 AM »
Quote from: "tanzul"
I googled a lot, tried different things out and it was ACL what I was looking for and it's working great! With these I can do exactly what I want. CHMOD was not "precise" enough because one can't change permissions for single users.
But thanks for your help! I'll be back soon, thats for sure ;-)


Hi.. I'm interested too... can you please give me more details? :-)

I've done some test mounting a disk with "acl" directive in fstab and it's working fine..

TIA

Stefano

Offline tanzul

  • *
  • 5
  • +0/-0
Different permissions for ibay subfolders
« Reply #8 on: March 14, 2007, 02:46:14 PM »
Ok, here's what I did:

1. yum install acl
2. edit /etc/fstab [/dev/main/root 'change' usrquota,grpquota 'to' acl,usrquota,grpquota]
3. reboot
4. now you can use as example the command 'setfacl -m u:john:rw- importantdata' to give john read and write access to importantdata. as next step you can forbid jane to access the same file (or folder) by using 'setfacl -m u:jane:--- importantdata'.

I'm testing this a little bit more the next few days. If I'll experience any problems, I'll report them here.

Offline StuartTaylor

  • *
  • 18
  • +0/-0
Different permissions for ibay subfolders
« Reply #9 on: March 29, 2007, 12:26:01 AM »
can I ask which ACL package you used?

Offline Confucius

  • *****
  • 235
  • +0/-0
Different permissions for ibay subfolders
« Reply #10 on: March 29, 2007, 12:34:48 AM »
Quote from: "StuartTaylor"
can I ask which ACL package you used?


When you do : yum install acl

You would probably see the same as I see : 2.2.23-5

Offline StuartTaylor

  • *
  • 18
  • +0/-0
Different permissions for ibay subfolders
« Reply #11 on: April 01, 2007, 05:39:57 AM »
I more meant the developer then package version but I guess it doesn't really matter, If yum has an autoinstall for it ill just that one :)

Offline imcintyre

  • *
  • 609
  • +0/-0
Different permissions for ibay subfolders
« Reply #12 on: April 02, 2007, 06:23:04 AM »
I suppose by definition, this over rides how groups and ibays are matched up in the server-manager panel?
Does it create any conflicts?
What happens when you add another user? Can you still use the server-manager to set permissions and this device is for fine tuning?

I seem to recall another set of posts regarding recycle bins where thee were problems with the permissions for the folders that were created when recycle bins were enabled. Would this be useful to modify those permissions?

tia

Ian