Re: [Samba] group share directory

2013-09-16 Thread steve
On Mon, 2013-09-16 at 09:58 -0700, David Christensen wrote:
> On 09/16/13 02:10, steve wrote:
> > How about a big hammer? cron:
> > find /mnt/z/data -type f -exec chmod 777 {} \;
> > as often as you think users may mv or cp.
> > Try exec+ if they move a lot of files.
> 
> Thanks for the reply.  :-)
> 
> 
> I would also need to do directories.  Ignoring the group sticky bit, the 
> desired mode is the same.  So, I could lose the find and just "chmod -R 
> 0777".  But, what about symbolic links?  Or sockets, named pipes, block 
> or character specials, etc.?  Hmmm...  Perhaps I need to forget about 
> local access and settle for a Samba solution for regular files and 
> directories only -- e.g. configure Samba to provide the needed 
> functionality and then make Samba the only way into or out of GroupShare.
> 
> 
> David

Hi
It picks up directories too. It will be slow without the find. Just find
all the files without 777. If it doesn't find any, it won't do anything:
find / -type f ! -perm 777

For symlinks everyone here will tell you not to use smb.conf:
follow symlinks = Yes
wide links = Yes

sockets and pipes, don't know.
Cheers


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] group share directory

2013-09-16 Thread David Christensen

On 09/16/13 09:58, David Christensen wrote:

Perhaps I need to forget about local
access and settle for a Samba solution for regular files and directories
only -- e.g. configure Samba to provide the needed functionality and
then make Samba the only way into or out of GroupShare.


This seems to work:

# grep groupshare /etc/passwd
groupshare:x:999:999::/home/groupshare:/bin/false

# grep groupshare /etc/group
groupshare:x:999:

# ls -ld /mnt/z/groupshare/
drwxrwxrwx 3 groupshare groupshare 4096 Sep 16 12:24 /mnt/z/groupshare/

# grep -A 99 groupshare /etc/samba/smb.conf
[groupshare]
path = /mnt/z/groupshare
force user = groupshare
read only = No
create mask = 0777
force create mode = 0666
force security mode = 0666
directory mask = 0777
force directory mode = 0777
force directory security mode = 0777
force unknown acl user = Yes


HTH,

David
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] group share directory

2013-09-16 Thread David Christensen

On 09/16/13 02:10, steve wrote:

How about a big hammer? cron:
find /mnt/z/data -type f -exec chmod 777 {} \;
as often as you think users may mv or cp.
Try exec+ if they move a lot of files.


Thanks for the reply.  :-)


I would also need to do directories.  Ignoring the group sticky bit, the 
desired mode is the same.  So, I could lose the find and just "chmod -R 
0777".  But, what about symbolic links?  Or sockets, named pipes, block 
or character specials, etc.?  Hmmm...  Perhaps I need to forget about 
local access and settle for a Samba solution for regular files and 
directories only -- e.g. configure Samba to provide the needed 
functionality and then make Samba the only way into or out of GroupShare.



David
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] group share directory

2013-09-16 Thread steve
On Sun, 2013-09-15 at 13:57 -0700, David Christensen wrote:
>  but copying and moving 
> didn't.

How about a big hammer? cron:
find /mnt/z/data -type f -exec chmod 777 {} \;
as often as you think users may mv or cp.

Try exec+ if they move a lot of files.

HTH
Steve


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] group share directory

2013-09-15 Thread David Christensen

On 09/15/13 01:00, steve wrote:

You have set access via posix acls. Does the share have inherit acls =
Yes?


Thanks for the reply.  :-)


Here is the Samba configuration for the share:

# grep -A 9 data /etc/samba/smb.conf
[data]
path = /mnt/z/data
read only = No
create mask = 0777
directory mask = 0777
inherit acls = Yes


Going from memory, the Samba behavior was the same as local behavior -- 
creating files and directories via Samba worked, but copying and moving 
didn't.



David
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] group share directory

2013-09-15 Thread steve
On Sat, 2013-09-14 at 23:42 -0700, David Christensen wrote:
> samba:
> 
> I am attempting to set up a "group share" directory on Debian "Wheezy" 
> where any user can create or place files and directories, and every 
> other user has full access to those files and directories.  The 
> directory will be accessed both locally and via Samba.

You have set access via posix acls. Does the share have inherit acls =
Yes?


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba