LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba share for two users (https://www.linuxquestions.org/questions/linux-networking-3/samba-share-for-two-users-4175434117/)

skinney 10-25-2012 08:58 PM

Samba share for two users
 
you were right croog,they cant access the other's files

ubuntu server with samba and a couple win 7 machines
i want two user to have access to their respective home dir's
done
i also want those two to have access to a shared dir
kind of done. when user1 puts a file in the shared dir
user1 is owner and group so user2 can't access it modify it
i've created a samba group, gave it ownership of this dir and added these users to the group but didn't help

#ls -l
-rw-rw---- 1 user2 user2 122368 Sep 18 19:12 doc33.doc
-rw-rw---- 1 user1 user1 238264 Aug 21 09:25 doc1.pdf

my conf

[share]
comment = Ubuntu File Server Share
path = /share
valid users = @samba
read only = No
create mask = 0660
directory mask = 0770

i guess what i need is to somehow give the group "samba" ownership of any files moved into this shared dir
so it'll look like this...
#ls -l
-rw-rw---- 1 user2 samba 122368 Sep 18 19:12 doc33.doc
-rw-rw---- 1 user1 samba 238264 Aug 21 09:25 doc1.pdf

or there must be another way (i'd rather not change to 'security = share')

update: i set it up like this...
[sales]
path = /home/sales
comment = Sedona Real Estate Sales Data
writable = yes
valid users = sofie shelby adilia
admin users = mike
per this ...
http://www.samba.org/samba/docs/using_samba/ch09.html
doesn't work

skinney 10-26-2012 12:36 PM

i unsolved my earlier thread on this subject

http://www.linuxquestions.org/questi...887/page2.html

skinney 10-26-2012 12:45 PM

force group = samba
did it
got it from my post on ubuntu forum


All times are GMT -5. The time now is 05:38 AM.