At 03:24 PM 3/31/98 -0600, you wrote:
>WRT the problem that NT/sp3 has with mapping samba shares to Linux boxes
>-- Ramon Gonzales just sent me a post from this list describing how to
>fix the NT registry to send plaintext passwords, so that the NT box
>could mount a Linux share.
>
>But that isn't precisely what I need to do; I need to be able to mount
>the NT drive _on_ the Linux machine's filesystem so that I can perform
>operations on it from there.  As it is now I can map the drive, but I
>can only access it as the superuser.  The various smbmount options
>aren't changing the file permissions on the mounted resource, and chmod
>just laughs at me.

Michael,

i am currently accomplishing what you are communicating that you are trying
to do, mount an NT share(s)/drive(s) on Linux with specific ownership and
permissions set.

in the future, descriptively provide what you have tried and what has failed.

the following is a simple cut/paste from a Linux box here, showing exactly
what i did and that it worked:

<paste>
/home/jb>smbmount -h

usage: smbmount //server/service mount-point [options]
Version 2.0.1

-p port        Port to connect to (used only for testing)
-m max_xmit    max_xmit offered (used only for testing)

-s servername  Netbios name of server
-c clientname  Netbios name of client
-I machinename The hostname of the machine
-U username    Username sent to server
-D domain      Domain name
-u uid         uid the mounted files get
-g gid         gid the mounted files get
-f mode        permission the files get (octal notation)
-d mode        permission the dirs get (octal notation)
-C             Don't convert password to uppercase
-P password    Use this password
-n             Do not use any password
               If neither -P nor -n are given, you are
               asked for a password.
-h             print this help text

/home/jb>smbmount //jb/d$ d -c unix -U Administrator -u 500 -g 500 -f 700
-d 700            
Password:

/home/jb>ls -dl d 
drwx------   1 jb       jb            512 Dec 31  1969 d

/home/jb>ls -l d
total 96
drwx------   1 jb       jb            512 Dec 21 20:18 RECYCLED
drwx------   1 jb       jb            512 Dec 23 08:28 backup
-rwx------   1 jb       jb           4379 Mar 31 08:39 ffastun.ffa
-rwx------   1 jb       jb          24576 Mar 31 08:39 ffastun.ffl
-rwx------   1 jb       jb          16384 Mar 31 08:39 ffastun.ffo
-rwx------   1 jb       jb          49152 Mar 31 08:39 ffastun0.ffx
drwx------   1 jb       jb            512 Dec 16 12:28 incoming
</paste>

looks like it works just fine and wonderfully here.  8-)

have you tried the above?  have you read the man page(s) associated with
this so that you understand what's happening in the above command line?  i
am not asking to patronize, but to further assist you and know where you're
coming from at this point.

the above command line, in relative order, does the following:

a) calls smbmount to mount from server 'jb', using share 'd$' on server 'jb'
b) mounting to directory 'd' on the Linux machine (make sure it exists first)
c) using the -c switch to specify the client name (the linux machine) as
unix (my domain name is long and requires i specify it)
d) using the -U switch to log into the NT box as 'Administrator'
e) using the -u switch to specify the uid the mounted files get
f) using the -g switch to specify the gid the mounted files get
g) using the -f switch to specify the permission the files get (octal
notation)
h) using thte -d switch to specify the permission the directories get
(octal notation)

i  hope this helps.  if you are still having troubles, try including more
detailed information.  best of luck.

-Jeff


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to