Necromantis
June 4th, 2008, 02:33 PM
Hello all,
Sorry for the long post but I figure the more info I post the easier it would be to get some help.
I am trying to share some folders with SAMBA and of course it's not happening the way I would have hoped.
I have 3 USB drives
mount on /usb1 /usb2 /usb3 (I keep it simple)
/usb1/Movies with /usb2/Movies with /usb3/Movies are merged together with unionfs under /mergeusb (works great)
usb3 has 3 users folders:
/usb3/user1
/usb3/user2
/usb3/user3
Ok that been the setup I want user1 to have rw on /usb1 /usb2 /usb3 and /usb3/user1 then read on /mergeusb (it would have rw by default through the /usb1-3 access anyway)
user2 should have read on /mergeusb and rw on /usb3/user2
user3 should have read on /mergeusb and rw on /usb3/user3
ok.. to do this I create 3 accounts: user1 user2 user3 under linux with the "sudo adduser"
Then I used "sudo smbpasswd -a user1" to create the user + password and then "sudo smbpasswd -e user1" to activate the account.
I did that for the 2 other accounts too.
/etc/samba/smb.conf
in there I put:
[global]
workgroup=msnhome
netbios name=Saturn
encrypted password=yes
security=user
guest account=nobody
invalid users=root
[Movies]
path=/mergeusb
browseable=yes
read list=user1 , user2 , user3
[usb1]
path=/usb1
browseable=yes
write list=user1
[usb2]
path=/usb2
browseable=yes
write list=user1
[usb3]
path=/usb3
browseable=yes
write list=user1
---
ok I didn't create the /usb3/user* shares yet because the above isn't working as it should.
Basically the user has to enter a username and password to gain access. However user2 and 3 can browse the /usb1 /usb2 /usb3 which of course I didn't want them to have access to. the section doesn't have there names in it I don't see how or where they got the access to list the folders??
So what did I miss? :confused:
Sorry for the long post but I figure the more info I post the easier it would be to get some help.
I am trying to share some folders with SAMBA and of course it's not happening the way I would have hoped.
I have 3 USB drives
mount on /usb1 /usb2 /usb3 (I keep it simple)
/usb1/Movies with /usb2/Movies with /usb3/Movies are merged together with unionfs under /mergeusb (works great)
usb3 has 3 users folders:
/usb3/user1
/usb3/user2
/usb3/user3
Ok that been the setup I want user1 to have rw on /usb1 /usb2 /usb3 and /usb3/user1 then read on /mergeusb (it would have rw by default through the /usb1-3 access anyway)
user2 should have read on /mergeusb and rw on /usb3/user2
user3 should have read on /mergeusb and rw on /usb3/user3
ok.. to do this I create 3 accounts: user1 user2 user3 under linux with the "sudo adduser"
Then I used "sudo smbpasswd -a user1" to create the user + password and then "sudo smbpasswd -e user1" to activate the account.
I did that for the 2 other accounts too.
/etc/samba/smb.conf
in there I put:
[global]
workgroup=msnhome
netbios name=Saturn
encrypted password=yes
security=user
guest account=nobody
invalid users=root
[Movies]
path=/mergeusb
browseable=yes
read list=user1 , user2 , user3
[usb1]
path=/usb1
browseable=yes
write list=user1
[usb2]
path=/usb2
browseable=yes
write list=user1
[usb3]
path=/usb3
browseable=yes
write list=user1
---
ok I didn't create the /usb3/user* shares yet because the above isn't working as it should.
Basically the user has to enter a username and password to gain access. However user2 and 3 can browse the /usb1 /usb2 /usb3 which of course I didn't want them to have access to. the section doesn't have there names in it I don't see how or where they got the access to list the folders??
So what did I miss? :confused: