You are not logged in.

#1 2005-11-04 17:36:58

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Configuring samba with reiserfs

Ok, I've had massive issues trying to get this to work, so any help would be much appreciated.

I'm trying to share 2 reiserfs HDDs using samba; the problem is, although I can make them visible and readable, I can't make them writable.

I've added a new test user called 'matt', he's now a member of groups users, as well as audio and video (I added matt to those two groups as a last-ditch attempt to get it working). The permissions for the folder 'incoming' which I want to be writable are rwxrw-rw- (=0766), and in smb.conf I have the following:

   workgroup = davesdomain 

   server string = anime collection - only the best

   security = user

   username map = /etc/samba/smbusers

   load printers = yes

   log file = /root/.samba/log.%m

   max log size = 50

   socket options = TCP_NODELAY 

   dns proxy = no 

[storage]
read only = yes
writable = no
public = yes
browseable = yes
path = /mnt/storage/shared
valid users = matt

[warehouse]
read only = yes
writable = no
public = yes
browseable = yes
path = /mnt/warehouse/shared
valid users = matt

[incoming]
read only = no
public = yes
path = /mnt/warehouse/incoming
writable = yes
browseable = yes
valid users = matt

matt's /etc/group and /etc/passwd entries (respectively):

disk:!:6:root,matt
audio:!:92:dave,matt
optical:!:93:dave,matt
users:!:100:matt
video:x:91:dave,matt
shares:x:101:root,matt
samba:x:1000:matt // this is just a group I wass trying out, I made it myself

matt:x:1001:100::/home/matt:/bin/bash


Permissions for incoming:

drwxrw-rw-  2 root root 48 2005-11-04 17:41 incoming

My /etc/fstab entry:

/dev/sda1  /mnt/warehouse            reiserfs  users,auto,noexec,rw  0      1

Note - I can't use umask, uid or gid settings in fstab, since reiserfs doesn't allow it...

Any thoughts would be more than welcome; this one is doing my head in. :cry:


.oO Komodo Dave Oo.

Offline

#2 2005-11-04 17:48:29

stavrosg
Member
From: Rhodes, Greece
Registered: 2005-05-01
Posts: 330
Website

Re: Configuring samba with reiserfs

Well, it is really not reiserfs's problem here, but samba not knowing that matt can write there.
You can either set

security = share

in [global] and set a write passwd for [incoming] or leave your smb.conf as it is now and issue the following command as root:

# smbpasswd -a matt

(or just smbpasswd -a as matt)
and supply the password that matt needs to supply when mounting [incoming] to be able to write to it.

Offline

#3 2005-11-04 17:55:00

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Configuring samba with reiserfs

sorry, i forgot to say I'd done smbpasswd -a matt and entered a password for him; it made no difference though, and I've done it again just now to check (I entered password 'monkey' and tried to log on with it, but couldn't write to incoming).


.oO Komodo Dave Oo.

Offline

#4 2005-11-04 18:04:19

stavrosg
Member
From: Rhodes, Greece
Registered: 2005-05-01
Posts: 330
Website

Re: Configuring samba with reiserfs

[wild guess]It's probably because matt doesn't have execute permissions there. [/wild guess]
Can you try giving matt +x in incoming?
(like chgrp shares incoming ; chmod 776 incoming )

Offline

#5 2005-11-05 01:00:14

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Configuring samba with reiserfs

I was being retarded; I had set the permissions for incoming as either rw or rx, but never rwx... D'OH.

What I don't get is, why do you also need to have execute permissions in a folder, just to create a file? Isn't that a bit lame, if every time you have write permissions you also need execute permissions to make it work?

I've never been 100% certain on permissions...


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB