Solved

Setting up Samba on a Solaris 5.8 where Win usernames are different form those under Solaris

Posted on 2004-11-01
580 Views
Last Modified: 2013-12-21
Good morning experts,

I have Samba 3.0.2 running on a Solaris/Sparc box and currently having problems connecting to it from my Win boxes.

// Fictitious scenario...
On the Solaris side I have a user named solaris_user1
On the Solaris side I have a user named solaris_user2
On a Win XP Pro side I have a user named winxppro_user
On a Win XP Home side I have a user named winxphome_user

All are running as Workgroup (because of the XP Home edition)
The solaris_user1 and  solaris_user2 have been added to the smbpassword.

This issue here is that the Win usernames do not match those under Solaris. Is there any way around this or do they have to absolutly match?

Eric
0
Question by:ericdamphousse
    9 Comments
     
    LVL 38

    Expert Comment

    by:wesly_chen
    Hi,

       Use the winbind provided by samba:
    http://asia.cnet.com/enterprise/netadmin/0,39035505,39050042-2,00.htm

    Wesly
    0
     

    Author Comment

    by:ericdamphousse
    This looks like a solution, but the only issue I would have with this is security, or I am mistaken?

    eric
    0
     
    LVL 38

    Expert Comment

    by:wesly_chen
    Yes, there may be some security concern.
    Check the following URL for details:
    http://us3.samba.org/samba/docs/using_samba/ch09.html

    Wesly
    0
     
    LVL 2

    Expert Comment

    by:Troxalias
    Under windowsXP Man Network Drives of Solaris box using different credentials (using solaris_user1 and solaris_user2).
    0
     

    Author Comment

    by:ericdamphousse
    Troxalias, sounds like a good idea!... by that you mean for the explorer right... right clicking on the MyComputer then selecting Map Network Drive and from there, Connect using a different user name

    eric
    0
     

    Author Comment

    by:ericdamphousse
    As of now, nothing seems to work! Will keep on researching.
    0
     
    LVL 3

    Expert Comment

    by:yokel
    Don't know if I'm missing something in the question but here goes.

    In the file smb.conf you can make an entry like this;

    username map = /etc/samba/smbusers

    If you then create the file /etc/samba/smbusers and create the following lines.

    solaris_user1 = winxppro_user
    solaris_user2 =  winxphome_user

    I used to do this at my last job, but we were using Windows NT 4 domains, so not sure if it works with workgroups.
    I thought this was well know though, so you may have already tried it or you are talking about something else!
    Cheers
    Steve
    0
     

    Author Comment

    by:ericdamphousse
    Thanks to everyone who answered. I was able to resolve the problem. I set my Samba server as a WINS server, in the sambpasswd added all my users, their name being set to their unix counterpart, all passwords matching their windozes boxes. Added to all windozes boxes the WINS server previously defined. Problem solved.
    0
     

    Accepted Solution

    by:
    PAQed with points refunded (250)

    modulo
    Community Support Moderator
    0

    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

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
    FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    877 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

    12 Experts available now in Live!

    Get 1:1 Help Now