ex3 share write problem with samba

ex3 share write problem with samba

Post by 7 » Tue, 24 Aug 2004 02:36:07



Hi

Somewhat a newbie here

I have knoppix installed on hard disk
and have it working sharing out / in a simpleton's
way so that I can access everything in my private network.

I can read/write to vfat drive.
I can read my ext3 drive but not write to it.
(Simultaneously, I also run up ssh and fish and can access the ext3 and
read/write using fish.)

So this sounds like some kind of configuration problem inside samba
or something related to it.
No mention of ext3 file system in smb.conf as the / is shared out.

I've tried googling, and followed advise of creating users
and so on, but nothing obvious seem to be working.

Any ideas how I can also write to ext3 partition?

My smb.conf file (simplified) is below:

[global]
# Do something sensible when Samba crashes: mail the admin a backtrace
???panic?action?=?/usr/share/samba/panic-action?%d
???printing?=?cups
???printcap?name?=?cups
???load?printers?=?yes
???guest?account?=?nobody
???invalid?users?=?root
# tried security = share and security = user -> no difference
???security?=?share
???workgroup?=?WORKGROUP
???server?string?=?%h?server?(Samba?%v)

[homes]
???comment?=?Home?Directories
???browseable?=?no
???read?only?=?yes
???create?mask?=?0700
???directory?mask?=?0700

[print$]
???comment?=?Printer?Drivers
???path?=?/var/lib/samba/printers
???browseable?=?yes
???guest?ok?=?no
???read?only?=?yes
???write?list?=?knoppix

[printers]
???printer?admin?=?knoppix
???comment?=?All?Printers
???browseable?=?no
???path?=?/tmp
???printable?=?yes
???public?=?no
???writable?=?no
???create?mode?=?0700

[root]
path = /
public = yes
writable = yes

 
 
 

ex3 share write problem with samba

Post by Abdullah Ramazanog » Tue, 24 Aug 2004 03:46:46



Quote:> Hi

> Somewhat a newbie here

> I have knoppix installed on hard disk
> and have it working sharing out / in a simpleton's
> way so that I can access everything in my private network.

> I can read/write to vfat drive.
> I can read my ext3 drive but not write to it.
> (Simultaneously, I also run up ssh and fish and can access the ext3 and
> read/write using fish.)

> So this sounds like some kind of configuration problem inside samba
> or something related to it.
> No mention of ext3 file system in smb.conf as the / is shared out.

 --8<--

As samba accesses the shares on behalf of a userid associated with the
connection, I suspect the userid (used by samba) for your connection was
not root, in spite of the fact that you explicitly requested so with
"invalid users=root". There would be other parameters to somewhat
similar effect (IIRC "bad user" or "bad passwd" and several others). When
the association is not obvious, samba takes great pains in determining
which local userid should be associated with the connection request. And
to reflect this behavior, there are several parameters affecting this
process.

Also, samba could have been picky when it is asked to associate a
connection with the root user. It might be rejecting that unconditionally,
or accepting only when explicitly instructed so with another parameter
(like the "no_root_squash" parameter in nfs). Though I never tried root
access with samba so I'm not very sure.

Also changing "read only=yes" to "writable=yes" in [homes] could partially
alleviate the problem. Not an unlimited r/w access as you want, but at
least it would allow r/w access to home directories by legitimate users.

 --8<--

HTH
--

Ramazanoglu     | myrealbox |
________________| D.0.T c?m |

 
 
 

ex3 share write problem with samba

Post by 7 » Tue, 24 Aug 2004 05:21:56




>> Hi

>> Somewhat a newbie here

>> I have knoppix installed on hard disk
>> and have it working sharing out / in a simpleton's
>> way so that I can access everything in my private network.

>> I can read/write to vfat drive.
>> I can read my ext3 drive but not write to it.
>> (Simultaneously, I also run up ssh and fish and can access the ext3 and
>> read/write using fish.)

>> So this sounds like some kind of configuration problem inside samba
>> or something related to it.
>> No mention of ext3 file system in smb.conf as the / is shared out.
>  --8<--

> As samba accesses the shares on behalf of a userid associated with the
> connection, I suspect the userid (used by samba) for your connection was
> not root, in spite of the fact that you explicitly requested so with
> "invalid users=root". There would be other parameters to somewhat
> similar effect (IIRC "bad user" or "bad passwd" and several others). When
> the association is not obvious, samba takes great pains in determining
> which local userid should be associated with the connection request. And
> to reflect this behavior, there are several parameters affecting this
> process.

> Also, samba could have been picky when it is asked to associate a
> connection with the root user. It might be rejecting that unconditionally,
> or accepting only when explicitly instructed so with another parameter
> (like the "no_root_squash" parameter in nfs). Though I never tried root
> access with samba so I'm not very sure.

> Also changing "read only=yes" to "writable=yes" in [homes] could partially
> alleviate the problem. Not an unlimited r/w access as you want, but at
> least it would allow r/w access to home directories by legitimate users.

>  --8<--

> HTH

Thanks for your help - it got me thinking and finally the problem was
solved...

First looked in /var/logs/samba/nmbd.log and smbd.log
From there I can see 'nobody' was logging in and trying to
get access to the share.
Googled around for a bit on 'nobody' and found this link
http://www.winnetmag.com/Windows/Articles/ArticleID/20053/pg/3/3.html

Then I went to my machine and did
chown -R nobody /mnt/hda2
and voila! I can write to hda2 (which is an ext3 partition)
So it was something to do with connection through a user named nobody
and ownership of ext3 files and directories. Naturally
vfat doesn't have ownership thus that was why I was
writing to that OK while ext3 was not. Now everything is fine.

phew!

Thanks

 
 
 

1. Problems writing to Samba share, please help

I can see my share from a Win 2k box just fine but when I go to save any
file, in this case test.txt to the share I get the following error appearing
on my Win 2k client:

e:\text.txt
you do not have permission to open this file
see owner of this file or an administrator to obtain permission.

How can I fix this problem? I'm using Red Hat 7.2 and the latest version of
Webmin.

Thank You Very Much!

2. kernel patch for Cyrix

3. Problems writing to samba share

4. Mac G4 466 and Suse 7.1 ??

5. Problem writing to Samba share, please help

6. Making a function return when an action occurs

7. Samba problems : can't read the shared dir, no shared printer

8. Video Capture

9. SAMBA - No write access to shares!

10. Samba shares and Windows clients - cannot write to it when data size exceeds about 2 gig

11. Can't get write access to samba shares...

12. samba vfat share writing permissions

13. can't write to windows shares- Samba