LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-25-2012, 08:58 PM   #1
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 75

Rep: Reputation: Disabled
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

Last edited by skinney; 10-26-2012 at 10:05 AM.
 
Old 10-26-2012, 12:36 PM   #2
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 75

Original Poster
Rep: Reputation: Disabled
i unsolved my earlier thread on this subject

http://www.linuxquestions.org/questi...887/page2.html
 
Old 10-26-2012, 12:45 PM   #3
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 75

Original Poster
Rep: Reputation: Disabled
force group = samba
did it
got it from my post on ubuntu forum
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SAMBA - unix user created, added to samba, and valid users on share, still cannot... mitchell7man Linux - Server 12 03-17-2010 08:37 PM
samba share for domain users mukundmurari Linux - Newbie 0 01-18-2010 05:11 AM
Samba Share Working with Some Users and Not Others robh Linux - Server 3 05-12-2009 04:42 AM
Samba users/share setup johncarr05 Linux - Software 2 02-01-2006 04:17 PM
Samba users/share setup johncarr05 Linux - Software 1 02-01-2006 03:50 PM


All times are GMT -5. The time now is 04:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration