[Samba] Re: access users homes share

Sascha tdy_shadow at yahoo.com
Wed Jan 24 15:42:42 GMT 2007


yes, thats what ive tried. but if user2 creates a file in user1 home directory, user2 gets all permission and user1 cant modified or delete the file because of the force user option.

[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


best regards

----- Original Message ----
From: Jay Flory <jflory at aeiconsultants.com>
To: Sascha <tdy_shadow at yahoo.com>
Sent: Wednesday, January 24, 2007 3:56:51 PM
Subject: Re: access users homes share

Sascha

Have you considered using defaults in your ACL list for the directories.
For example the following two commands will ensure that user1 and user2 will
have complete rights to all files created in the directory:

setfacl -d -m u:user2:rwx directoryname
setfacl -d -m u:user1:rwx directoryname

You may wish to use the recursive (-r) option with the above if you wish the
subdirectories to have the same defaults.  And lastly you may need to add
the following for the mask:

setfacl -d -m m::rwx directoryname

Thanks
Jay

----- Original Message ----- 
From: "Sascha" <tdy_shadow at yahoo.com>
Newsgroups: gmane.network.samba.general
Sent: Tuesday, January 23, 2007 5:28 AM
Subject: Re: access users homes share


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 <tdy_shadow at yahoo.com>
To: samba at lists.samba.org
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 <mauricio.szabo at gmail.com>
To: Sascha <tdy_shadow at yahoo.com>
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 <tdy_shadow at yahoo.com> 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






 
____________________________________________________________________________________
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


More information about the samba mailing list