do u mean sticky bit or suid ? that does not work. i looking for a way to let 
samba do the chmod. something with force user. i currently use force user = %U 
but that wont work because with that option the user who connects to the share 
will get the permission.

----- Original Message ----
From: M Azer <[EMAIL PROTECTED]>
To: Sascha <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Tuesday, January 23, 2007 3:36:48 PM
Subject: Re: [Samba] access users homes share

I hope this is what you are looking for. basically you need to set the sticky 
bit for the owner - I assume that the user1 home folder is owned by user1.
chmod u+s "user1 home folder"
this way any file/folder gets created will be owed by user1.

http://www.zzee.com/solutions/chmod-help.shtml

On 1/23/07, Sascha <
[EMAIL PROTECTED]> wrote:now theres another problem: when i access a share and 
create a file the user will be forced to %U and not to the user who owns the 
homes share. when i set force user =%S then everyone can connect to the share.

is there a chance that when i give user1 the rights to connect to user2 homes 
share (via setfacl) and user1 creates a file that this file will be chown to 
user2. i dont want to create a special share or groups because when i do it 
that way i would have 50 extra shares in my 
smb.conf.

thanks for your help again and best regards

----- Original Message ----
From: Sascha <[EMAIL PROTECTED]>
To: 
[email protected]
Sent: Tuesday, January 23, 2007 12:39:20 PM
Subject: Re: [Samba] access users homes share

thanks for your help. i just did a setfacl on the users home directory and i 
could access it. really nice :)


thanks again for the help

best regards

----- Original Message ----
From: MaurĂ­cio Szabo <[EMAIL PROTECTED]>
To: Sascha <
[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2007 12:27:32 PM
Subject: Re: [Samba] access users homes share

You can add user1 to a group that user2 is currently in, and set permissions of 
the user2 home share to be "group-readable".


For example, user2 is a member of the group "foo", so you can add user1 to 
"foo" group, add user2's home share to "foo" group, and finally do a chmod 
g+wxr to user2's home folder.



On 1/23/07, Sascha <[EMAIL PROTECTED]> wrote:
hey list,

we are currently migrating our users from novell to samba. now we have one 
problem: in novell we could give 
e.g. user1 access to users2 home share so he could modify, delete or add files 
on this share. in samba we defined a global homes share that is mapped on 
logon. so how can we give user1 the needed rights?

here is the definition of the homes share in 
smb.conf:

[homes]
        comment = user share
        browseable = no
        writeable = yes
        write list = %U
        create mask = 0600
        directory mask = 0700

        force user = %U

        force group = Administrators
        oplocks = true

do we need to add a special share and group?

thanks for help and best regards









____________________________________________________________________________________

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

--
To unsubscribe from this list go to the following URL and read the

instructions:  https://lists.samba.org/mailman/listinfo/samba





Air conditioners and Computers are the same - they both crash when you open 
Windows.








____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.

http://tools.search.yahoo.com/shortcuts/#news
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba







____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.

http://autos.yahoo.com/green_center/
--
To unsubscribe from this list go to the following URL and read the
instructions:  
https://lists.samba.org/mailman/listinfo/samba




-- 
"Unless you try to do something beyond what you have already mastered, you will 
never grow." Ronald E. Osborn






 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to