Re: [Hampshire] Samba permission problem - this time correct…

Top Page

Reply to this message
Author: Tim
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Samba permission problem - this time corrected
On Saturday 28 February 2009 14:05:19 Keith Edmunds wrote:
> Tim, you have a whole load of things in the global section that I would
> leave out (including the msdfs line).
>
> Your original problem was "...when they save to the samba share the file
> permissions comes up as nobody & nogroup". You do have "guest ok = yes"
> and you also have "map to guest = Bad User", so I suspect that for some
> reason your users' authentication is failing and thus files are being
> created nobody:nogroup.
>
> Were it me, I'd stop Samba, save your existing smb.conf and replace it
> with this:
>
> ---------------------------------------------------------------------------
>----- [global]
> workgroup = HOME
> passdb backend = tdbsam
> wins support = Yes
> read only = no
> guest ok = no
>
> [Pictures]
> path = /mnt/sda1/Pictures
> ---------------------------------------------------------------------------
>-----
>
> Start Samba, try that, make sure users are being authenticated correctly,
> and see what ownership files have when created. If the authentication
> fails, you need to fix that. If the files are created with the expected
> owner and group, you can add parts of your original smb.conf back in and
> test until you find the failing line; however, as I said above, I suspect
> a user authentication problem.
>
> For the record (and it may not be important in your environment), setting
> a Samba share directory to 0777 isn't very secure, and your method of
> sharing may cause a problem if userA wants to modify files created by
> userB as they may find the permissions don't allow that - but this isn't a
> problem you have right now, so let's fix your problem first.
>
> hth,
> Keith
>
> --
> Keith Edmunds



Hi Keith

I have made a new smb.conf as you suggested (stopping and restarting samba),
when I try to view the shares available on my windows box it ask for a user
name and password, I enter the same username as I am using to logon to my Linux
box and I get Titan (my Linux box) is not accessible.

I am not sure what I need to change to fix that problem??

Tim