That should do it, as it will force connections to authenticate as justin/family.

Alternate way would be to use smbpasswd like Derek mentioned.

--
Shawn D. Wells
Solutions Architect, Federal Team
[EMAIL PROTECTED]
Cell: 443-534-0130
Office: 703-748-2250



Justin Walker wrote:
Ah, yes,  I guess that's what the following lines mean:

force user = nobody
force group = nogroup

If I change those to

force user = justin
force group = family

Should it work?  Or is that a bad idea for some reason?

- Justin

Shawn Wells wrote:
I haven't played with SAMBA for awhile now. However (if I remember correctly) windows machines will connect as "nobody/nogroup" or the like, causing them only to be granted your world permissions.

There are certain ways to pass the authentication/username through, but you'd have to google that. If you chmod to 777 I'd imagine the issue resolves itself, or you can look into doing something with winbind or the like.

Personally I'd scrap samba and just use NFS

echo "/your/file/path   [your_network](rw)" >> /etc/exports
service nfs start
service portmap start

Done.


Justin Walker wrote:
No, the permissions are set in the directories themselves - as I mentioned it works fine if you come in via SSH (If I log in via her U/N I can rename/move/delete files no problem). The problem seems to be specifically with Samba's handling of permissions.

- Justin

Jamie Salts wrote:
Are you trying to apply the permssions on the symlinks themselves? Double check to see that you're applying the permissions you want to the original files/folders.

Hope that helps.. though it sounds like you know more about this topic than I.

On Fri, Feb 15, 2008 at 10:56 AM, Justin Walker <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    This is probably extremely simple; I'm just not getting it.

        I have a linux fileserver at home, and I've set up my home
    directory as a samba share so my wife can get at my music and
    pictures that I keep there, and mapped it as a drive letter on her
    machine.  I've symlinked a few other folders into my home
    directory (other family member's home directories, etc) so that
    she can get to them all in one place – as far as she's concerned
    it's just 'J:/bobs_stuff' even though it's really more complicated
    than that.

        She can browse those folders fine, but does not have write
    privileges.  I've got all the folders set to 775 – and all of the
    users are in the 'family' group, so it should work (it works via
    SSH).  She has write access in my home directory – the 'root' as
    it shows up on her end.  I have writable = on and createmask = 777
    in smb.conf, so I don't know why it's not being passed to the
    linked directories.

        Any suggestions on how I can get it to work?

        - Justin



Reply via email to