Hello I'd like to configure Samba on a test host running Ubuntu so that I have full read/write access from XP to a sub-directory of the root filesystem. The host is located on a LAN behind a firewall, so security is not an issue, ie. I'd like to configure Samba with no/minimal security. Currently, I can read but can't write. Between /etc/passwd, smb.conf, and access rights to the actual directory, I'm a bit confused about how to configure things. Here are the files: ================= /etc/passwd ... nobody:x:65534:65534:nobody:/nonexistent:/bin/sh ================= /etc/samba/smb.conf [global] workgroup = WORKGROUP netbios name = LINUX server string = Samba Server %v security = user guest account = nobody ; logs in /var/log/samba/ log level = 3 [share] comment = Ubuntu File Server Share path = /usr/src browsable = yes ;access will be permitted as the default guest user guest ok = yes read only = no create mask = 0755 available = yes public = yes writable = yes ================= ls -al /usr/ drwxr-xr-x 24 1003 users 4096 2011-05-06 13:10 src/ ================ Thank you.
TAKAHASHI Motonobu
2011-May-10 15:33 UTC
[Samba] [3.4.7] Right way to provide full access?
From: Gilles <gilles.ganault at free.fr> Date: Tue, 10 May 2011 17:16:26 +0200> I'd like to configure Samba on a test host running Ubuntu so that I > have full read/write access from XP to a sub-directory of the root > filesystem.(snip)> ================= /etc/samba/smb.conf > [global] > workgroup = WORKGROUP > netbios name = LINUX > server string = Samba Server %v > security = user > guest account = nobody > ; logs in /var/log/samba/ > log level = 3 > > [share](snip) set "map to guest = Bad User" in [global] section. For detail or other values, look at smb.conf(5) or other documents. --- TAKAHASHI Motonobu <monyo at monyo.com>
On Wed, 11 May 2011 00:33:39 +0900 (JST), TAKAHASHI Motonobu <monyo at monyo.com> wrote:>set "map to guest = Bad User" in [global] section. >For detail or other values, look at smb.conf(5) or other documents.Thanks but there are so many documents on the Net, a lot of them wrong/outdated, that I was hopping someone could point me to one that would show how to configure Samba/Linux for complete-access.
TAKAHASHI Motonobu
2011-May-10 16:22 UTC
[Samba] [3.4.7] Right way to provide full access?
From: Gilles <gilles.ganault at free.fr> Date: Tue, 10 May 2011 17:40:54 +0200> On Wed, 11 May 2011 00:33:39 +0900 (JST), TAKAHASHI Motonobu > <monyo at monyo.com> wrote: > >set "map to guest = Bad User" in [global] section. > >For detail or other values, look at smb.conf(5) or other documents. > > Thanks but there are so many documents on the Net, a lot of them > wrong/outdated, that I was hopping someone could point me to one that > would show how to configure Samba/Linux for complete-access.How do you understand "a lot of them wrong/outdated"? For example, below config may be essentially what you want: --- [global] map to guest = bad user [share] path = /some/where writeable = yes guest ok = yes --- But I strongly recommend that you understand what you are doing. --- TAKAHASHI Motonobu <monyo at monyo.com>
On Wed, 11 May 2011 01:22:49 +0900 (JST), TAKAHASHI Motonobu <monyo at monyo.com> wrote:>For example, below config may be essentially what you want: > >--- >[global] > map to guest = bad user > >[share] > path = /some/where > writeable = yes > guest ok = yes >---Thank you.