[Samba] Samba and 2k/NT4 server -shares readable but not writable

John Little jlittle_97 at yahoo.com
Wed Feb 6 14:22:06 GMT 2002


Buchan,

An afterthough since my previous mail:  I am logged in
as john who has the uid of 501.  Yet I must still
specify the uid=501 when mounting the windows share to
be able to write to it.  

As I understand this, since I am the user that is
logged in when mounting the share that should be done
without having to specify it in the mount command.

Am I misreading this?  I'm losing it somewhere..

Thanks again,
John
--- Buchan Milne <bgmilne at cae.co.za> wrote:
> > Message: 15
> > Date: Wed, 6 Feb 2002 01:38:41 -0800 (PST)
> > From: John Little <jlittle_97 at yahoo.com>
> > Reply-To: jlittle at computercentral-1.com
> > To: samba at lists.samba.org
> > Subject: [Samba] Samba and 2k/NT4 server -shares
> readable but not writable
> > 
> > Hello everyone,
> > 
> > I have Samba 2.2.2-3.2mdk setup on a workstation
> that
> > accesses a w2k and NT4 server.
> > 
> > I can mount the 2k share ok to /mnt/disk, and I
> can
> > read the documents and files on it.  However I
> can't
> > write to it as a user-Access denied.  When logged
> in
> > as root or su everything works perfectly
> > 
> 
> 
> Who has mounted the /mnt/disk? If you mounted it as
> one user, then 
> unless you have used mount options (see man
> "smbmount", specifically 
> uid,gid,fmask,dmask), another user using the mount
> will not be able to 
> access the files. The local permissions on the
> mounted share are 
> dependant on mount-time options, not on the
> permissions on the server.
> 
> 
> > I have opened the permissions to allow guest and
> > everyone on both machines but the problem still
> > persists.
> > 
> 
> 
> Remember that the permissions applied on the windows
> side apply to the 
> user who has connected. Thus if you have mounted as
> root, but made the 
> mount world-writeable, then any user on the linux
> side will have the 
> permissions of root (on the windows side).
> 
> 
> > I tried creating a document in a home directory
> and
> > the copying it to /mnt/disk but got the same
> result.
> > 
> > I also stopped the bastille firewall and all other
> > such services.
> > 
> 
> 
> If you can successfully mount the share, firewalling
> is not an issue. 
> You should be able to keep your firewall up for
> other services, by 
> leaving ports 127-139 and 450? open.
> 
> 
> > Can anyone shoot me in the right direction to
> getting
> > this resolved?
> > 
> > Thanks to all!
> > John
> > 
> 
> 
> -- 
> |----------------Registered Linux User
> #182071-----------------|
> Buchan Milne                Mechanical Engineer,
> Network Manager
> Cellphone * Work       +27 82 472 2231 * +27 21 808
> 2497 ext 202
> Stellenbosch Automotive Engineering        
> http://www.cae.co.za
> 


=====
Thanks,
John Little
Reading, learning, asking, practicing and trying facilitate understanding. Happiness is understanding how things work.

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com




More information about the samba mailing list