[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

Mounting Resources From NT4 Domain

I have been able to get Mandrake 10.1 Community to authenicate from my NT4 and W2K domain controllers. I am also able to browse the network and see all hte clients and servers so I know I have that part all setup right. ( Took a bit but got it) Anyways using Samba as a client and not a server can anyone tell me how to map the printers and drives from the NT profile to the linux box.
Example:
John Doe uses a NT4 roaming profile. In his NT profile he prints to //server1/printer and has drive mappings o: //server1/shared

I would also like the mapping (mount) to show up on the users desktop as a drive letter.

I want to do this with no user interaction at all when they log on with the exception of they having to authenicate at the logon prompt.

In a nutshell what I am trying to accomplish is loading the devices from the users NT Roaming profile onto the linux box.
0
ecrit
Asked:
ecrit
  • 3
  • 2
1 Solution
 
ahoffmannCommented:
for mounting use smbmount
printers are configured in your prefered pprinting system: CUPS, lpr or lpd

> .. loading the devices from the users NT Roaming profile onto the linux box.
beside some proprietary products, AFAIK you're stuck to samba/smbclient
0
 
ecritAuthor Commented:
I figured that but is there a way to have samba or to pass to samba %username %passowrd of the user logging on.
like if I used the  option smbclient \\ntserver\share  -U|--user=LOGNAME[%password]
I would need to map 3 drives on 3 different servers at login time oblivious to the user logging in.
0
 
ahoffmannCommented:
> need to map 3 drives on 3 different servers at login time oblivious to the user logging in.
and what is the problem to write the prooper commands in the login rc-file (.csh.login, .profile, whateverfileforyourshell)?

Also, stolen from man smbclient:

    -U username[%pass]
...
              A third option is to use a credentials  file  which
              contains the plaintext of the domain name, username
              and password. This option is  mainly  provided  for
              scripts  where  the  admin doesn't wish to pass the
              credentials on the command line or via  environment
              variables.  If  this  method  is used, make certain
              that the permissions on the  file  restrict  access
              from unwanted users. See the -A for more details.

              Be cautious about including passwords in scripts or
              in the PASSWD environment variable. Also,  on  many
              systems  the  command line of a running process may
              be seen via the ps command to be safe always  allow
              smbclient  to  prompt for a password and type it in
              directly.
0
 
ahoffmannCommented:
you also may use smbclien's -s option (man smbclient again;-)
0
 
ecritAuthor Commented:
Hey,
 Thanks for all the help. I figured as much. I will just have to make it as easy as possiblr for the user. I can't even concider keeping any type of plain text file of the username and passwords.

 Thanks again.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now