Mounting Resources From NT4 Domain

Posted on 2004-10-21
Last Modified: 2010-03-18
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.
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.
Question by:ecrit
    LVL 51

    Expert Comment

    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

    Author Comment

    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.
    LVL 51

    Accepted Solution

    > 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
    LVL 51

    Expert Comment

    you also may use smbclien's -s option (man smbclient again;-)

    Author Comment

     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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Course: From Zero to Hero with Nodejs & MongoDB

    Interested in Node.js, but don't know where to start or how to learn it properly? Confused about how the MEAN stack pieces of MongoDB, Expressjs, Angularjs, and Nodejs fit together? Or how it's even possible to run JavaScript outside of the browser?

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now