[NTLUG:Discuss] Yet another samba question (smbmount)...

MadHat madhat at unspecific.com
Wed Feb 16 08:00:35 CST 2000


Opinionated wrote:
> 
> Hello all,
> 
> I hope you can help me with this.  First, my system
> environment......Linux Laptop (Sony PCG-F340) Pentium II 366Mhz with
> Netgear PCMCIA card running Redhat 6.1 with kernel 2.2.14 compiled from
> kernel.org (not redhat kernel source), and also running samba-2.0.6.
> Laptop hooks up to an NT dominated/served network (Netbeui over TCIP).
> 
> Everything is working great with smbmount except for one little detail.
> No matter what I do, Only root can write to an NT mounted share...all
> other users can only read the NT share.  The /mnt/ntshare directory is
> set to a 777 permission, and the NT share is set for everybody to have
> full control.  I invoke the smbmount by using mount -t smbfs
> //ntshare/Drive /mnt/ntshare -o username=username,password=password.  I
> can also use mount.smbfs //ntshare/Drive /mnt/ntshare -o
> username=username,password=password.  I have been trying to add uid,
> gid, fdir, gdir options to the command (mount -t smbfs //ntshare/Drive
> /mnt/ntshare -o username=username, password=password, uid = 500, gid =
> 501), but these never are not recognized for some reason and give me an
> error.
> 
> Anybody have any ideas?

I can show you what works for me.

# smbmount //CRAPPYNTBOX/Share /mnt/crappynt -U UserMan%PassMe -c 'mount
/mnt/crappynt -u 501 -g 501'

and then usinf with uid 501 has write access.  The UserMan and PassMe
are the uer and pass for the NT share.  It works well and have it set up
for people to ftp stuff into an NT box through the Linux box.

-- 
%_=split';','f; Perl ;h;st a;o;ker;@;not;.;hac;u;her;d;ju';
print map $_{$_}, split //,
'madhat at unspecific.com'




More information about the Discuss mailing list